Post by davidkimm » Thu Sep 22, 2011 4:54 am

grgr wrote:I've updated this so that it works without a max quantity (uses a 0 as default) and put it in the extension store (free to download).

Two versions 1.5.0.x and 1.5.1.x because there was a slight difference in one of the files and the vQmod wouldn't work.

Again, not entirely tested but it seems to be working OK.

http://www.opencart.com/index.php?route ... on_id=3327
I deleted the hard coding... and installed your max quantity vqmod. In Admin Product .. for our promo limited qty item is saved max qty 30... From frontend I attempt to add to cart >30 and it stops me with maximum error message. From "shopping cart" I attempt to adjust qty >30 than after clicking checkout.. it stops me with maximum error message... so far this part works like a charm... awesome :)

Please explain the 0 as default.... All my other products that do not need max qty allowed... is auto set at 0 ... but it stops me from adding even 1 to shopping cart.... Obviously if I update my db maximum field to a higher number like 9999 than it will work.... but since you mentioned default set to 0 is not working for me... just to let you know... in the meantime... I updated my product maximum field to 9999... don't mind being your tester... ;) ... I'm testing on v1.5.1.2

New member

Posts

Joined
Wed Mar 23, 2011 3:12 pm

Post by grgr » Thu Sep 22, 2011 4:23 pm

davidkimm wrote: Please explain the 0 as default.... All my other products that do not need max qty allowed... is auto set at 0 ... but it stops me from adding even 1 to shopping cart.... Obviously if I update my db maximum field to a higher number like 9999 than it will work.... but since you mentioned default set to 0 is not working for me... just to let you know... in the meantime... I updated my product maximum field to 9999... don't mind being your tester... ;) ... I'm testing on v1.5.1.2
The default of 0 is so that it essentially deactivates the max quantity as having a default maximum may not be suitable for everyone.

I've just uploaded the vqmod to my vger demo site and it is working perfectly as far as I can tell.

If you want to test then I have set the imac to min 2 and max 10 and the iphone to just a max 10.

All other products have a max of 0.

Check your vqmod log to make sure that it is running correctly. It may be that another vqmod is changing one of the same files and therefore this mod is not installing itself properly.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by art2002 » Fri Sep 23, 2011 12:07 pm

Hi grgr,

That's a great mod you made.

What if I want to limit the maximum order to 1 for all products? Do I still need to create that extra field in the products table, or can I just create a maxqty variable somewhere and assign it with a value of 1? If so what file would you suggest I place that variable?

Thanks.

Newbie

Posts

Joined
Fri Sep 23, 2011 11:58 am

Post by grgr » Fri Sep 23, 2011 4:58 pm

Personally, I'd just update the db as it only takes a few seconds and the update will expect the field to be in the db.

Use the first bit of sql to insert the the field and then use the other bit of sql to update the values to 1.

If you want to to use only the front end code and set a variable in the relevant controller files rather than using the db then you'll need to rehash the vQmod or hard code it into your existing files.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by art2002 » Sat Sep 24, 2011 9:25 am

Thanks grgr!

Newbie

Posts

Joined
Fri Sep 23, 2011 11:58 am

Post by grgr » Tue Oct 04, 2011 8:45 pm

davidkimm wrote: I can change the quantity in "shopping cart" and it allows to change regardless of the minimum and maximum set for that product... no warning messages either...
That was a problem in the core which has been rectified in 1.5.1.3 and you now get the warning if you update with an invalid quantity.

vQmod has been updated (a new one created actually) for 1.5.1.3 and can be found in the extention store - click on link below.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by cashman9 » Fri Nov 04, 2011 12:22 pm

Can you release the same thing for Opencart version 1.4.9.3 as well?

Active Member

Posts

Joined
Wed Nov 17, 2010 4:28 am
Who is online

Users browsing this forum: Amazon [Bot] and 26 guests