Javascript Error Being Introduced by Plugin
-
Uncaught Error: Syntax error, unrecognized expression: .related .woocommerce-Price-amount >*,.related .from >*,.related .price >*,.related .total >*,.related .amount >*,.related .bundle_price >When I view source it looks like this is the culprit:
<div style="clear:both"></div><input type="hidden" id="_wpnonce" name="_wpnonce" value="a1580ecfae" /><input type="hidden" name="_wp_http_referer" value="/accessories/motorcycle/tracker/" />
<button type='submit' name='add-to-cart'
onmouseover=; onmouseout=; onload=; class='single_add_to_cart_button button alt gpls_rfq_set gpls_rfq_css'
value='15446'>Add To Quote</button>
<input type='hidden' value='-1' name='rfq_product_id' id='rfq_product_id'/>
<input type='hidden' name='rfq_single_product' id='rfq_product_id'/><div class='gpls_script' style='display: none'><script> jQuery(document ).ready( function() {
jQuery( '.related .woocommerce-Price-amount >*,' +
'.related .from >*,' +
'.related .price >*,' +
'.related .total >*,' +
'.related .amount >*,' +
'.related .bundle_price >*').show();
jQuery( '.related .woocommerce-Price-amount >*,' +
'.related .from >*,' +
'.related .price >*,' +
'.related .total >*,' +
'.related .amount >*,' +
'.related .bundle_price >*').attr('style','visibility: visible !important;');
jQuery( '.related .woocommerce-Price-amount >*,' +
'.related .from >*,' +
'.related .price >*,' +
'.related .total >*,' +
'.related .amount >*,' +
'.related .bundle_price >*').attr('style','opacity: 1 !important;');
jQuery( '.woocommerce-Price-amount,.from, .price,.total, .bundle_price,.wc-pao-col2,.wc-pao-subtotal-line, .product-selector__price' ).hide();
jQuery( '.woocommerce-Price-amount,.from, .price,.total, .bundle_price,.wc-pao-col2,.wc-pao-subtotal-line, .product-selector__price' ).attr('style','visibility: collapse');
jQuery( '.related .woocommerce-Price-amount >*,' +
'.related .from >*,' +
'.related .price >*,' +
'.related .total >*,' +
'.related .amount >*,' +
'.related .bundle_price >*').show();
jQuery( '.related .woocommerce-Price-amount >*,' +
'.related .from >*,' +
'.related .price >*,' +
'.related .total >*,' +
'.related .amount >*,' +
'.related .bundle_price >*').attr('style','visibility: visible !important;');
jQuery( '.related .woocommerce-Price-amount >*,' +
'.related .from >*,' +
'.related .price >*,' +
'.related .total >*,' +
'.related .amount >*,' +
'.related .bundle_price >*').attr('style','opacity: 1 !important;');
} ); </script></div>Something in the plugin’s code is causing the js greater than sign to be converted to html characters.
Can you help with a fix for this?
As it is preventing the behaviour of the add to quote and view list buttons from working correctly: and the subsequent page redirect.
Thank you!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘Javascript Error Being Introduced by Plugin’ is closed to new replies.