Home › Forums › Stripe Payments Plugin › Minimum price
- This topic has 5 replies, 2 voices, and was last updated 5 years, 3 months ago by
alexanderfoxc.
-
AuthorPosts
-
July 5, 2020 at 6:07 am #3039
[email protected]
ParticipantHi,
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
Colin.
July 5, 2020 at 11:14 am #3042alexanderfoxc
ParticipantHi Colin.
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.
July 5, 2020 at 1:05 pm #3043alexanderfoxc
ParticipantI’ve created a small demo plugin which does what you want.
You can get it here https://github.com/Arsenal21/stripe-payments-enhancements/releases/download/0.0.9/asp-minimum-amount.zip
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
July 5, 2020 at 7:52 pm #3045[email protected]
ParticipantMany thanks Alexander. I will test this out.
July 5, 2020 at 8:26 pm #3046[email protected]
ParticipantI 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?
Colin.
July 6, 2020 at 8:39 pm #3055alexanderfoxc
ParticipantPress 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?
-
AuthorPosts
- You must be logged in to reply to this topic.