payment method in order_administrator_notification

  • Posts: 10
  • Thank you received: 0
11 years 11 months ago #83767

Hello
is there a way to put in the order payment method in the email sent to admin?
Can you please write me the right code here?!
Thanks in advance!!

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

  • Posts: 5
  • Thank you received: 1
11 years 11 months ago #83775

Kako vstavimo način plačila v email obvestilo Administratorju trgovine?

Go to hikashop-->system-->emails-->Order administrator notification

find in line about 240:
$paymentClass = hikashop::get('class.payment');
if(!empty($data->cart->billing_address)){

"and between this two lines enter text:"

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

the whole code looks like:
$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass->get($data->order_payment_id);
echo $payment->payment_name;
if(!empty($data->cart->billing_address)){

Andrej from Slovenia

Last edit: 11 years 11 months ago by Andrej4me.
The following user(s) said Thank You: rdalfred

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
11 years 11 months ago #84207

Hi,

Thanks Andrej4me.
Otherwise, you can use directly the "$data->order_payment_method" which is the string version of the payment plugin.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: rdalfred

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

  • Posts: 5
  • Thank you received: 1
10 years 10 months ago #141789

Is there any changes made?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
10 years 10 months ago #141798

The payment and shipping methods selected are displayed on the emails by default. There is nothing to do in the newest versions of Hikashop.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum