There is no built in way to do this. Gravity Forms does not currently have a built in feature that allows you to set minimums on the quantity that is ordered that also takes into account other Product Fields on the form.
What you describe is possible, however it would have to be implemented as a customization using available API hooks.
You would use the gform_validation hook to write custom validation that suits your clients needs. You would have to write code that checks the quantities that were entered by the user and if it does not meet the minimum amount it would trigger an error and display the form for the user to change their order.
Writing custom validation would also allow you to take into account products that consist of multiple bottles (ex. purchasing a magnum) because it would give you complete control over the validation itself.
There is a tutorial on how to use the gform_validation hook here:
http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook
The example on that page is just an example of how to use the hook. You have a custom use case so you (or a developer you hire) would have to write the code necessary to implement the functionality you want.
But Gravity Forms provides the hooks to make customizations like this possible.
Posted 12 years ago on Monday April 2, 2012 |
Permalink