Skip to content

Commit

Permalink
fixed product cart image and collection prices
Browse files Browse the repository at this point in the history
  • Loading branch information
hotdoy committed Jan 1, 2020
1 parent 7ebe268 commit fe8b057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/product-collection.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% include 'partials/img.html.twig' with {'image': page.media.images|first} %}
</div>
<div class="pc__grid__item__title">{{ page.title }}</div>
<div class="pc__grid__item__price">{{ theme.price_prefix }} {{ page.header.price|number_format(2) }} {{ theme.price_suffix }}</div>
<div class="pc__grid__item__price">{{ theme.price_prefix }} {{ page.header.price }} {{ theme.price_suffix }}</div>
</a>

{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/product.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
data-item-price="{{ page.header.price }}"
data-item-url="{{ page.url }}"
data-item-description="{{ page.header.description }}"
data-item-image="{{ image.url }}"
data-item-image="{{ page.media.images|first.url }}"
data-item-name="{{ page.title }}">Add to cart</a>
</div>
</div>
Expand Down

0 comments on commit fe8b057

Please sign in to comment.