You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
is it the right place to report an problem in the docs?
In https://pimcore.com/docs/pimcore/current/Development_Documentation/E-Commerce_Framework/Working_with_Prices/Pricing_Rules.html there are i missing same closing tags.
{% set priceInfo = product.OSPriceInfo %} {% if priceInfo.rules %} <div class="discounts"> <p><strong>{{ 'shop.detail.your_benefit'|trans }}</strong></p> <ul> <?php foreach($priceInfo->getRules() as $rule ) { ?> {% for rule in priceInfo.rules %} <?php foreach($rule->getActions() as $action) { ?> {% for action in rule.actions %} {% if action is instanceof('Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Action\ProductDiscount') %} {% if action.amount > 0 %} <li>{{ rule.label }} {{ 'shop.detail.your_benefit.discount.amount'|trans([action.amount]) }}</li> {% elseif action.percent > 0 %} <li>{{ rule.label }} {{ 'shop.detail.your_benefit.discount.percent'|trans([action.percent]) }}</li> {% endif %} {% elseif action is instanceof('Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Action\GiftInterface') %} <li> {{ 'shop.detail.your_benefit.discount.gift'|trans }}, <a href="{{ action.product.getShopDetailLink() }}">{{ action.product.name }}</a> </li> {% elseif action is instanceof('Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Action\FreeShipping') %} <li> {{ 'shop.detail.your_benefit.discount.freeshipping'|trans }} </li> {% endif %} {% endfor %} <?php } ?> {% endfor %} <?php } ?> </ul> </div> {% endif %}
Beta Was this translation helpful? Give feedback.
All reactions