Is there any way to automatically apply coupons based on subtotal?
(I really miss the subtotal flat rate discount from version 2.)
There are a couple ways to handle that... here's one:
STEP 1: Add the uShopJSI applet to the page where you want to set the coupon number.
var subtotal = document.uShopJSI.getSubtotal();
if (subtotal >= 100)
else if (subtotal >= 10)
Thanks for the quick reply! This is exactly what I need. I had tried using setDiscountRate() but got hung up by the percentage thing.