Add a new method to FlatDiscount to tell if it is already in the cart.

Add a template variable to tell if there is already one in the cart.
Modify the default template to include the thank you message and to hide
the add to cart button if this coupon is already in the cart.
This commit is contained in:
Colin Kuskie 2008-06-27 20:25:30 +00:00
parent 59424e1fe3
commit e51d02e3d8
5 changed files with 34 additions and 5 deletions

View file

@ -26,6 +26,7 @@ our $HELP = {
{ name => "templateId", description=>"template help" },
{ name => "hasAddedToCart" , required=>1 },
{ name => "thankYouMessage", description=>"thank you message help" },
{ name => "alreadyHasCoupon" },
],
related => [
],