Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Swipestripe and minimum quantities


Go to End


2 Posts   1994 Views

Avatar
MCK

Community Member, 18 Posts

28 July 2014 at 1:50pm

Is there an easy way of entering minimum quantities for purchase of a particular product? For example, the minimum somebody can order of Product A is 10—so they couldn’t order 9 but could order 11. It would need to be able to be varied from product to product. Another way of doing this is via variable pricing, e.g., a price for 1–9, 10+, etc., but I can’t see how this can be done in SwipeStripe either.

Regards, Graeme

Avatar
frankmullenger

Forum Moderator, 53 Posts

3 October 2014 at 5:03pm

Hey Graeme,

Good question! You should be able to alter the validation of ProductForm to enforce some minimum quantities. Then I *think* the only other place a user can change quantity is the CartForm, so the same kind of validation should be applied there. Hope that helps :-)