| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Global Coupons for X-Cart Pro - Simple Mod | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
OK well I found all the files in cpanel, so there is no way to get to them through x-cart admin? Just out of curiousity, I don't get how it breaks the code to edit in cpanel...can someone explain this? I don't doubt it's true, I'd just like to know why
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#22
|
|||||||
|
|||||||
Nope, those are php...the admin area only works for .tpl files. From what I gather, Cpanel adds spaces, which can break a php file.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#23
|
|||||||
|
|||||||
Darn, it didn't mess with anything, but it didn't work either
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#24
|
|||||||
|
|||||||
The code that I changed was identical to what was posted above, so I guess that code hasn't changed in the last few versions...
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#25
|
|||||||
|
|||||||
When I name the provider globaldiscount, that is the username right???
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#26
|
|||||||
|
|||||||
Oh my goodness, OK. let me try naming my provider globalcoupon like I should have...duh...lol
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#27
|
|||||||
|
|||||||
Yup it worked, no code modifications necessary, the line numbers are a bit different though, but make sure to name your new provider globalcoupon hehehe.
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#28
|
|||||||
|
|||||||
Global Coupons mod for X-cart PRO 4.x
If you want all providers to have coupons with the same name/number, just alter the sql table 'xcart_discount_coupons' as follows: Code:
Then, replace <xcart_dir>/provider/coupons.php script: (The mod is the area that references $coupon_exists, but just replace the whole file after backing up the original) Code:
- Mike
__________________
4.1.9 |
|||||||
#29
|
|||||||
|
|||||||
Uhoh...there is a problem with this...it's not passing the discount to my credit card payment module. It passes to Paypal fine, but not the credit card module. Anyone know how I could maybe fix this???
Thanks! Danielle
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#30
|
|||||||
|
|||||||
This doesn't affect payment. Check your coupons.php and make sure only the changed items are in there, you may have a different coupons.php for a different XC version.
- Mike
__________________
4.1.9 |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|