• Resolved Highedge

    (@benandtimmies)


    Hi!

    I’m using this plugin (https://wordpress.org/plugins/calculate-values-with-shortcodes/) to calculate two custom fields to define the price that has to be paid. This works fine everywhere, but when I use a shortcode in the Direct Stripe shortcode it breaks the payment button. This is the shortcode i’m using:

    [direct-stripe type="payment" button_id="[wpv-post-id]" amount="[calculate][types field='price' output='raw'][/types]*[types field='days' output='raw'][/types][/calculate]00" name="Project" description="[wpv-post-title output="sanitize"]" label="Pay" panellabel="Pay now"]

    Is there any way to get this working?

    Thanks a lot 🙂

Viewing 1 replies (of 1 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @benandtimmies,

    Thank you again for using Direct Stripe.

    Using shortcodes in Direct Stripe shortcode won’t work in the editor.

    It is possible to set variable values using the shortcode in a child-theme.

    Best regards,

    Nicolas

Viewing 1 replies (of 1 total)
  • The topic ‘Making calculations with custom fields to define the price’ is closed to new replies.