Skip to content

Commit

Permalink
Merge pull request PrestaShop#21617 from NeOMakinG/issue-21562
Browse files Browse the repository at this point in the history
Show gift package and message on every details tabs of order view
  • Loading branch information
Progi1984 authored Nov 4, 2020
2 parents fd65530 + 8106838 commit c020552
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@
{% endblock %}
{% endembed %}
</div>

{% if orderForViewing.shipping.recycledPackaging %}
<span class="badge badge-success">{{ 'Recycled packaging'|trans({}, 'Admin.Orderscustomers.Feature') }}</span>
{% endif %}

{% if orderForViewing.shipping.giftWrapping %}
<span class="badge badge-success">{{ 'Gift wrapping'|trans({}, 'Admin.Orderscustomers.Feature') }}</span>
{% endif %}
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@
{% if orderForViewing.shipping.carrierModuleInfo %}
{{ orderForViewing.shipping.carrierModuleInfo|raw }}
{% endif %}

{% if orderForViewing.shipping.recycledPackaging %}
<span class="badge badge-success">{{ 'Recycled packaging'|trans({}, 'Admin.Orderscustomers.Feature') }}</span>
{% endif %}

{% if orderForViewing.shipping.giftWrapping %}
<span class="badge badge-success">{{ 'Gift wrapping'|trans({}, 'Admin.Orderscustomers.Feature') }}</span>
{% endif %}
{% else %}
<p class="text-center mb-0">
{{ 'Shipping does not apply to virtual orders'|trans({}, 'Admin.Orderscustomers.Feature') }}
Expand Down

0 comments on commit c020552

Please sign in to comment.