Points discount in Order Admin Notification email

  • Posts: 23
  • Thank you received: 0
11 years 3 months ago #113498

Could you, please, advice... how to include info how much points discount was used on order from Hikashop AlphaUserPoints Plugin to Order Admin Notification email?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #113559

Hi,

You will have to edit the mail "order_admin_notification" from the menu System > mail.
The points informations are probably not in the object "$data" (thanks to check), so you will have to edit more files to add the alphauserpoints informations in the email.
It require a good php level.

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
11 years 3 months ago #114190

Please, advice the file names for customizition? Where is this object $data processing?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #114247

It's in the class "order" function "save()", in this class the object is "$order".
We don't recommend to edit the HikaShop core files, it's better to create a plugin, you can use the function "onAfterOrderCreate" and add the informations about the alphauserpoints in the $order object.

Then display them in the email.

Here is the documentation about the plugins:
www.hikashop.com/fr/support/documentatio...mentation.html#howto

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum