Post by rhorne » Thu Jan 10, 2019 4:28 pm

Our Opencart store is linked to our local stock database so that when an order is placed the stock is deducted from both systems simultaneously.

We have a product in our local database with a denomination of metres. However, we wish to sell it online by the roll (20/50m). How can I limit the customer's order quantity to go up in 50s or 20s?

I used to use Qphoria's minstep vqmod but it doesn't work anymore and he hasn't responded to my bug report in the official thread so I'm wondering if anyone knows of a different solution?

I know I could set the minimum quantity to 50, but I don't want someone to be able to order 51, 52, 53m etc, it needs to be 50, 100, 150, 200....

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by xxvirusxx » Thu Jan 10, 2019 4:47 pm

Tested now vqmod file for 2.1 on 2.3 and work without errors.

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by rhorne » Thu Jan 10, 2019 4:49 pm

What vqmod?

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by xxvirusxx » Thu Jan 10, 2019 4:52 pm

lol
rhorne wrote:
Thu Jan 10, 2019 4:28 pm
I used to use Qphoria's minstep vqmod

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by rhorne » Thu Jan 10, 2019 4:56 pm

I just redownloaded it and tried it again (2.3.0.2) and still get the same error message.

Code: Select all

SyntaxError: Unexpected token < in JSON at position 0

OK

<b>Warning</b>: Invalid argument supplied for foreach() in public_html/vqmod/vqcache/vq2-system_library_cart_cart.php on line 50 
Notice: Undefined index: option in public_html/vqmod/vqcache/vq2_system_storage_modification_catalog_controller_checkout_cart.php on line 480

Warning: array_filter() expected parameter to be array, null given 
This happens when you hit add to cart.
Last edited by rhorne on Thu Jan 10, 2019 5:01 pm, edited 1 time in total.

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by xxvirusxx » Thu Jan 10, 2019 4:58 pm

You have another extension who made changes in cart.php?

Attach that file (vq2-system_storage_modification_cataloge_controller_checkout_cart.php)...or post error from 480

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by rhorne » Thu Jan 10, 2019 5:06 pm

Full error message below:

Image

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by rhorne » Thu Jan 10, 2019 5:08 pm

Controller file attached also.

Attachments


Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by xxvirusxx » Thu Jan 10, 2019 5:13 pm

You have another extension who made changes in cart.php and possible of vqmod operation replace, after, before...not work together

//HUNTBEE CODE ADDED FOR OUT OF STOCK FORM POPUP #START_OOSN

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by rhorne » Thu Jan 10, 2019 5:31 pm

Yeah, that's another extension that allows customer to setup notification for when out of stock products are in stock again. Any advice on how I can get the two working together? Thanks for your help by the way.

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by xxvirusxx » Fri Jan 11, 2019 5:26 pm

Try ask for support from HuntBee.

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: No registered users and 47 guests