samnabi / shopkit

Comprehensive commerce solution for Kirby CMS v2
https://shopkit.samnabi.com
Other
99 stars 15 forks source link

Minimum and Maximum quantity. #132

Closed DodoVoelkel closed 7 years ago

DodoVoelkel commented 7 years ago

I'm using shopkit for a flea market where a potential vendor can buy Squaremeters for the market online. We want to prevent vendors from buying less then 2 and more than 15 squaremeters. For that reason, whould it be easy to implement a min & max cart quantity per product variant?

samnabi commented 7 years ago

Hm, I think introducing a per-order minimum/maximum could get quite confusing.

Maybe this is best approached with a custom fork of the controller/cart.php, where you can check the cart quantities before the page loads.

samnabi commented 7 years ago

The way to handle this currently is just having 14 different variants, one for 2 sq. m, one for 3 sq. m, ....

samnabi commented 7 years ago

I don't think this feature has a widespread enough use case to include in Shopkit by default. A vendor with specific needs like this will likely also require other custom changes to Shopkit.