Skip to main content

payment method in order_administrator_notification

13 years 10 months ago #83767 by rdalfred
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.

13 years 10 months ago - 13 years 10 months ago #83775 by Andrej4me
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: 13 years 10 months ago by Andrej4me.
The following user(s) said Thank You: rdalfred

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

13 years 10 months ago #84207 by Jerome
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.
The following user(s) said Thank You: rdalfred

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

12 years 9 months ago #141789 by Andrej4me
Is there any changes made?

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

12 years 9 months ago #141798 by nicolas
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.059 seconds
Powered by Kunena Forum