Limit Grouped Product with variants to total of 5 products

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
We are looking for some feedback from a nopCommerce expert we cant see a way with out the box advanced settings (so far) to achieve the following request we got from a gin website seller

Product with variants - Custom Gin Cocktail Box made up of Single Products

Orange Gin Cocktail 1
Apple Gin Cocktail 1
Strawberry Gin Cocktail 1
Raspberry Gin Cocktail 1

etc...maybe 20 flavours

We need to limit a Custom Cocktail selector to 5 choices per box, at the moment the only setting could find was max number in cart for the single product but allowed more than 5 in total before the cart limiter kicked in

Also tried product attributres but again it maxed out on 5 orange 5 strawberry, 5 apple etc thats no good we need limiting user selection like below

1 orange
2 apple
1 strawberry
1 raspberry

total maximum 5 cocktail types per box

Thought we could as a quick work around intercept with javascript on add to cart button event and limit it that way but better to use nopCommerce API and modify the cart handler or any other methods?

Does anyone know the best way/s to do this, is it possible? 8)
3 years ago
Have you considered a single product (not variants), with five product attributes - e.g. Choice 1, Choice 2, etc.  The attribute dropdowns would each show all the flavors
3 years ago
Thanks for answering but that's what we meant when said "Product with variants - Custom Gin Cocktail Box made up of Single Products"

Problem is we already tried that but it did not limit the customer to only 5 of any type - even with max number in cart allowed set to 5 as that only applies to single product - as it lets them add max 5 of each but they could add for example 7 total of a combination!

the seller rules are they need to be restricted to 5 no matter what, any ideas?
3 years ago
RE: "... made up of Single Products"
Your configuration is not clear to me.  Are you using 'Attribute value type' of "Associated to product"?
3 years ago
Ah sorry read that too quickly saw the brackets and it looked like the (with variant) in the admin just was was getting messages from other people at same time distracting me

To make it clear have tried 2 setup configurations

Configuration 1
+++++++++++++
Grouped (Product with Variants)
https://www.orogin.co.uk/shop/cocktail-selection

also tried before that Product attributes but it still let the customer add more than 5 total flavours

Configuration 2
+++++++++++++
Single Product
Product Attribute - Flavour
https://www.orogin.co.uk/shop/attributes-test-cocktail

Both let the total number of cocktail combinations be more than 5 it treats a flavour as a separate product

Is there a setting somewhere that can fix that?

Thanks for looking
3 years ago
Neither of your examples shows "combinations".  As per my prior "five product attributes - e.g. Choice 1, Choice 2, etc.  " - it would be one Simple Product  - for example:

Custom Cocktail  Box
Flavor 1   \/
Flavor 2   \/
Flavor 3   \/
Flavor 4   \/
Flavor 5   \/
Qty____

It should not matter what quantity they enter, because the product is a 'custom box'.
3 years ago
You mean like this https://www.orogin.co.uk/shop/cocktail-selection ?



Think it works 8) thanks

Then then can create multiple boxes if they want, nice.

Only minor issue is there a duplicate option for product attribute or do the variations have to be entered by hand for each variation?
3 years ago
Yes, that's it!

RE: "duplicate option for product attribute"
No, but it can be done if you know SQL and the table structures.
(Similar example here, but it's product to product, and not values.)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.