![]() |
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} |
Nice one, I was thinking about this very problem yesterday since we were discussing coupons and gift coupons :)
|
This is pretty obvious code, but I thought I'd add it here, cause it makes the addition look a lot cleaner. Replace the code listed above with:
Quote:
That's it. Just a few extras. Nothing special. :wink: |
great mod!
|
nfc5382: I agree, and talking about great mods, I saw your site last month but I cant figure out how you added the small bike icons next to your menu items, are they cold coded ?
|
ya those are just hard coded buttons (the LH navigation buttons). Its just what I had before I incorporated xcart into my site. I ended up keeping them and putting xcart around the existing site.
|
Looks like a great Mod. Can anyone tell me what code I need to replace with the code above to get this to work. I'm still learning. Thanks much.
Adam |
All times are GMT -8. The time now is 07:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.