diff --git a/templates/product.html.twig b/templates/product.html.twig index 6444b01..35ba9ac 100644 --- a/templates/product.html.twig +++ b/templates/product.html.twig @@ -11,8 +11,7 @@ {{ product.name }} - {{ product.subTitle }} + {{ product.subTitle }} {% if product.promotions is not null and product.promotions.hasPromotion %}PROMO: {{ product.promotions.tag }} {% endif %} diff --git a/templates/productList.html.twig b/templates/productList.html.twig index 0f5f595..1b23d67 100644 --- a/templates/productList.html.twig +++ b/templates/productList.html.twig @@ -48,22 +48,19 @@ class="text-decoration-none">{{ product.name }}
{% if product.stock > 0 %} - stock: {{ product.stock }} + stock: {{ product.stock }} {% else %} out of stock {% endif %} {% if product.isDiscontinued() %} - is discontinued + is discontinued {% endif %} {% if product.isNew() %} is new {% endif %} - {{ product.subTitle }} + {{ product.subTitle }} {% if product.promotions is not null and product.promotions.hasPromotion %}PROMO: {{ product.promotions.tag }}{% endif %} - {{ product.country.countryName }} + {{ product.country.countryName }}