- Posts: 10
- Thank you received: 0
payment method in order_administrator_notification
13 years 9 months ago #83767
by rdalfred
payment method in order_administrator_notification was created 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!!
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 9 months ago - 13 years 9 months ago #83775
by Andrej4me
Replied by Andrej4me on topic payment method in order_administrator_notification
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
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 9 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 9 months ago #84207
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic payment method in order_administrator_notification
Hi,
Thanks Andrej4me.
Otherwise, you can use directly the "$data->order_payment_method" which is the string version of the payment plugin.
Regards,
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
Replied by Andrej4me on topic payment method in order_administrator_notification
Is there any changes made?
Please Log in or Create an account to join the conversation.
12 years 9 months ago #141798
by nicolas
Replied by nicolas on topic payment method in order_administrator_notification
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.176 seconds