Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable zoom and link for default "No Image" image. #1278

Merged
merged 1 commit into from
Jun 19, 2018
Merged

Disable zoom and link for default "No Image" image. #1278

merged 1 commit into from
Jun 19, 2018

Conversation

Ubersmake
Copy link
Contributor

@Ubersmake Ubersmake commented Jun 19, 2018

What?

When a product has no images Cornerstone will display a default "No Image" image.

This image is zoomable, like other product images. And clicking on the image (if you can manage to click the 0x0 element) will open the full-size version of the image in the current view.

This PR removes that behavior. If a product has no images and thus displays the "No Image" image, the "No Image" image is treated like placeholder text. It does not zoom. It has no link.

Tickets / Documentation

Screenshots (if appropriate)

Before

Product Details Page:

productbefore

Quick View:

quickbefore

After

Product Details Page:

productafter

Quick View:

quickafter

@bigbot
Copy link

bigbot commented Jun 19, 2018

Autotagging @bigcommerce/storefront-team @davidchin

data-src="{{getImage product.main_image 'product_size' (cdn theme_settings.default_image_product)}}"
alt="{{product.main_image.alt}}" title="{{product.main_image.alt}}" data-main-image>
</a>
{{else}}
<img class="productView-image--default" src="{{cdn theme_settings.default_image_product}}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing is off .. it should be 1 level deep.

>
<div class="productView-img-container">
{{#if product.main_image}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same spacing here .. move the content 1 level inside.

@Ubersmake Ubersmake merged commit 584c782 into bigcommerce:master Jun 19, 2018
@Ubersmake Ubersmake deleted the STRF-5007 branch June 19, 2018 21:30
@Ubersmake Ubersmake restored the STRF-5007 branch June 20, 2018 22:49
@Ubersmake Ubersmake deleted the STRF-5007 branch June 20, 2018 22:50
@Ubersmake Ubersmake mentioned this pull request Jun 20, 2018
Ubersmake added a commit that referenced this pull request Jun 20, 2018
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.

3 participants