Customize Order Creation Notification Email

  • Posts: 4
  • Thank you received: 0
13 years 5 days ago #30841

I'm looking for a reference for adding new fields to the Order Creation Notification Email sent when an order is created. I know PHP and I see where I should be adding the code, but I don't see any reference material for what the names of the data elements are for additional things: like Product Description for example or Shipping Description.

For example:

if(bccomp($data->order_shipping_price,0,5)){
echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$currencyHelper->format($data->order_shipping_price,$data->order_currency_id)."\n";
}

..ok, this is the closest thing related to Shipping...
I'm using the Manual Shipping Plugin and I want to add the chosen Shipping Option's DESCRIPTION to the email...

it would be something like:

$data->?????

but I don't know what all the names for these additional items that aren't in there already.

Please help or point me to a reference where all these data elements are listed. Thanks,

-JJ

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 4 days ago #30873

Here is an example of how your should do it:
www.hikashop.com/en/support/forum/4-how-...ion-email.html#29243

For the shipping description, it will be in $shipping->shipping_description when you use the code mentioned in that thread.

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

  • Posts: 4
  • Thank you received: 0
12 years 11 months ago #31933

That worked. Thanks for your prompt response.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum