• As soon as I activate the Sendinblue plugin for Woocommerce, the HTML code rendered in the Google Chrome Console is impacted. The majority of my scripts which are usually loaded in my <head>, are now going after opening the <body>.

    The problem no longer exists as soon as I deactivate the plugin. 

    I found out that when the plugin is activated, this html input is happened inside my <head> section :

    <input type=”hidden” class=”ws_opt_in_nonce” name=”ws_opt_in_nonce” value=”828f6dfe60″>

    Any solution to fix this please ?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter calyweb

    (@calyweb)

    It’s because of this code which is totally wrong … and create an input in the middle of nowhere

        if (strtoupper($_SERVER['REQUEST_METHOD']) === 'GET') {
            ?>
            <input type="hidden" class="ws_opt_in_nonce" name="ws_opt_in_nonce" value="<?php echo wp_create_nonce('order_checkout_nonce'); ?>">
            <?php
        }

    I confirm the serious error in the plugin code found in src/managers/cart-events-manager.php in the add_optin_billing() function which should return an array of checkout fields: in this function no output should be printed on the screen and instead is used to print the hidden field “ws_opt_in_nonce” which is thus incorrectly inserted in the wrong position in the head of the page.

    Please remove this gross error!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Big HTML render issue over website when plugin is activate’ is closed to new replies.