| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Shorten length of Gift Certificate codes | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Shorten length of Gift Certificate codes
My client wasn't happy with the length of the auto-generated gift certificate codes (16 characters long). Here's the tweak I made to cause the system to generate shorter codes:
In /admin/giftcerts.php look for Code:
and change this to Code:
This simply trims the original gcid down to the last 6 characters. It should be noted that this statistically reduces the uniqueness of the the Gift Certificate code. This was done in x-cart gold 4.0.13
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#2
|
|||||||
|
|||||||
That works great, thanks. But it only works if you enter a GC in the admin area. If a customer buys a GC it is still the long code...hmmm
I tried looking at /giftcert.php, not /admin/giftcerts.php but nothing with MD5 there. hmmm, wonder how to fix this? Thanks again.
__________________
4.0.16 |
|||||||
|
|||
X-Cart forums © 2001-2020
|