Created Email modifying

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #35387

After checkout, there are bank account and transfer information showed only in e-shop page. But how to add that information to email also.

Email pic is on attach, what is sent to customer after checkout. How to add a bank information to it? Im using hikashop free version!

Attachments:

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

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #35391

I mean like to take that code form banktransfer_end.php and add it to order_creation_notification.html.php, that it automatically changes when shop owner changes bank information.
I tried to add, but this "bank information" wont be added to that email.


<?php echo JText::_('ORDER_IS_COMPLETE').'<br/>'.
JText::sprintf('PLEASE_TRANSFERT_MONEY',$amount).'<br/>'.
$information.'<br/>'.
JText::sprintf('INCLUDE_ORDER_NUMBER_TO_TRANSFER',$order_number).'<br/>'.
JText::_('THANK_YOU_FOR_PURCHASE');?>


Other information form that code appears, but how to get that row to email "$information.'<br/>'." ?

Last edit: 12 years 10 months ago by ener.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35434

You can get the payment information like that in emails:

$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass->get($data->order_payment_id);
$payment->payment_params = unserialize($payment->payment_params);
echo $payment->payment_params->information;

The following user(s) said Thank You: klimmbimm

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

  • Posts: 1
  • Thank you received: 0
12 years 10 months ago #35726

Thank you!

I was looking for the same but i would like to include the order number too as a reference to the bank
Have tried to copy the $url in top but get then also the link to the order

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

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #35757

If I have two languages in shop. How to do so, if customer uses english language, then he/she will get email in english. If customer uses swedish language, then he/she will gets notification email written in swedish.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35821

@oxenvad: You can easily display the order number like that:
echo $data->order_number;

@ener: that should be like that by default. On our demo website for example, we have three languages setup and the emails are sent in the language of the user.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum