Jump to content

Gift option not displaying on back-end order page V 1.7.7.3


NXDRC

Recommended Posts

Hello, 

I have just upgraded my shop from the version 1.7.6. to the 1.7.7, everything was fine beside one slight problem, I can no longer see the "gift wrap" option with it's custom message on the order page on the back-end of Prestashop and it's kinda driving me crazy because I have lots of orders awaiting to be treated.

Can anyone please help me with this ? 

Thank you

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

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

Edited by zanpo (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...