Support » Plugin: Forminator Payment, Quiz and Contact Form Plugin » Calculations configuration

  • Resolved ratamatcat

    (@ratamatcat)


    I probably will start using my form without pricing to get a bead on my suppliers pricing for products and the shipping as well. So a quote form.

    Then after some time I would enhance the form to include pricing, still without shipping, like a quote engine to minimize client queries about product price. Then after some more time finally include shipping pricing in the form, once the complexities of shipping is understood.

    While working on the form I thought to create the calculations fields anyway so that part is also completed (in advance of hiring a developer to make a few other specific features) in the design and construction of the form.

    This gave me an idea for a feature, which is a special configuration to turn calculations on/off so that a form can be run in a pure ‘quote mode’ without pricing, and then changed to include the calculations fields, all the way to a proper order form.

    I wonder if this is considered to be a useful feature. Thought to share the idea here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ratamatcat

    I hope you’re well today!

    Currently, for all the fields that can be used in calculations there is an option (in field’s settings) to allow or disallow that. You can change that at any moment. Also, even if you allow the field to be used in calculations, you don’t really have to use it.

    For example:
    – you can add three fields for different “parts” of a total pricing
    – enable these field for calculations (“Edit Field -> Calculations -> Enable”)
    – but still use only some or all of none of them in any calculations in the form and later change it (e.g. use only “number-1 + number-2” initially and later add “+ number-3” to it)

    Wouldn’t that work for you?

    I suppose I might be missing something here so if so, I’d like to ask you for some additional explanation of the feature that you’re suggesting and we’ll be more than happy to pass it over to our Forminator team for further consideration.

    Best regards,
    Adam

    Oh I see what you mean. With the fields that hold a calculation value, I can simply disable them, then enable later and the value I inserted is retained. Or as you say, I don’t even need to so this.

    With the other Calculation fields, I can just hide these with the ‘Hidden’ field setting. They could even still do calculations underneath. This is my revised approach based in part on your advice:

    1) Set up calculations but hide pricing to the user initially. Calculations values can be inserted in the product options fields and set to either enable or disable. The Calculations fields are set to Hidden in the field settings

    The pricing will still be calculated for my own reference and to check the performance of the price system. I might need to hide the price from submission to the customers email.

    2) Remove the hidden setting for the calculations fields to turn the quote form into a quote engine. In this format the form returns product pricing to the user but shipping cost is still quoted

    3) When shipping can be automated and built into the form it completes the setup using the Stripe or PayPal payment fields. A separate quote form can still be maintained for customers who might have commercial orders

    thanks,

    ps – Could you provide an example of the calculation tool that’s the brackets, ie. ( ). Not sure how to use these yet.

    Plugin Support Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hi @ratamatcat,

    Calculations will use basic math rules when you add the numbers, this means that using brackets will behave in that manner as well.

    For example, let’s say you have {number-1} with value 2, {number-2} with value 3 and {number-3} with value 4.
    And your calculation looks like this {number-1}*{number-2}+{number-3}
    This will mean that it would calculate it like this: {number-1} times {number-2} plus {number-3}, or with numbers 2 times 3 plus 4.
    So it will be 2 times 3 which is 6, and then plus 4, which will total 10.

    Now, let’s say you use a calculation with brackets that looks like this {number-1}*({number-2}+{number-1})
    When we put numbers in there it would look like this 2 times ( 3 plus 4 ), so the numbers in bracket will be added first, 3 plus 4 which would be 7, and then that times 2, which would make the final result 14.

    Hope this makes sense 🙂

    Cheers,
    Predrag

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.