Title: js Error
Last modified: September 21, 2023

---

# js Error

 *  Resolved [bg000331](https://wordpress.org/support/users/bg000331/)
 * (@bg000331)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/js-error-154/)
 * Hi,
   i dont have a quantity field on my product page. The payment buttons are 
   only visible at checkout, not on the single product page.Im getting the following
   js error. Any solution for this?
 * SingleProductActionHandler.js:128 Uncaught (in promise) TypeError: Cannot read
   properties of null (reading ‘value’)
   at r.value (SingleProductActionHandler.js:
   128:48)at t.value (SingleProductBootstap.js:228:29)at t.i (Utils.js:39:14)at 
   t.simulateCartThrottled (Utils.js:53:21)at t.value (SingleProductBootstap.js:
   58:18)at t.value (SingleProductBootstap.js:49:14)at t.value (SingleProductBootstap.
   js:86:14)at button.js:165:32at button.js:283:13at r (ScriptLoading.js:15:9)
 * ERROR
   const qty = document.querySelector(‘[name=”quantity”]’).value;
 * Thanks

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

 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/js-error-154/#post-17070607)
 * Hello [@bg000331](https://wordpress.org/support/users/bg000331/)
 * Thank you for reaching out to us, we are here to help.
 * This issue does not seem to be related to our plugin. The function you are describing
   is a WooCommerce function. I have reviewed this on my test environment, and it
   did not show any similar issue.
 * You may want to perform a full conflict test to rule out eventual issues with
   the theme or a different plugin. We recommend temporarily activating the [default theme Storefront](https://wordpress.org/themes/storefront/)
   and disabling all other plugins except for WooCommerce and PayPal Payments to
   see if the behavior persists.
 * Here’s a guide that explains the steps in more detail: [How to test for conflicts](https://woocommerce.com/document/how-to-test-for-conflicts/).
 * It could be that this is an issue with our plugin, but not “only” with our plugins,
   since this function does work correctly with the default setup. If you think 
   there is an issue with our plugin, we would need to get more details from your
   end to review (system report, logs, etc). If you don’t feel comfortable sharing
   those details on a public forum, please open a ticket with our service desk. 
   You can find the instruction for this here: [https://paypal.inpsyde.com/docs/request-support/](https://paypal.inpsyde.com/docs/request-support/)
   (
   please add the URL of this thread in the ticket as well).
 * Please let us know how this works out for you.
 * Kind regards,
   Joost
 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/js-error-154/#post-17143923)
 * Hello,
 * Since we did not receive any response or follow-up questions from you, we will
   assume you got this working to your requirements. If you still have any more 
   questions for us, please open a new thread, because we will mark this one as 
   resolved.
 * Kind regards,
   Joost

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

The topic ‘js Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/js-error-154/#post-17143923)
 * Status: resolved