• Resolved bg000331

    (@bg000331)


    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:32
    at button.js:283:13
    at 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

    (@joostvandevijver)

    Hello @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 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.

    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/
    (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

    (@joostvandevijver)

    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.