Custom product quantity.

  • Posts: 13
  • Thank you received: 0
11 years 5 months ago #105202

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!

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #105209

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; ?>

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
11 years 5 months ago #105257

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.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #105272

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum