Post by 2schaa » Fri May 04, 2012 5:46 am

Hi al OC champs

Yesterday I wanted to increase the character limit of coupon codes from 10 - 20, I searched this forum and found very easy way to do it at file public_html/admin/controller/sale/coupon.php & changed it to 20 & it worked like charm.

But after that I added an additional mod/add-on [vQmod] - Batch Coupon Codes as shown here http://forum.opencart.com/viewtopic.php?f=131&t=49656

I can insert coupons in batches/multiple per line but now when I try to save it shows me same error message "Code must be between 3 and 10 characters!"

Any help in this would be highly appreciated.

Many thanks

Newbie

Posts

Joined
Mon Apr 30, 2012 4:08 pm

Post by 2schaa » Fri May 04, 2012 5:55 am

This one is sorted.

I have increased the limit from 10 - 10000000000000000000 at admin/controller/sale/coupon.php

All good now :)

Newbie

Posts

Joined
Mon Apr 30, 2012 4:08 pm

Post by opcrat » Fri May 04, 2012 9:39 am

Sorry to inform you but you can not directly update anything, its defined by opencart so it might has a reason. You have checked your database column capacity for coupon code? Its varchar(10) so you must need to update that too.

Most Useful Extensions || Most Selling Extensions
Opencart Development || Opencart Designing || eCommerce Project

✔ Join more than 5000 Happy Opencart Store Owners enjoying the extensions designed and developed by Opcrat, Opencart Partner.


User avatar
Active Member

Posts

Joined
Wed Dec 21, 2011 6:54 am

Post by 2schaa » Fri May 04, 2012 5:00 pm

Oops! please advise where I can update varchar(10) ? many thanks

Newbie

Posts

Joined
Mon Apr 30, 2012 4:08 pm

Post by GoGo OpenCart » Fri May 04, 2012 6:26 pm

Via phpMyAdmin.

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by opcrat » Fri May 04, 2012 10:08 pm

Open your database through phpmyadmin than in the left side table list click on coupon tablet than go to Structure tab and edit(change) code field and update Length to according to your requirements.

Most Useful Extensions || Most Selling Extensions
Opencart Development || Opencart Designing || eCommerce Project

✔ Join more than 5000 Happy Opencart Store Owners enjoying the extensions designed and developed by Opcrat, Opencart Partner.


User avatar
Active Member

Posts

Joined
Wed Dec 21, 2011 6:54 am

Post by granttalicia » Thu Aug 23, 2012 2:27 pm

I am also looking to increase coupon code character limit, but the error showed by link on phpmyadmin doesn't allow me to do so, i am finding it difficult to reach the link and define coupon code character limits.

chapters coupon codes


Newbie

Posts

Joined
Thu Aug 23, 2012 2:21 pm

Post by BigDB » Tue Feb 19, 2013 7:59 am

I did all this updating, but now when I try and save my new coupon code I get this message:
Notice: Undefined index: allowed_groups in /home/chry7483/public_html/webstore/admin/model/sale/coupon.php on line 21Warning: Cannot modify header information - headers already sent by (output started at /home/chry7483/public_html/webstore/admin/index.php:83) in /home/chry7483/public_html/webstore/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/chry7483/public_html/webstore/admin/index.php:83) in /home/chry7483/public_html/webstore/vqmod/vqcache/vq2-system_engine_controller.php on line 29

Even with this error message the new coupon code works in the store. Any help here? Do I need to clear out something in the vqcache folder?

Newbie

Posts

Joined
Tue Feb 19, 2013 7:55 am
Who is online

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