![]() |
Re: Global Coupons for X-Cart Pro - Simple Mod
Quote:
You will want to use the new file locations I gave in Post #39 and follow the instructions from Post #1 and Post #6. Do not use Post #28 as it is a separate mod and will interfere with the first mod. Revert everything you did in Post #28 back to normal, and then it should get rid of your problems. Robert |
Re: Global Coupons for X-Cart Pro - Simple Mod
Quote:
Originally Posted by Robert Do not use Post #28 as it is a separate mod and will interfere with the first mod. Revert everything you did in Post #28 back to normal, and then it should get rid of your problems. Hi, Thanks Robert for your response. I have already changed my codes according to Post #28, where <xcart_dir>/provider/coupons.php can be modified again that is uploaded again from my backup, but how can I change sql table 'xcart_discount_coupons' which I already modify from phpmyadmin?Are there any query to modify the above sql table to revert back from original. Kindly suggest me what to do. Can I able to modify the codes from include/func/func.cart.php and modules/Discount_Coupons/func.php without modification of above sql table,which I modify first according to post #28 & upload it for taking effect of making "globalcoupon" provider? Your inputs will be immense help. Thanks to all again. |
Re: Global Coupons for X-Cart Pro - Simple Mod
Hi,
Robert , sorry to disturb you again. Thanks a lot for your previous post, but only two questions- 1) Can I able to modify sql table 'xcart_discount_coupons' which I already modify from phpmyadmin according to post #28?Are there any query to modify the above sql table to revert back from original? 2)Can I able to modify the codes from include/func/func.cart.php and modules/Discount_Coupons/func.php without modification of above sql table & upload it for making "globalcoupon" provider? Anybody can Kindly suggest me what to do !!! Your inputs will be immense help. Thanks to all again. |
Re: Global Coupons for X-Cart Pro - Simple Mod
Quote:
Yes, you should just be able to do the modifications to the 2 files you listed in your Step 2 above, and ignore the SQL mod. After looking at the SQL Query, I do not think that mod will affect the performance of the updated mod. The Post #28 Query MOD was: ALTER TABLE xcart_discount_coupons DROP PRIMARY KEY; ALTER TABLE xcart_discount_coupons ADD PRIMARY KEY (coupon,provider); DESC xcart_discount_coupons; It just drops the primary key and then adds a new primary key. If you wanted to revert, you could look at a backup of your site database (in Notepad) and see what the original primary key was for the table: xcart_discount_coupons Then just run a new SQL query to drop the primary key and add a new primary key (set to the way it was originally... as shown in your backup file). However, like I said, as long as you revert the /provider/coupons.php file back to normal and make the 2 new func mods, then the updated global coupon mod should work fine. Just make a backup before you begin; work on a copy of the files; and test them on a test site (if you have one). Remember you can always revert back, so jump in and get your feet wet. ;) |
Re: Global Coupons for X-Cart Pro - Simple Mod
Hi,
Thanks robertswww for your response.Now we can able to do that exactly that we want. But when a customer places items in the cart from different providers, the coupon gets doubled,can anyone respond for this? Your inputs will be immense help. Thanks to all again. |
Re: Global Coupons for X-Cart Pro - Simple Mod
Hi,
Thanks robertsww for your response, but one problem now I am facing. I have two x-cart based stores, one that is in X-Cart Pro 4.1.11(x-fancycategory & x-fcomparison present) where we can sucessfully tested "Global Coupons" modules by modifying include/func/func.cart.php and modules/Discount_Coupons/func.php file only. But I have another x-cart based store that is in X-cart Pro 4.1.9 (x-fancycategory,x-special offer & X-Magnifier presents), but the problem is when I modify the codes include/func/func.cart.php and modules/Discount_Coupons/func.php file only, "buy now" options was not working and I can't able to enter into cart. What is the problem behind this?You say that the modified codes can work fine in the 4.1.x versions of X-Cart. What is the problem in x cart pro 4.1.9? Can you help me to do that? Your inputs will be immense help. Thanks to all again. |
Re: Global Coupons for X-Cart Pro - Simple Mod
Hi,
Anybody reply me what is the problem of installing "global coupon" mod in X-cart Pro 4.1.9? Your inputs will be immense help. Thanks to all again. |
Re: Global Coupons for X-Cart Pro - Simple Mod
Quote:
Quote:
You might want to contact intel352 (Jon Langevin), as he states in Post #34 (on page 4) in this same thread, to contact him for the work-around... http://forum.x-cart.com/showthread.php?t=6756&page=4 --- --- --- As for your other issue... You said you got this mod working fine in 4.1.11, but not in 4.1.9. This mod has been tested in 4.1.9 and 4.1.10 and works. Those 2 affected files are most likely identical in 4.1.11 as well. You may either have a typo or a cut-and-paste mistake. Simply redo the mod and/or compare the 4.1.9 mod files with the 4.1.11 mod files to find out what is different between them. Robert |
Re: Global Coupons for X-Cart Pro - Simple Mod
Quote:
Hi, Robert thanks for your response. Now It works fine on 4.1.9 Pro. But one problem is that global coupon can be applied only for % off, not for Primary currency off and free shipping?But this three options present in Coupon type. Is it not possible to do global free shipping? Can anybody help me to do all of the three options of coupon type, specially free shipping globally from global coupon provider? Your inputs will be immense help. Thanks to all again. |
Re: Global Coupons for X-Cart Pro - Simple Mod
Hi,
Can anybody help me to make global coupon code for free shipping? Thanks to all again. |
All times are GMT -8. The time now is 06:58 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.