- Posts: 13
- Thank you received: 0
Custom product quantity.
13 years 5 months ago #105202
by kapis555
Custom product quantity. was created by kapis555
Hello!
Problem is that when person add's product to cart Minimum quantity is for example 4, but it can't be changed, I need to make somehow that after adding that min quantity it can be changed to for example 3. Is there any solution ?
Best regards!
Problem is that when person add's product to cart Minimum quantity is for example 4, but it can't be changed, I need to make somehow that after adding that min quantity it can be changed to for example 3. Is there any solution ?
Best regards!
Please Log in or Create an account to join the conversation.
13 years 5 months ago #105209
by nicolas
Replied by nicolas on topic Custom product quantity.
Hi,
So you shouldn't set a minimum quantity if you don't want it to be enforced.
In that case, edit the file quantity of the view product and set yourself the min quantity for that product page add to cart by adding this line at the top:
<?php $this->row->product_min_per_order = 4; ?>
So you shouldn't set a minimum quantity if you don't want it to be enforced.
In that case, edit the file quantity of the view product and set yourself the min quantity for that product page add to cart by adding this line at the top:
<?php $this->row->product_min_per_order = 4; ?>
Please Log in or Create an account to join the conversation.
13 years 5 months ago #105257
by kapis555
Replied by kapis555 on topic Custom product quantity.
But the problem is that I have ~4000 products and each product have different quantity. Some I need 'product_min_per_order = 5' other 'product_min_per_order = 2'
Please Log in or Create an account to join the conversation.
13 years 5 months ago #105272
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Custom product quantity.
Hi,
The option "Minimum quantity per order" (product_min_per_order) is per product so, where is the problem exactly ?
You can set this value, per product (and on variants too, if you want to override the parent product value).
Regards,
The option "Minimum quantity per order" (product_min_per_order) is per product so, where is the problem exactly ?
You can set this value, per product (and on variants too, if you want to override the parent product value).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds