Skip to content

Commit

Permalink
Merge pull request #118 from oallain/fix/pricing-with-catalog-promotion
Browse files Browse the repository at this point in the history
fix pricing with catalog promotion
  • Loading branch information
oallain authored Jun 30, 2023
2 parents 28e03c2 + a6a21da commit 3199a8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions SyliusShopBundle/views/Product/Show/_variantsPricing.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{% import "@SyliusShop/Common/Macro/money.html.twig" as money %}

<div id="sylius-variants-pricing" data-unavailable-text="{{ 'sylius.ui.unavailable'|trans }}">
{% for price in pricing %}
<div {% for option, value in price %}data-{{ option }}="{% if option == 'value' %}{{ money.convertAndFormat(value) }}{% else %}{{ value|replace({'\"': '\''}) }}{% endif %}" {{ sylius_test_html_attribute('variant-price') }}{% endfor %}></div>
{% endfor %}
{% for price in pricing %}
<div {% for option, value in price %}
{% if option != "applied_promotions" %}
data-{{ option }}="{% if option == 'value' %}{{ money.convertAndFormat(value) }}{% else %}{{ value|replace({'\"': '\''}) }}{% endif %}" {{ sylius_test_html_attribute('variant-price') }}
{% endif %}
{% endfor %}></div>
{% endfor %}
</div>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"title": "Sylius Bootstrap Theme"
},
"branch-alias": {
"dev-master": "0.5-dev"
"dev-master": "0.8-dev"
}
},
"config": {
Expand Down

0 comments on commit 3199a8f

Please sign in to comment.