• Resolved Hieu

    (@nsluc93)


    Hello,

    I am currently using your plugin along with Elementor to create a donation form. However, when I try to add the [wcdp_donation_form] shortcode within an Elementor widget, it returns the following error:

    “This shortcode does not support AJAX calls.”

    This issue arises when I render the shortcode via Elementor’s render() method, which is essential for dynamic content handling within Elementor. Since Elementor heavily relies on AJAX for front-end rendering, the AJAX restriction is causing the form not to load correctly.

    Would you be able to suggest any solution or workaround that allows the shortcode to be rendered properly within Elementor, or perhaps an update to make the shortcode compatible with AJAX environments?

    Any guidance or support would be greatly appreciated. Thank you!

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

    (@flinnn)

    Hi Hieu,

    thanks for reaching out.
    Can you please confirm if the issue only persists within the Elementor editor view or also for frontend users? The upcoming version of Donation Platform for WooCommerce includes a fix improving the error message in the editor view but I was not able to reproduce the issue in the frontend.

    Best,
    Jonas

    Thread Starter Hieu

    (@nsluc93)

    Hi Jonas,

    Thank you for your response. I’d like to confirm that the issue only occurs within the Elementor editor view. In the editor, it displays the message:
    “This shortcode does not support AJAX calls.”
    and nothing else is rendered.

    However, on the frontend, the shortcode works correctly, and the form displays as expected.

    Best regards,
    Hieu

    Plugin Author Jonas

    (@flinnn)

    Hi Hieu,

    the upcoming version of the plugin will change this error message to “Your donation form will be displayed here.” to make it clearer that the shortcode will be visible in the frontend.

    Best,
    Jonas

    Thread Starter Hieu

    (@nsluc93)

    Hi Jonas,

    First of all, I would like to express my gratitude for developing such a useful plugin and for the great support you provide. Your plugin has been incredibly helpful in managing donations on WooCommerce, and I truly appreciate the features you’ve built.

    I have a small suggestion: It would be great if the plugin allowed templates to be overridden from the theme following a structured approach, similar to how WooCommerce and some other plugins handle it. This would make it much easier to customize the display without modifying the core plugin files.

    I hope your team will consider this feature for future updates.

    Once again, thank you for your amazing work!

    Best regards,
    Hieu

    Plugin Author Jonas

    (@flinnn)

    Hi Hieu,

    this is actually also a change that is included in the upcoming release. The development version already uses wc_get_template to load the donation templates, making it easy to overwrite them.
    https://www.wc-donation.com/documentation/support/installing-the-latest-development-version/

    Best,
    Jonas

    Thread Starter Hieu

    (@nsluc93)

    Great,

    I’m looking forward to the official update.

    Good job

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Issue with [wcdp_donation_form] Shortcode in Elementor’ is closed to new replies.