From fe8b057419f7f669eccfd6f62a9757b850749dcc Mon Sep 17 00:00:00 2001 From: Hotdoy Date: Wed, 1 Jan 2020 14:20:35 -0500 Subject: [PATCH] fixed product cart image and collection prices --- templates/product-collection.html.twig | 2 +- templates/product.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/product-collection.html.twig b/templates/product-collection.html.twig index 63a254a..c0c0554 100644 --- a/templates/product-collection.html.twig +++ b/templates/product-collection.html.twig @@ -20,7 +20,7 @@ {% include 'partials/img.html.twig' with {'image': page.media.images|first} %}
{{ page.title }}
-
{{ theme.price_prefix }} {{ page.header.price|number_format(2) }} {{ theme.price_suffix }}
+
{{ theme.price_prefix }} {{ page.header.price }} {{ theme.price_suffix }}
{% endfor %} diff --git a/templates/product.html.twig b/templates/product.html.twig index 113b4e3..c73183b 100644 --- a/templates/product.html.twig +++ b/templates/product.html.twig @@ -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