View Single Post
  #1  
Old 08-25-2003, 04:57 PM
 
rodneyw rodneyw is offline
 

Senior Member
  
Join Date: Mar 2003
Posts: 162
 

Default Making Coupon Field Disappear after valid code is entered

I am running 3.4.4 and on the Cart page where the coupon field is located I would like to make it "disappear" after a coupon is entered and Display a message telling them that a coupon has already been applied to this order.

````````````````````

Once again never mind, I got it. I just checked the cart_total.tpl file to see how IT was checking for a coupon.

Here how I changed the call to the coupon in the cart.tpl file if anyone is interested.
Code:
{if $cart.coupon_discount ne 0} A coupon code has already been used on this order {else} {if $active_modules.Discount_Coupons ne ""} {include file="modules/Discount_Coupons/add_coupon.tpl} {/if} {/if}
Reply With Quote