瀏覽代碼

easyfit

master
Florian Eisenmenger 4 年之前
父節點
當前提交
2538c250c5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      zenitPlatformAtmosSet2/src/Resources/views/storefront/component/product/card/price-unit.html.twig

+ 1
- 1
zenitPlatformAtmosSet2/src/Resources/views/storefront/component/product/card/price-unit.html.twig 查看文件

@@ -43,7 +43,7 @@
{% if (product.customFields.custom_weightlossplan_day5_image != null) %}{% set weekProductCount = weekProductCount + 1 %}{% endif %}
{% if (product.customFields.custom_weightlossplan_day6_image != null) %}{% set weekProductCount = weekProductCount + 1 %}{% endif %}
{% if weekProductCount >= 1 %}
<span>{{ (price.unitPrice / weekProductCount) | json_encode() | round(2) | replace({'.': ','}) }} € pro Tag</span>
<span>{{ (price.unitPrice / (weekProductCount * 2)) | json_encode() | round(2) | replace({'.': ','}) }} € pro Mahlzeit</span>
{% endif %}
</div>
{% if product.translated.customFields.deposittype %}


Loading…
取消
儲存