You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
Issue
The markup and JS assumes your product images will always have an image.
I realize it's not common for a product not to have an image, but it's an assumption baked into the theme that should be addressed.
Reproduction
Make a product that has no images associated with it. Example screenshot: http://take.ms/zIVff
Screenshot of feature product section
Problem code
Three areas:
featured-product.liquid
product.liquid
product.js
In
featured-product.liquid
, it assumes that if you don't have a featured image then you must be onboarding:In
product.liquid
there's no check if a featured image exists.In
product.js
there is no check whether$(selectors.productFeaturedImage, this.$container)
yields any results first.The text was updated successfully, but these errors were encountered: