• Resolved deedeem

    (@deedeem)


    Hello, I’ve created two separate check boxes containing different sets of editing services. All the services in checkbox 1 cost the same. Likewise for check box 2.

    I want to create a calculation for a minimum price when one or all of the services in checkbox one are selected for <1K words, but when the word count is 1K or more, the per-word price kicks in.

    I can’t figure out how to do the minimum price or stop the calculation from calculating the services in each checkbox separately. The price needs to be the same price for each service, but the services need to be selected individually.

    In case I haven’t been very clear:

    Checkbox 1: 1 or more services = one price of xx per word

    Checkbox 2: 1 or more services = one price of xx per word

    <1K words = a minimum price

    >1K words = per-word price, for one or more services whether in checkbox 1 or 2.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @deedeem

    I hope you are doing well today.

    First, you will need to set up the Calculations price for each checkbox which is in this case your service. So your checkboxes will look like this:

    Checkbox 1 label
    checkbox 1-1 -> Calculations price 200
    checkbox 1-2 -> Calculations price 200
    checkbox 1-3 -> Calculations price 200
    checkbox 1-4 -> Calculations price 200
    checkbox 1-5 -> Calculations price 200

    Checkbox 2 label
    checkbox 2-1 -> Calculations price 200
    checkbox 2-2 -> Calculations price 200
    checkbox 2-3 -> Calculations price 200
    checkbox 2-4 -> Calculations price 200
    checkbox 2-5 -> Calculations price 200

    Then use Calculation field and calculation set up like this: {checkbox-1}+{checkbox-2}

    In the end, use the Stripe field https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#stripe-field and set up 2 plans.

    1 plan: Fixed price (this will be your minimum price) + Calculation tab as the Calculation field is less than 1000.

    1 plan: Variable price -> Calculations + Calculation tab as the Calculation field is Geater than 999.

    You can see this example here: https://pastebin.com/ig8eif8h

    Kind Regards,
    Kris

    Thread Starter deedeem

    (@deedeem)

    Thanks. I’m not adding a Stripe field. I just what them to see the price and then fill in the rest of their details before sending to me. I’m still trying to work it out. I’ve tried the following:

    max({checkbox-1}, 0.018*1)*{number-1}

    But the services within the checkbox are still calculated separately. It needs to be the same price whether they choose one or more services that’s displayed, but not for the purpose of paying anything straight away. I don’t want it to double, triple, quadruple, etc.

    Is this even possible with this form?

    • This reply was modified 1 year, 6 months ago by deedeem.
    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @deedeem,

    Could you please share an export of the current form using Pastebin.com or Google Drive so that we can take a closer look?

    I hope the following guide comes in handy: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Looking forward to hearing back from you and helping you further.

    Kind Regards,
    Nebu John

    Thread Starter deedeem

    (@deedeem)

    Hello, here’s a link https://pastebin.com/xNg22eU2

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @deedeem,

    Thank you for sending the export file.

    Checkbox 1: 1 or more services = one price of xx per word

    Checkbox 2: 1 or more services = one price of xx per word

    <1K words = a minimum price

    >1K words = per-word price, for one or more services whether in checkbox 1 or 2.

    – it looks, like you can achieve this by displaying one of the two calculation fields with different formulas, depending on the visibility conditions.

    For instance, duplicate the existing calculation field, and then change the formula and conditions for both {calculation-1}, and {calculation-2}: https://prnt.sc/P3cOaNayYvJ5

    {calculation-1} field example:
    Visibility conditions – https://prnt.sc/lFXiObOoQOeI
    Calculation – https://prnt.sc/8jg9TgjBfBEX

    {calculation-2} field example:
    Visibility conditions – https://prnt.sc/1VIGI_hkEPrv
    Calculation – https://prnt.sc/UDeyPOSn5iEM

    Please note, that the formulas are just examples, the idea is to separate the formulas by duplicating the calculation field.

    I hope this helps. Please let us know, if you have any questions.

    Best Regards,
    Dmytro

    Thread Starter deedeem

    (@deedeem)

    That still won’t really work in the way I want, but thanks for trying to help out. I’m doing it a different way instead. I have a different problem, so I’ll post separately about that.

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    You’re welcome, @deedeem!

    We’ll be marking this thread as resolved. Please don’t hesitate to contact us, in case you need any further assistance.

    Best Regards,
    Dmytro

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Create minimum price’ is closed to new replies.