| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||
|
|||||||
Excluding coupns
Im trying to think up a way to exclude coupons from our sale items without getting custom work done. The sale items are already in multiple categories so limiting it to one isn't possible. Any mods or add-ons out there that have coupon exclusions?
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Excluding coupns
Well I think it will require custom code, I haven't seen a module that allows you to exclude products from coupons.
I did this recently, here is my changelog: Edit /include/func.cart.php Edit /include/product_modify.php ALTER TABLE `xcart_products` ADD `coupons_avail` CHAR( 1 ) NOT NULL DEFAULT 'Y' AFTER `discount_avail` Edit /common_files/main/product_details.tpl /include/product_modify.php look for: 'discount_avail' => $discount_avail, After it add: 'coupons_avail' => $coupons_avail, I am attaching my changed func.cart.php just search it for the word coupons, I believe everything is commented. /common_files/main/product_details.tpl look for: PHP Code:
PHP Code:
This should give you a checkbox on the product page and the ability to enable/disable coupons for that product. Don;t forget to run the SQL patch from my changeolg above. Be sure you are doing all of this on a dev site rather than your live store.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#3
|
|||||||||
|
|||||||||
Re: Excluding coupns
This may work for you - http://www.cflsystems.com/coupons-extension-for-x-cart.html. It doesn't exclude but allows you to select exact products to apply coupon to
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||
|
|||||||
Re: Excluding coupns
what version is your func.cart.php based on? i see a difference that not commented.
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#5
|
|||||||
|
|||||||
Re: Excluding coupns
Hmm, it seems to work on the backend but my cart is still applying it to unchecked items. I'l lhave to go through my func.cart.php and find it.
btw, had to add lbl_apply_coupons
__________________
4.7.x xcart store Business 5.4xx |
|||||||
|
#6
|
|||||||
|
|||||||
Re: Excluding coupns
nevermind, I finally got it working, thanks. attached is the 4.5.2 func.cart.php file needed.
Also, if anyone needs to modify their own cart.php file, search for "coupons_" not just coupon, way too many of those.
__________________
4.7.x xcart store Business 5.4xx |
|||||||
|
#7
|
|||||||||
|
|||||||||
Re: Excluding coupns
Glad you got it sorted out. Thanks for providing your solutions/discoveries for the community.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#8
|
|||||||
|
|||||||
Re: Excluding coupns
do you think theres anything in this mod that would disable my UPS realtime rates from showing up?
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#9
|
|||||||||
|
|||||||||
Re: Excluding coupns
I can't imagine there would be, but can't rule it out if nothing else has been changed. Simple solution try reverting the changes you've made and see if it fixes the problem.
Real time rates are notoriously touchy, you never know if it is on your side or theirs.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#10
|
|||||||
|
|||||||
Re: Excluding coupns
nevermind, seems i had to re-register the UPS tool in order to get it working again.
__________________
4.7.x xcart store Business 5.4xx |
|||||||
|
|||
X-Cart forums © 2001-2020
|