- Posts: 23
- Thank you received: 0
Points discount in Order Admin Notification email
13 years 3 months ago #113498
by appetit
Points discount in Order Admin Notification email was created by appetit
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.
13 years 3 months ago #113559
by Xavier
Replied by Xavier on topic Points discount in Order Admin Notification email
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.
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.
13 years 3 months ago #114190
by appetit
Replied by appetit on topic Points discount in Order Admin Notification email
Please, advice the file names for customizition? Where is this object $data processing?
Please Log in or Create an account to join the conversation.
13 years 3 months ago #114247
by Xavier
Replied by Xavier on topic Points discount in Order Admin Notification email
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
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.130 seconds