Perch Shop Discount Remaining Active even after logout

  • I've added a promotion discount to the site. I ran a test order and it worked perfectly fine.


    However it is applying the discount to the cart persistently, even if I log out the discount is shown on the cart table.


    Is this by design? If so is there a way to remove it when an order is placed?

  • Make sure you've set single use per user only on the promotion.


    You also may need to restart the browser / empty the cache. Codes are pretty aggressively cached.


    Alternatively (not tested) you could try adding a function call on payment to set the discount code to null.


    e..g perch_shop_set_discount_code('');