JS error if no gallery images added
-
If no gallery images are added then a JS error occurs:
Uncaught TypeError: can’t access property “slidesToShow”, l.options is undefined
This then causes a problem if the product has a ‘Default Form Values’ set.
With this situation, when adding the product to cart it shows the error ‘Please choose product options by visiting [product name]’
You have to manually change the variation option to be able to add it to cart instead of being able to add to cart with the default value set via the ‘Default Form Values’ option for the product.
Disabling the plugin or adding at least one gallery image resolves the problem.
Everything up to date on my site, tested with other plugins disabled and default theme etc.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.