My apologies in advance for completely jettisoning the default cart in favor of a built-from-scratch cart, then asking you to help me troubleshoot it.
However, my client had some pretty intense custom requirements for the cart -- like showing MSRP, total savings, and product thumbnails -- so simply restyling the default cart wasn't enough.
Now I've been asked to add coupon functionality. I've been able to add the "Add coupon" link, get the box to show, and the discount to apply. The problem comes when I apply the coupon in the cart. When I hit enter to apply the coupon, nothing happens visually. In the default cart, the coupon name and total discount are shown, and the grand total is updated to reflect the discount.
In my custom cart (I suggest going here
and adding the product to the cart; then enter code XMAS5), I can't determine how you guys get the coupon discount to show and the grand total to update. I tried finding a function in the source code, but no luck. (If you proceed to checkout, you'll notice that the discount is applied, but in the cart there is no visual cue that this happened.)
Would you be able to share how this piece is injected into the code? I'm fairly certain I can figure out the rest with jQuery. Thanks in advance.
Brett, I stumbled across a burst of productivity you left on Github
, and suspect this may hold the key. I'm going to give this a closer look after my stomach isn't so angry at me for being utterly devoid of food.