You are here: / / Minimum price
Is it possible to have a minimum price on a product based on the user adjusting the varations or quantity options?
e.g. A product is priced at $1, min price of $5 must be met by setting the quantity or picking from the variations ?
Thanks in advance
It’s not possible at the moment. You cannot set minimum product price, unless this is donation type product (where customer must enter amount manually).
As a workaround, you can improvise by constructing product price via variations only by enabling “Use variations only to construct final product price” option on “Variations” meta-box on product edit page. Then configure variations the way to achieve $5 minimum.
I’ve created a small demo plugin which does what you want.
Install on your site and activate it.
You can adjust it for your needs by editing the code (it has instructions provided): https://github.com/Arsenal21/stripe-payments-enhancements/blob/0.0.9/asp-minimum-amount/asp-minimum-amount.php
Many thanks Alexander. I will test this out.
I installed the plugin, activated and configured the product IDs (via the plugin editor). However it is not working for me. I purchased the product for £1 and the payment is successful.
Is there some simple debug I can add to determine if the plugin is being triggered?
Press F12 in your browser and see if there are any error messages in the browser Console.
Also clear your caching plugin cache (if you’re using any).
If all the above fails, try to install current testing version from this page https://s-plugins.com/testing-version/
Last, but not least – can you provide URL of the page where your payment button is so I could have a look at it myself?
You must be logged in to reply to this topic.