Snippet doesn’t work
-
I’m trying to add this java code to the footer of a single product page, to hide some variation options but it doesn’t work.
Can you please help?
document .querySelectorAll('[data-attribute_value]')[2].addEventListener('click', function () { document.getElementsByClassName('subscription-option')[0].style.display = 'none' document.getElementsByClassName('subscription-option')[1].style.display = 'none' })
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Snippet doesn’t work’ is closed to new replies.