- Posts: 14
- Thank you received: 0
Show Shipping method name on Email
- Techie1000
-
Topic Author
- Offline
Is it possible to show the chosen shipping method name on the email that is sent to the customer.
I have found where to edit the email - just need to know what code i should be using.
Cheers
CHRIS
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Techie1000
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
Please Log in or Create an account to join the conversation.
But this worked:
Please Log in or Create an account to join the conversation.
Thank you for your feedback.
Please Log in or Create an account to join the conversation.
Thanks.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Thank you, but that is a link to this article. Have i missed something?
Iain
Please Log in or Create an account to join the conversation.
He gave you a link to this topic because the method for the payment methods is the same than the shipping, just have to replace shipping by payment.
Please Log in or Create an account to join the conversation.
Would there be somewhere that would list all of these classes. I am not that hot on PHP/coding. I would also like it to show the customer's e-mail address. Ideally in the From section of the e-mail. If not at least like the code you have given.
so
email address : johnsmith@gmail.com
Yours
Iain
Please Log in or Create an account to join the conversation.
To display the customer's email address, you can use the var: "$mail->from_name", so "echo 'email address: '.$mail->from_name;"
Please Log in or Create an account to join the conversation.
Perhaps you could point out to me where I am going wrong with this one...
<?php $mailClass = hikashop_get('class.mail');
$mail = $mailClass->get($data->from_name);
$mail->mail_params = unserialize($mail->mail_params);
echo 'email address: '. $mail->from_name; ?>
Iain
Please Log in or Create an account to join the conversation.
<?php echo 'email address: '. $mail->from_name; ?>
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
Maybe using "from_email" instead of "from_name" ?
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.
Please Log in or Create an account to join the conversation.
Thanks
Iain
Please Log in or Create an account to join the conversation.
The code to display the email address of the user is:
<?php
$userClass = hikashop_get('class.user');
$userClass->get(false);
$user = $userClass->get($data->order_user_id);
echo $user->user_email; ?>
Please Log in or Create an account to join the conversation.
Xavier wrote: Hi,
He gave you a link to this topic because the method for the payment methods is the same than the shipping, just have to replace shipping by payment.
Code:<?php $paymentClass = hikashop_get('class.payment'); $payment = $paymentClass->get($data->order_payment_id); $payment->payment_params = unserialize($payment->payment_params); echo 'Payment method: '. $payment->payment_name; ?>
Hello, I feel a bit stupid, but can you tell me where exactly (what line?) I need to add this code in email?
Your advice is appriciated
Please Log in or Create an account to join the conversation.