• Hello,

    I get this error: jQuery is not defined

    It appears here:

    (function($) {
    		if ( $( '.gtm4wp_productdata' ).length > 0 ) {

    The problem is that the plugin functions are loaded before my jQuery. How could I configure the scripts in order to render after my jQuery?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    In that case you will need to move jQuery loading somewhere before WooCommerce adds those JS lines. In my plugin I do not tell WooCommerce where to put this JS codes, WooCommerce and WordPress compiles the script order in that way.

    It must not be in the <head> but somewhere in the <body> before the mentioned JS code.

    Have a great day,
    Thomas Geiger

Viewing 1 replies (of 1 total)

The topic ‘jQuery is not defined’ is closed to new replies.