Open /admin/controller/sale/voucher.php and find this code:
Change the 10 to 15. This will allow a validation of 15 digits.
Code: Select all
if ((utf8_strlen($this->request->post['code']) < 3) || (utf8_strlen($this->request->post['code']) > 10)) {
$this->error['code'] = $this->language->get('error_code');
}
thank you sir for interst.
BUT it didn't work when customers order a gif voucher,
I think this is only to get error when add a gif manully from admin panel.
Also when change the number 10 to 15 the vouche created but ONLY with 10 numbers .
Any other solution ?
Thank's
Sam
BUT it didn't work when customers order a gif voucher,
I think this is only to get error when add a gif manully from admin panel.
Also when change the number 10 to 15 the vouche created but ONLY with 10 numbers .
Any other solution ?
Thank's
Sam
Ah, the front end. Just open: catalog/controller/checkout/checkout.php and find this line of code:
Change the 10 to 15.
Cheers
Code: Select all
'code' => substr(md5(mt_rand()), 0, 10),
Cheers

Hi, sorry but I didn't find this in this file,
but I find in these files :
- catlog/controller/checkout/confirm.php (one code)
- catalog/controller/checkout/manual.php (three code)
I have changed all from 10 to 15, BUT always didn't work.
regards.
Sam
but I find in these files :
- catlog/controller/checkout/confirm.php (one code)
- catalog/controller/checkout/manual.php (three code)
I have changed all from 10 to 15, BUT always didn't work.

regards.
Sam
I gave you good instructions. What version of OC are you using?samdz wrote:Hi, sorry but I didn't find this in this file,
but I find in these files :
- catlog/controller/checkout/confirm.php (one code)
- catalog/controller/checkout/manual.php (three code)
I have changed all from 10 to 15, BUT always didn't work.![]()
regards.
Sam
Who is online
Users browsing this forum: Baidu [Spider] and 74 guests