• thibaultpaysal26

    (@thibaultpaysal26)


    Hello,
    The website works well until i add a tag <script> to includes’s php page of my child theme.

    Adding only this into a php file :<script type=”text/javascript”></script>
    yith-woocommerce-quick-view breaks

    Do you have an idea about what is hapening?

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    I don’t find the quick view button on your shop page, did you disable the plugin?

    Thread Starter thibaultpaysal26

    (@thibaultpaysal26)

    Hello, no i kept it :
    https://ti-panier-bio.fr/mon-panier-local/
    click on “ajouter au panier”

    Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    I have been checking the button, but it’s working as expected.
    Did you remove the line you commented previously?

    Let us know.

    Thread Starter thibaultpaysal26

    (@thibaultpaysal26)

    Yes, i got rid of the code was making mess.
    I put this script on admin page.

    <script type="text/javascript">
    
    console.log(5 + 6);
    
    </script>

    The console is returning the good result but buttons are broken
    You can check on the page

    Thread Starter thibaultpaysal26

    (@thibaultpaysal26)

    location of the page is inside a childtheme and the page itself is a page into the admin panel :

    <script type=”text/javascript”>
    console.log(5 + 6);
    </script>
    <?php
    //Create page into admin sidebar
    function f_email_Customer(){
    ? ?add_menu_page(‘Chat clients’,’Chat clients’,’manage_options’,’Chat_email’,’chat_client_Page’,’dashicons-format-chat’,$position=’4′);

    }

    add_action(‘admin_menu’,’f_email_Customer’);

    etc….

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    I made a test again on your site and seems the quick view is openend without any problem.

    See the following link

    Please, could you double check and if you have the same problem, please send me a video where you can explain me, how I can reproduce the problem on my local installation.

    I’m looking forward your response.

    Have a good day.

    Thread Starter thibaultpaysal26

    (@thibaultpaysal26)

    I got rid of the code the weekend as i need client are able to chechout and the button is blocked too.

    This is the video link.
    https://we.tl/t-PjsFH0C9Q2

    I will erase the script friday evening because of clients.

    Regards

    Thibault

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hello there,

    please enable debug mode in your site and check if any error is generated in the log file any time you try open the quick view modal.

    Let us know also if a JS error is generate in the browser console.

    Thank you.

    Thread Starter thibaultpaysal26

    (@thibaultpaysal26)

    where could i send you my log?
    

    There is an error yes

    Log content : [16-Apr-2024 14:14:44 UTC] get_cart was called incorrectly. Get cart ne peut pas être appelé avant l’action wp_loaded. Backtrace: require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters,

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hello there,

    nothing which is bounded to our plugin. Any JS error in browser console?

    Thread Starter thibaultpaysal26

    (@thibaultpaysal26)

    HEllo,

    No, the only thing is written is this :
    JQMIGRATE: Migrate is installed, version 3.4.1

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hello there,

    I did a test and the quick view button is working fine.

    It’s possible that the way you use to add a custom JS code breaks other functions in your site, try do that using the wp_add_inline_script WordPress function.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘any custom script tag added to Yith-woocommerce-quick-view break all Javascript’ is closed to new replies.