Post by kevtheirish » Wed Jun 22, 2016 4:37 am

in myphp admin -
changed length to 25 (oc_coupon>structure)
php coupon char.jpg

php coupon char.jpg (47.42 KiB) Viewed 1674 times


in admin/language/english/sale/coupon.php
Code must be between 3 and 10 characters!
was changed to
Code must be between 3 and 25 characters!

in admin/controller/sale/coupon.php

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');
was changed to

Code: Select all

if ((utf8_strlen($this->request->post['code']) < 3) || (utf8_strlen($this->request->post['code']) > 25)) {
			$this->error['code'] = $this->language->get('error_code');

when entering code I still get the
Code must be between 3 and 10 characters!
error not 25 like it should be.. am i missing some steps?
length.jpg

length.jpg (55.73 KiB) Viewed 1674 times



version 2.0.2.0


SOLVED

in admin/controller/marketing/coupon.php
also change :

Code: Select all

if ((utf8_strlen($this->request->post['code']) < 3) || (utf8_strlen($this->request->post['code']) > XX)) {
			$this->error['code'] = $this->language->get('error_code');
XX is the characters you would like to use

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am

Post by Ana do Kastelo » Sat Jun 17, 2017 2:38 am

kevtheirish wrote:
Wed Jun 22, 2016 4:37 am
in myphp admin -
changed length to 25 (oc_coupon>structure)
php coupon char.jpg


in admin/language/english/sale/coupon.php
Code must be between 3 and 10 characters!
was changed to
Code must be between 3 and 25 characters!

in admin/controller/sale/coupon.php

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');
was changed to

Code: Select all

if ((utf8_strlen($this->request->post['code']) < 3) || (utf8_strlen($this->request->post['code']) > 25)) {
			$this->error['code'] = $this->language->get('error_code');

when entering code I still get the
Code must be between 3 and 10 characters!
error not 25 like it should be.. am i missing some steps?

length.jpg



version 2.0.2.0


SOLVED

in admin/controller/marketing/coupon.php
also change :

Code: Select all

if ((utf8_strlen($this->request->post['code']) < 3) || (utf8_strlen($this->request->post['code']) > XX)) {
			$this->error['code'] = $this->language->get('error_code');
XX is the characters you would like to use
Hi. What's the difference between first step and correction by the end? Also, I'm having the exact same issue. How do I change the php table? cPanel? I've done everything FTP like, and doesn't work.

Thank you,
Ana C.
2.2.0.0


Posts

Joined
Tue Feb 07, 2017 11:39 pm
Who is online

Users browsing this forum: No registered users and 4 guests