Hi everybody!
I am new to Shopify and have no experience with Java script. I am setting my store and noticed that for some products there is no way to select variants. For instance, I have a shirt in several sizes, Larger sizes are a bit more expensive. When selecting the size, the product doesn’t show the size selected (gets stuck on the firs size listed, for example small) and doesn’t show the prices for different sizes. I used ‘inspect’ on the product page an under the console I get the error below. I checked the code against another product that is working and I didn’t notice any difference in the script. I removed the product and re-created it and I get the same error. I am totally lost here and I will appreciate help to solve this problem. I am using Fashionopolism theme. Thanks in advance.
Raquel
Uncaught TypeError: Cannot read property ‘querySelectorAll’ of null
at Object.setActiveThumbnail (VM27 theme.js:4524)
at s. (VM27 theme.js:4362)
at s.emit (eventemitter3.min.js?v=2793973835332612354:1)
at Shopify.OptionSelectors.onVariantSelected (VM27 theme.js:3815)
at Shopify.OptionSelectors.updateSelectors (option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js:1)
at HTMLSelectElement.element.onchange (option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js:1)
at Shopify.OptionSelectors.selectVariant (option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js:1)
at Shopify.OptionSelectors.selectVariantFromDropdown (option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js:1)
at Shopify.OptionSelectors.initDropdown (option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js:1)
at new Shopify.OptionSelectors (option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js:1)