| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Gift Certificates (Simple) Mod | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Gift Certificates (Simple) Mod
This is quick and simple mod, but I thought it was needed for computer luddites out there.
If you enter in a gift certificate and happen to copy the previous or trailing blanks space around the number, you will get an invalid gift certificate error. Here's how to fix it (it's easy): In your payment/payment_giftcert.php file... Change this: Code:
to this Code:
Pretty simple, but it works really well and will help cut down on errors and the subsequent support inquiries.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#2
|
|||||||
|
|||||||
The file is actually: payment/payment_giftcert.php
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
#3
|
|||||||
|
|||||||
Good spot. I'll fix my original post.
Hope you found it useful nonetheless.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#4
|
|||||||
|
|||||||
Very Useful! I apologize for not saying so in my previous post.
Thanks, Glen
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
#5
|
|||||||
|
|||||||
This is an old thread, but thought maybe someone out there has modded their customer coupons to do the same thing...
Trim the copy pasted number free of blank spaces? if so how?
__________________
vs 4.1.12 |
|||||||
#6
|
|||||||
|
|||||||
markwhoo,
I'm not exactly sure what you are talking about. Can you describe what you mean in more detail? I may be able to help. MachnHed1
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#7
|
|||||||
|
|||||||
Quote:
Originally you trimmed the gift certificate code to remove possible blank spaces when it was copied and pasted into gc window. I always have people complain that the code does not work and I tell them to simply type it in and all is well with the world; and always have to tell them why it happened; and it is due to the blank spaces being copied with the code. I thought that maybe I could incorporate this into that area and would eliminate this issue. I looked at the code for the coupons, but it is not laid out the same. If I were a php guru, I would be making mods out the wazzoo, so I am crippled at this point and was hoping someone else had the same issue and a fix. Any ideas?
__________________
vs 4.1.12 |
|||||||
#8
|
|||||||
|
|||||||
Gotcha.
In your /modules/Discount_Coupons/discount_coupons.php file... Change this: Code:
to this Code:
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#9
|
|||||||
|
|||||||
totally awesome machinehead1!
I have added this and will wait and watch to see the improved results! thanks tons. By the by, where are you in IL?
__________________
vs 4.1.12 |
|||||||
#10
|
|||||||
|
|||||||
Southern IL now, but originally from the Chicago suburbs. You nearby?
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
|
|||
X-Cart forums © 2001-2020
|