When checking out, if you enter a valid coupon, tick the "terms and conditions" checkbox, but then click continue before entering the payment information, you will get a duplicate confirmation message (stack message) at the top of the window, as shown in the attached picture.
Likewise, the same thing will happen if you enter the coupon code, enter all the payment information, but do not tick the checkbox for "terms and conditions."
You can repeatedly test the example and variations by typing REMOVE in the coupon box after each attempt.
I performed this example on the default "Classic Green" template to make sure it wasn't anything in my skin.
ZenCart 1.3.8a.
I tried looking into it a bit, and for some reason, it appears that the function collect_posts() includes/modules/order_total/ot_coupon.php is being called twice. If I comment out line 288:
...then I get 0 messages.Code:$messageStack->add_session('checkout', TEXT_VALID_COUPON,'success');
This I traced to line 163 of includes/classes/order_total.php:
...which also, when commented out, removes both messages. So it appears that this line is executing twice, when it should only execute once. But I'm afraid I don't know enough about how zencart is working here to actually fix it.Code:$GLOBALS[$class]->collect_posts();



