Forum
Check for promotions
How can I check for enabled, active promotions from the cart template? I just want to hide the voucher input if there are no active promotions.
How can I check for enabled, active promotions from the cart template? I just want to hide the voucher input if there are no active promotions.
In the cart template it should be
discount_code
.Oh OK, so I just need to check if discount_code exists and if it does show the discount input? Will that only include discounts that are active/current?
I mean if there are no promotions available - not if someone has entered a discount code or not
There's no way to test to see if any promotions are available. Only if promotions have been applied to the cart.