Jump to content

Edit History

zanpo

zanpo

Hello, 

It looks like the guys at Prestashop decided it's a good idea to "hide" this info under the "shipping tab", so now for every order you must check this tab and see if it has a gift wrap option and a message.

This is a very bad idea, so I decided to add the info on top of the products from the order, so it's right in your face :)

Edit this file:

/src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig

just before this line:

{% include '@PrestaShop/Admin/Sell/Order/Order/Blocks/View/products.html.twig' %}

add this info:

		{% if orderForViewing.shipping.giftWrapping %}
			<span class="badge badge-success">{{ 'Gift wrapping'|trans({}, 'Admin.Orderscustomers.Feature') }}</span>
		{% endif %}
			{% if orderForViewing.shipping.giftMessage %}
		<strong><label>
			{{ 'Gift message:'|trans({}, 'Admin.Global') }}
		</label></strong>
		<span><em>
			{{ orderForViewing.shipping.giftMessage }}
		</em></span>
		{% endif %}  

Also, you can add it anywhere else on the order page.

Hope it helps!

spacer.png

zanpo

zanpo

Hello, 

It looks like the guys at Prestashop decided it's a good idea to "hide" this info under the "shipping tab", so now for every order you must check this tab and see if it has a gift wrap option and a message.

This is a very bad idea, so I decided to add the info on top of the products from the order, so it's right in your face :)

Edit this file:

/src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig

just before this line:

{% include '@PrestaShop/Admin/Sell/Order/Order/Blocks/View/products.html.twig' %}

add this info:

		{% if orderForViewing.shipping.giftWrapping %}
			<span class="badge badge-success">{{ 'Gift wrapping'|trans({}, 'Admin.Orderscustomers.Feature') }}</span>
		{% endif %}
			{% if orderForViewing.shipping.giftMessage %}
		<strong><label>
			{{ 'Gift message:'|trans({}, 'Admin.Global') }}
		</label></strong>
		<span><em>
			{{ orderForViewing.shipping.giftMessage }}
		</em></span>
		{% endif %}  

Also, you can add it anywhere else on the order page.

Hope it helps!

×
×
  • Create New...