Skip to content

Commit

Permalink
default image update
Browse files Browse the repository at this point in the history
  • Loading branch information
yurytut1993 committed Dec 11, 2020
1 parent 56cd65e commit 881abae
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions templates/components/cart/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@
title="{{lang 'cart.gift_certificate'}}"
>
{{else}}
<img
src="{{getImageSrcset image 1x=(default fallback_size ../theme_settings.productthumb_size)}}"
srcset="{{getImageSrcset image 1x=(default fallback_size '200x200')}} 2x"
<img
{{#if image}}
src="{{getImageSrcset image 1x=(default fallback_size ../theme_settings.productthumb_size)}}"
srcset="{{getImageSrcset image 1x=(default fallback_size '200x200')}} 2x"
title="{{image.alt}}"
alt="{{image.alt}}"
{{else if default_image}}
src="{{cdn default_image}}
{{/if}}
class="cart-item-image"
title="{{image.alt}}"
alt="{{image.alt}}"
/>
{{/if}}
</td>
Expand Down

0 comments on commit 881abae

Please sign in to comment.