Skip to content

fix: display slideshow arrows only if generic images exist#68

Open
luechinger wants to merge 1 commit intoShopify:mainfrom
luechinger:patch-1
Open

fix: display slideshow arrows only if generic images exist#68
luechinger wants to merge 1 commit intoShopify:mainfrom
luechinger:patch-1

Conversation

@luechinger
Copy link
Copy Markdown

Context:
If color swatches are enabled and multiple product variants (with their variant image) exist, the current version of Horizon will always display slideshow arrows – even if no "generic" images are present. In this case, clicking the arrow will have no effect, thus confusing the user.

Fix:
Added a check for generic images which are not attached to a variant. Hide slideshow arrows if not the case.

Context:
If color swatches are enabled and multiple product variants (with their variant image) exist, the current version of Horizon will always display slideshow arrows – even if no "generic" images are present. In this case, clicking the arrow will have no effect, thus confusing the user.

Fix:
Added a check for generic images which are not attached to a variant. Hide slideshow arrows if not the case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant