• If I select an option this error appears in console, what could it be?

    Uncaught TypeError: can't access property "textContent", this.priceDiv.contents().last()[0] is undefined

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter seortiz

    (@seortiz)

    please remove this topic, it was a problem with the template html class names

    I am also facing this same problem. What solution helped you? Can you please explain?

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    The error means that the JS script cannot find the price HTML tag.

    You should adjust CSS selector:

    
    this.priceDiv = this.isOnSale ? $('#product-'+ this.productId +' .summary ins .woocommerce-Price-amount') : $('#product-'+ this.productId +' .summary .woocommerce-Price-amount');      
    

    in the file:
    wp-content/plugins/product-options-for-woocommerce/view/frontend/web/product/main.js

    Send a link to the page where I can see the error on your website to my email pektsekye@gmail.com

    Stanislav

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

The topic ‘`Uncaught TypeError: can’t access property “textContent”’ is closed to new replies.