| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Making Coupon Field Disappear after valid code is entered | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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:
|
|||||||
#2
|
|||||||||
|
|||||||||
Nice one, I was thinking about this very problem yesterday since we were discussing coupons and gift coupons
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#3
|
|||||||
|
|||||||
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. |
|||||||
#4
|
|||||||
|
|||||||
great mod!
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#5
|
|||||||||
|
|||||||||
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 ?
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
#6
|
|||||||
|
|||||||
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.
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#7
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|