Email confirmation

  • Posts: 84
  • Thank you received: 0
12 years 5 months ago #52452

Hi,

I would like to change the users order confirmation email so that the email is addressed to the Business name (field socit in address table) instead of the firstname, whereabouts would I head to for the this?

kindly,

Luke

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

  • Posts: 13201
  • Thank you received: 2322
12 years 5 months ago #52508

Hi lwlbar,

To address the email to the business name instead of the firstname, you have to edit the mail in HikaShop > System > Emails.
Edit the Order creation notification, and order status notification.

You can replace $data->customer->name in:

<?php echo JText::sprintf('HI_CUSTOMER',@$data->customer->name); ?>

The edition of the emails are only available in commercial versions of hikashop.

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

  • Posts: 84
  • Thank you received: 0
12 years 5 months ago #52525

Hi Xavier,

sorry i wan't quite clear. I had actually found my way to this point, but wasn't sure how to call the businesses name (field socit in the address table. I couldn't work out where customer and name labels were being called from. ($data->customer->name)

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #52568

You can do it like that:

<?php echo JText::sprintf('HI_CUSTOMER',@$data->cart->billing_address->socit); ?>

However, note that you will have to move it AFTER the loadFullOrder block of code because that's where the data is loaded for the email.

The following user(s) said Thank You: lwlbar

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

Time to create page: 0.073 seconds
Powered by Kunena Forum