Forum

Thread tagged as: Shop

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.

Lisa Morena

Lisa Morena 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

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

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's no way to test to see if any promotions are available. Only if promotions have been applied to the cart.