• Resolved gabrielenascimben

    (@gabrielenascimben)


    I have a page with two buttons, one for making a one-time donation and the other for making a recurring donation. I would like that upon clicking, either the one-time donation shortcode or the recurring donation shortcode is loaded, depending on the selected button. How can I achieve this?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi gabrielenascimben,

    loading the shortcodes asynchronously will probably be quite difficult to do since you have to make sure that stuff like payment gateways still work properly.
    Have you considered using a grouped product?

    Best,
    Jonas

    Thread Starter gabrielenascimben

    (@gabrielenascimben)

    Yes, but I can’t use grouped products because one of the two products is a recurring donation, and it’s not supported. I need to be able to load one of the two shortcodes on the same page based on the button clicked. I tried with ajax and with url with parameter. Any other ideas?

    Thank you!

    Plugin Author Jonas

    (@flinnn)

    Sorry, for the late reply. I’ve added a documentation article that explains how you can configure a grouped product. Creating a grouped product in Donation Platform for WooCommerce allows you to create a donation experience where users can choose between different products: https://www.wc-donation.com/documentation/usage/creating-a-grouped-donation-product-with-subscriptions-for-woocommerce/

    Best,
    Jonas

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.