Promo-Code applied multiple times

  • Hey there,

    im struggling a little with the implementation of the perch shops promotion code.

    Adding and deleting the promo code works flawlessly. The only thing thats driving me nuts is the fact that every time i add another product to my cart (or already have multiple products) the promo code is added multiple times for each single product.

    This doesn't seem to be the normal behaviour.


    Code
    1. <perch:if id="total_discounts" match="lt" value="0.10">
    2.     <div class="discount">
    3.         <perch:label for="discount">Enter Promo-Code</perch:label>
    4.         <div class="row">
    5.             <perch:input type="text" id="discount_code" placeholder="Promo-Code"/>
    6.             <button type="submit" value="update" class="btn btn-black">Apply</button>
    7.         </div>
    8.     </div>
    9. </perch:if>

    These are my promo code settings in the backend:

    - discount by fixed

    - discount amount = 20.00 EUR

    - uses per customer = 1

    - terminate = yes

    The rest ist default.

    Any suggestions how to fix this?


    Thanks in advance,

    Bastian

  • drewm

    Approved the thread.