• Resolved Agenci Marknadsbyr?

    (@widerclothing)


    Hi!
    I am trying to add a solution for Gift Cards, making the value turn to 0 when you press that you have a gift card, and then you pay in store instead when you pick up your order.

    I do not get it to work.

    This is my calculation now:
    295*({number-1})+60*({number-2})+{radio-2}+50*({number-3}). (Works fine)

    How do I add the gift card section {radio-3} to the calculation and when you click it, the whole value equals to 0.

    Is it possible as well, to make the payment section disappear when you click the gift card section?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @widerclothing,

    How do I add the gift card section {radio-3} to the calculation and when you click it, the whole value equals to 0.

    I’m afraid I don’t see the mentioned radio buttons in the /test page of your form. So not fully sure about the workflow you are looking.

    Just to be clear, when radio-3 is clicked radio 2 will be 0, right? If yes, could you please try adding extra open brokets to the value of radio ie from:

    {radio-2}

    To:
    ({radio-2})

    ie:
    295*({number-1})+60*({number-2})+({radio-2})+50*({number-3})

    Please do let us know how that goes or if I’m missing out anything so that we could check further regarding this.

    Kind Regards,
    Nithin

    Thread Starter Agenci Marknadsbyr?

    (@widerclothing)

    Hi! Thank you for your answer.

    The radio-3 button is on the top of the second page.

    When you click at radio-3. The whole value will be 0. So every other calculated section you have clicked should equals to 0.

    Best regards,
    Edvin

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hi @widerclothing,

    Thanks for confirming.

    By saying the whole value, you mean the value shown on the “Pris” (Calculation-1) field correct?

    Is it possible as well, to make the payment section disappear when you click the gift card section?

    This is not possible out of the box, but may be possible with some custom code. Could you please export your form to a drive and share the link with us here. https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#import-export

    Best,
    Jonathan S

    Thread Starter Agenci Marknadsbyr?

    (@widerclothing)

    Thank you fo your answer @wpmudev-support9 !!

    Yes, I mean the value shown on “Pris” (Calculation-1).

    There you go! Hope i did it correct:

    https://drive.google.com/file/d/1Kr7x4tpv2LteHdxDEgBgSqpD4sjKXQke/view?usp=sharing

    Best regards,
    Edvin

    Thread Starter Agenci Marknadsbyr?

    (@widerclothing)

    Otherwise, if that is not possible… Is it possible to make it so when I press the radio-3 button the payment section disappear. That works as well and may be an easier solution to the problem.

    Hi @widerclothing,

    Thanks for the export, I had a look at your form setup and could offer two solutions here.

    #1 – Add a No option to your radio-3 and when Yes is selected multiple your score by 0.
    So you would edit your radio-3 field, add No option and in Calculations tab for that field set Yes value as 0 (as it already is) and for No set the value to 1.
    Apply the changes and now edit the Pris (calculation-1) field to change the formula to this:
    (295*({number-1})+60*({number-2})+{radio-2}+50*({number-3}))*{radio-3}
    What this now does is multiples your old formula with radio-3 selection, so if Yes is selected it will multiple with 0 which results in 0, and if No is selected it multiples with 1 which leaves the current value.

    #2 – Hide the payment section.
    For this you would need to edit both calculation-1 and stripe-1 elements, go to their Visibility settings and select HIDE when radio-3 is selected to Yes.
    I’ve outlined the setup of Visibility options in this screenshot:
    https://monosnap.com/file/90J0RFxxA19p1maZDGfqWh6qpTxZHL

    Hope this helps.

    Cheers,
    Predrag

    Thread Starter Agenci Marknadsbyr?

    (@widerclothing)

    Hi! That worked! I followed the second step. Thank you @wpmudev-support1

    Is it possible to apply a text into the removed section when checkbox-4 button is selcted. (changed the radio-3 to checkbox-4).

    For this one when the payment section is removed, I want to apply a text that says “online payment removed, pay in-store instead”

    Sincerely,
    Edvin

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @widerclothing ,

    For this one when the payment section is removed, I want to apply a text that says “online payment removed, pay in-store instead”

    Yes, you can add a HTML filed with your text and use visibility settings in that field that would only show it when the checkbox button is selected.

    kind regards,
    Kasia

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @widerclothing ,

    We haven’t heard from you for a while now, so it looks like you don’t have more questions for us.

    Please feel free to re-open this ticket if needed.

    kind regards,
    Kasia

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Gift Card’ is closed to new replies.