Is it possible to show conditional HTML code or text based on the coupon code that has been entered?
This works fine if there is a coupon code:
{exp:cartthrob:coupon_info}
<div class="helper">"{coupon_code}" has been applied <span class="label"><a href="{path=store/clear_coupon_codes}">remove coupon code?</a></span></div>
{/exp:cartthrob:coupon_info}
But say I want to add a class to an item or change some text:
No coupon code:
<ul>
<li>Subtotal {exp:cartthrob:cart_subtotal}</li>
<li>Shipping {exp:cartthrob:cart_shipping}</li>
<li>Discount {exp:cartthrob:cart_discount}</li>
<li>Total {exp:cartthrob:cart_total}</li>
</ul>
Coupon code == cash:
<ul>
<li>Subtotal {exp:cartthrob:cart_subtotal}</li>
<li>Discount {exp:cartthrob:cart_discount}</li>
<li class="cash">Cash {exp:cartthrob:cart_total}</li>
</ul>
I've tried a few things and can get them to work when there is a coupon code but not when the coupon code if empty.