Product variant and Quantity per order

  • Posts: 2
  • Thank you received: 0
8 years 5 months ago #259607

Hi everybody.
I have a problem of "minimum quantity per order" and "Product variant" used together

For example a necklace with 4 different colors (blue, red, white and black) and a minimum Q/p/Order of 4

I'd like that my customer could choose the color they want and the only limitation would the total quantity per order : for example 2 red, one blue and one black. It makes 4 necklace : Ok order is valid.

The problem is that Hikashop doesn't let the customer make that kind of selection. The customer have to choose the color and it automatically set de quantity to 4. So he can only takes 4 red, 4 blue and 4 black.

Could you please Help me to set Hikashop working like that ?

PS : Sorry for bad english writing.

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #259613

Hi,

The check should work fine.
If after you add this 4 red, 4 blue and 4 black cart and change the quantity of the products in the checkout, you should be able to change them to 2 red, one blue and one black and finish the checkout.
The add to cart system isn't meant to support having a minimum selectable below the minimum quantity set in the product. So it would be quite complex to implement what you want with the minimum quantity setting of the main product.
Instead, I would recomment to not set a minimum quantity in the product and use the restrictions system in the shipping methods so that it would require a minimum number of products to be able to finish the checkout.

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

  • Posts: 2
  • Thank you received: 0
8 years 5 months ago #259853

Hi,

thanks for your answer.

In the checkout process when I tried to change the quantity of a variant Hikashop send and alert.

The problem whit the restriction in the shipping method is that the limitation of 4 pieces is set on the whole catalog.
I have different products and each has different rules.

For example :
- Necklace are sold by 4, no limit on color choices, For example : It can be 1 red, 1 blue, 1pink and 1 white or 4 blue.
- T-shirt are sort by 2, no limit on the color choice, 2 red or 1 blue and 1 red,
- etc.

I can't figure out how to set that.
I'm a developer so I can create un plugin but I need some help to know how to start.

Thanks

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 4 months ago #259855

Hi,

You could create one warehouse for each groupe of products/variantes for which you want the limit and then configure one set of shipping methods for each warehouse.
Otherwise, yes, a custom plugin could enforce such restriction for you. I suppose you would want to implement the onBeforeOrderCreate trigger in order to cancel the order creation if the conditions are not met by setting the $do parameter of the trigger to false.
You can read more about that here:
www.hikashop.com/support/documentation/6...#onBeforeOrderCreate

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

Time to create page: 0.049 seconds
Powered by Kunena Forum