Title: Javascript Error Being Introduced by Plugin
Last modified: March 21, 2025

---

# Javascript Error Being Introduced by Plugin

 *  Resolved [ShaOne](https://wordpress.org/support/users/shaone/)
 * (@shaone)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/)
 *     ```wp-block-code
       Uncaught Error: Syntax error, unrecognized expression: .related .woocommerce-Price-amount &gt;*,.related .from &gt;*,.related .price &gt;*,.related .total &gt;*,.related .amount &gt;*,.related  .bundle_price &gt;
       ```
   
 * When I view source it looks like this is the culprit:
 *     ```wp-block-code
       <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 &gt;*,' +        '.related .from &gt;*,' +        '.related .price &gt;*,' +        '.related .total &gt;*,' +        '.related .amount &gt;*,' +        '.related  .bundle_price &gt;*').show();    jQuery( '.related .woocommerce-Price-amount &gt;*,' +        '.related .from &gt;*,' +        '.related .price &gt;*,' +        '.related .total &gt;*,' +        '.related .amount &gt;*,' +        '.related  .bundle_price &gt;*').attr('style','visibility: visible !important;');    jQuery( '.related .woocommerce-Price-amount &gt;*,' +        '.related .from &gt;*,' +        '.related .price &gt;*,' +        '.related .total &gt;*,' +        '.related .amount &gt;*,' +        '.related  .bundle_price &gt;*').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 &gt;*,' +        '.related .from &gt;*,' +        '.related .price &gt;*,' +        '.related .total &gt;*,' +        '.related .amount &gt;*,' +        '.related  .bundle_price &gt;*').show();    jQuery( '.related .woocommerce-Price-amount &gt;*,' +        '.related .from &gt;*,' +        '.related .price &gt;*,' +        '.related .total &gt;*,' +        '.related .amount &gt;*,' +        '.related  .bundle_price &gt;*').attr('style','visibility: visible !important;');    jQuery( '.related .woocommerce-Price-amount &gt;*,' +        '.related .from &gt;*,' +        '.related .price &gt;*,' +        '.related .total &gt;*,' +        '.related .amount &gt;*,' +        '.related  .bundle_price &gt;*').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)

 *  Plugin Support [cyr61](https://wordpress.org/support/users/cyr61/)
 * (@cyr61)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18376765)
 * Can you send us a link to the page where this is happening?
 *  Plugin Support [cyr61](https://wordpress.org/support/users/cyr61/)
 * (@cyr61)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18376767)
 * Also, is that the message in the JS console or the PHP error log?
 *  Plugin Support [cyr61](https://wordpress.org/support/users/cyr61/)
 * (@cyr61)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18376778)
 * Can you try **2.2.1** first?
 *  Thread Starter [ShaOne](https://wordpress.org/support/users/shaone/)
 * (@shaone)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18378374)
 * Thank you for the suggestion.** I have updated to 2.2.1 and still get the same
   error** (it’s from the JS console). An example page I have setup is [https://www.ccm-motorcycles.com/accessories/motorcycle/tracker/](https://www.ccm-motorcycles.com/accessories/motorcycle/tracker/)
 *  Plugin Support [cyr61](https://wordpress.org/support/users/cyr61/)
 * (@cyr61)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18378939)
 * Test it out by disable caching or using JS minifiers( exclude problem pages).
 * Also have you overriden the add to quote template for “add to cart”?
 *  Plugin Support [cyr61](https://wordpress.org/support/users/cyr61/)
 * (@cyr61)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18379486)
 * found it. Fixed in 2.2.2
 *  Plugin Support [cyr61](https://wordpress.org/support/users/cyr61/)
 * (@cyr61)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18385965)
 * Have not heard back. Marking resolved.
 *  Thread Starter [ShaOne](https://wordpress.org/support/users/shaone/)
 * (@shaone)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18387444)
 * Thanks for the 2.2.2 update that has fixed the JS console error 👍 However I’m
   still a little confused re the behaviour on the add to quote button:
 * Currently when clicked it auto redirects to the cart page, this doesn’t seem 
   right? I’d expect it to do nothing and be replaced by the view quote button, 
   or at least redirect to the quote page—I don’t see any setting in the plugin 
   to control/override this behaviour or am I missing something?
 *  Plugin Support [cyr61](https://wordpress.org/support/users/cyr61/)
 * (@cyr61)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18389826)
 * You must have redirect to cart checked ( in WooCommerce). WooCommerce is redirecting
   it to cart.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Javascript Error Being Introduced by Plugin’ is closed to new replies.

 * ![](https://ps.w.org/woo-rfq-for-woocommerce/assets/icon-128x128.png?rev=2024323)
 * [NP Quote Request for WooCommerce](https://wordpress.org/plugins/woo-rfq-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 9 replies
 * 2 participants
 * Last reply from: [cyr61](https://wordpress.org/support/users/cyr61/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/javascript-error-being-introduced-by-plugin/#post-18389826)
 * Status: resolved