Developer forum

Forum » Ecommerce - Standard features » Ecommerce max products in cart from specific group

Ecommerce max products in cart from specific group

Jens Mouritzen
Jens Mouritzen
Reply

I need a setting, where i can set a max number of products from a specific product category, that buyers can put in the cart pr. order.

An example: a festival where visitors buy a workshop, and they can only put one workshop in the cart pr. order.

Does such a feature exist? Should it be made in the templates?

Thanks


Replies

 
Jens Mouritzen
Jens Mouritzen
Reply

Anyone have an suggestion ?

 
Nicolai Pedersen
Reply

Hi Jens

It does not exist.

You can create a custom field on the group that you can use to set how many is allowed from that group.

That information will be available in the cart page, and you have to do the math about which products are in the cart, and from what group, and make some kind of feature that will limit the number.

Happy coding!

Nicolai

 

You must be logged in to post in the forum