Skip to main content

customers last name on order email

More
14 years 3 months ago #54855 by bigfoot
How do I get the customers last name along with the order number on the invoice I receive?

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

More
14 years 3 months ago #54887 by Xavier
Hi,

You can get the customer Lastname by editing the mails "Order Admin Notification" (only on commercial version of hikashop) in HikaShop > System > Emails.
And add the line:
Code:
echo $data->cart->shipping_address->address_lastname;

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

More
14 years 3 months ago #54931 by bigfoot
I found the fle but I am not sure where to put the code - at the very top?? anywhere on the page??


this is what I receive when I get an order: "A new order has been created on your website"

I would like it to read something like "New Order# 5003 - customer last name"

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

More
14 years 3 months ago #54995 by nicolas
So you will have to add such code:

<?php $mail->subject = 'New Order# '.$data->order_number.' - '.$data->cart->shipping_address->address_lastname; ?>

You can add it at the end.

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

More
10 years 9 months ago #224398 by bigfoot
After a 3.5 years with Hikashop - many revisions - something happened to my email that I get and I want it like I had before. Now I am using Joomla 3.4.6 & HikaShop Business: 2.6.0.

Is this what I add to the bottom of the file?
"So you will have to add such code:

<?php $mail->subject = 'New Order# '.$data->order_number.' - '.$data->cart->shipping_address->address_lastname; ?>

You can add it at the end."
and which one, the HTML, text or preload version?

Seems like I tried pasting it in and orders would not go through.

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

More
10 years 9 months ago #224404 by nicolas
Hi,

It should be in the HTML version.

What do you mean by "orders would not go through" ? Did you get an error message ? A blank page ? If you turn on the error reporting of the Joomla configuration, do you get an error message ?
What error message is that ?

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

More
10 years 9 months ago #224492 by bigfoot
Thank you - it is fine now - I must have pasted it into the wrong part.

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

Time to create page: 0.203 seconds
Powered by Kunena Forum