• Resolved pogoretskiy777

    (@pogoretskiy777)


    I’m experiencing a critical issue with the Sezzle Installment Widget on my WooCommerce checkout page.

    The installment widget JavaScript code is being broken by WordPress’s wpautop() function, which is injecting <p>tags into the middle of the <script> block. This causes JavaScript syntax errors and prevents the widget from displaying on the checkout page.

    Example of broken output:

    <script type='text/javascript'>
        new SezzleInstallmentWidget({
            'merchantLocale': 'US',
            'platform': 'woocommerce'
        });</p>
    <p>    // create an observer instance

    Console Error: Uncaught SyntaxError: Unexpected token '<'

    The installment widget works on mobile, but breaks on desktop, which ensures that I have the widget enabled on the backend.

    Here is the environment:

    • WordPress Version: 6.8.3
    • WooCommerce Version: 10.2.2
    • Sezzle Plugin Version: 6.1.0
    • Theme: Page Builder Framework (2.11.7)

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

Viewing 1 replies (of 1 total)
  • Thread Starter pogoretskiy777

    (@pogoretskiy777)

    This issue is now resolved. The problem was using the [woocommerce_checkout] shortcode within a Text Editor element instead of a ShortCode element within Elementor.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.