• Resolved dominikform

    (@dominikform)


    Hello all smart developers,

    I am struggling for few days with need of 2 Stripe buttons (with different prices) in one form. Plugin is working with only one and I need two of them and visitor will choose how much he wants to pay.

    He fills email and some other information and with 2 buttons he choose what amount he chooses.

    Can anyone help me with it? Or it is impossible?

    I checked code and it is written just for one button, but it could be patched somehow, am I wrong?

    Thank you,

    Dominik

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter dominikform

    (@dominikform)

    https://vedeckareklama.cz/?page_id=69

    Please play with checkbox at end of form. I want visitor to use checkbox and on true or false show him right button. Or change value on button but once it is already initialized with payment_intent, then 2 buttons would be easier.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See Editing form template

    What content do you have in the Form tab panel?

    Thread Starter dominikform

    (@dominikform)

    I have it this, because I use conditional fields:

    <label> Your name
        [text* your-name autocomplete:name] </label>
    
    <label> Your email
        [email* your-email autocomplete:email] </label>
    
    [checkbox checkbox-126 id:box use_label_element "yes, i want to"]
    [group chci]
    [stripe currency:CZK amount:15000 "Zaplatit 150 K?" "Odeslat 150 K?"]
    [/group]
    [group nechci]
    [stripe currency:CZK amount:1500 "Zaplatit 15 K?" "Odeslat 15 K?"]
    [/group]

    But when I remove it, it shows same result, only first button is working:

    <label> Your name
        [text* your-name autocomplete:name] </label>
    
    <label> Your email
        [email* your-email autocomplete:email] </label>
    
    [stripe currency:CZK amount:15000 "Zaplatit 150 K?" "Odeslat 150 K?"]
    [stripe currency:CZK amount:1500 "Zaplatit 15 K?" "Odeslat 15 K?"]
    

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    You can’t use two or more stripe tags in a single form.

    Thread Starter dominikform

    (@dominikform)

    Thank you! Is any way how to change price on button when form is loaded?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter dominikform

    (@dominikform)

    This could be solution, I will test it. Thank you!

    Thread Starter dominikform

    (@dominikform)

    Thank you very much for great solution!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘2 Stripe buttons in one form’ is closed to new replies.