Post by TAKCS » Tue May 03, 2016 6:08 am

Good day all. this is the error I receive when trying to extend a coupon expiration date in OC 2.0.1.0:

Notice: Undefined index: name in ..../admin/controller/marketing/coupon.php on line 546Notice: Undefined index: code in ..../admin/controller/marketing/coupon.php on line 550Notice: Undefined index: code in ..../admin/controller/marketing/coupon.php on line 554

Also error text in red stating:
Coupon Name must be between 3 and 128 characters!
Code must be between 3 and 10 characters!
Here are the corresponding lines in coupon.php:
546 = if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 128)) {

550 = if ((utf8_strlen($this->request->post['code']) < 3) || (utf8_strlen($this->request->post['code']) > 10)) {

554 = $coupon_info = $this->model_marketing_coupon->getCouponByCode($this->request->post['code']);
This is all under the heading on lines 541-543 below.
protected function validateForm() {
if (!$this->user->hasPermission('modify', 'marketing/coupon')) {
$this->error['warning'] = $this->language->get('error_permission');
Any ideas on this? I really want to modify the coupons. Btw, this happens on any coupon I try to change regardless of whether it is live or expired. The cart is functioning fine otherwise.

Allen

New member

Posts

Joined
Mon Dec 01, 2014 9:22 am

Post by oc-extensions » Tue May 03, 2016 6:19 am

Hi,

Based on error messages is not sent POST info when you press save button on edit coupon;

You should ask an developer to take a look on your files;
Without checking files is not possible to know why is not sending required info;

Good luck!

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm
Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests