customers last name on order email

  • Posts: 246
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
12 years 4 months ago #54855

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.

  • Posts: 13201
  • Thank you received: 2322
12 years 4 months ago #54887

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:

echo $data->cart->shipping_address->address_lastname;

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

  • Posts: 246
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
12 years 4 months ago #54931

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.

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
12 years 4 months ago #54995

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.

  • Posts: 246
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
8 years 10 months ago #224398

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.

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
8 years 10 months ago #224404

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.

  • Posts: 246
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
8 years 10 months ago #224492

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.069 seconds
Powered by Kunena Forum