Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Search suggestions don’t show products

Discussion in 'Misc WordPress Requests' started by Andrew Nevins, Nov 30, 2017.

  1. Andrew Nevins

    Guest

    Reply To: Search suggestions don’t show products, by Andrew Nevins

    This could be related; there is a JavaScript error on your page here:



    <script data-cfasync='false' type='text/javascript'>
    (function($) { if ( $( '.gtm4wp_productdata' ).length > 0 ) { for( var i=0; i<dataLayer.length; i++ ) { if ( dataLayer[ i ][ 'ecomm_prodid' ] ) { break; } } if ( i == dataLayer.length ) { // no existing dyn remarketing data found in the datalayer i = 0; dataLayer[ i ][ 'ecomm_prodid' ] = []; } if ( typeof dataLayer[ i ][ 'ecomm_prodid' ].push == 'undefined' ) { return false; } var productdata; $( '.gtm4wp_productdata' ).each( function() { productdata = jQuery( this ); dataLayer[ i ][ 'ecomm_prodid' ].push( '' + productdata.data( 'gtm4wp_product_id' ) ); }); } })(jQuery);
    </script>


    It looks like the problem is caused when something has minified the JavaScript.

    Try deactivating all of your plugins to explore whether any could be responsible.

    Reply To: Search suggestions don’t show products
     
    #1

Share This Page

Web Hosting