• Resolved cremaeoro

    (@cremaeoro)


    Hello,

    First time to use Forminator.

    It looks good if there are lots of customer and product information on a form. But I am having some troubles with calculations on an unpublished form.

    I am creating a form with the following conditions:

    • Total of 20 items
    • Price of each item is 100 dollars
    • Checkboxes are used so customers can select multiple items
    • Discount should be applied: if a customer selects and purchases 2 or more items, receives 30 percent off on each item
    • 1st item stays 100 dollars and discount does not apply
    • This topic was modified 8 months, 3 weeks ago by cremaeoro.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @cremaeoro

    I hope you are doing well today.

    It seems you are our paid member and we have already replied to your thread on our platform. For future reference, I post my reply also here:

    Each item from the checkbox has a price of 100, no matter what name it will have.

    1st calculation counts all items from {checkbox-1} (it is set as hidden and as this counts numbers from checkboxes which cannot be used for visibility rules to count values as checkboxes cannot have “greater than”)

    That is why you have 2nd calculation field with formula ({calculation-1}*0.7)+30 and visibility to show that if the price is higher than 40.

    In short: you multiply each item by 0.7 to give for all items discount 30% and you add missing 30 for 1 item. So no matter which item is selected first it will always have a price of 100. If you select more items formula will work the same way.

    If you do not select any items calculation field will show up by default price 30, that is why it has a visibility rule to show up if the price is higher than 40. With that, it will show up only if you select at least 1?item.

    You can see example here: https://pastebin.com/e7mrciew

    Kind Regards,
    Kris

    Plugin Support Laura – WPMU DEV Support

    (@wpmudevsupport3)

    Hi @cremaeoro,

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. Note that you can still reply on this topic.

    If you have any additional questions or require further help, please let us know!

    Best regards,
    Laura

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Buy one and receives 30 percent off on 2nd item’ is closed to new replies.