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....
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....
Tested now vqmod file for 2.1 on 2.3 and work without errors.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
I just redownloaded it and tried it again (2.3.0.2) and still get the same error message.
This happens when you hit add to cart.
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
Last edited by rhorne on Thu Jan 10, 2019 5:01 pm, edited 1 time in total.
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
Attach that file (vq2-system_storage_modification_cataloge_controller_checkout_cart.php)...or post error from 480
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Controller file attached also.
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
//HUNTBEE CODE ADDED FOR OUT OF STOCK FORM POPUP #START_OOSN
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Try ask for support from HuntBee.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Who is online
Users browsing this forum: No registered users and 450 guests