order status change email customization question

  • Posts: 23
  • Thank you received: 1
10 years 6 months ago #154483

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.2.3
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I was curious, when the status changes on an order you have the ability to email the customer the status change. But by default it looks like the status description is not included in the email. Is there a way to change the email template to include the status description of the order status step in the email notification?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 6 months ago #154493

The status description is there just for you to put a note down for each status not to be sent in the status notifications.
So, while it would be possible by adding some PHP code in the email template, there is no easy way to do that.
However, in most cases, you'll just sent that email for one specific status. In that case, you could directly write that status description text directly in the email template.

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

  • Posts: 23
  • Thank you received: 1
10 years 6 months ago #154600

Thank you for the informative response. It's sad though you can't include repetitive common information in the notification emails. I have order status's for each stage of an order as the shop I run does custom / hand made items and I am constantly having to copy and paste the same information over and over to notify the customer of what each step means and if they need to take any actions for that given step of the order. Having the ability to actually type in say a description area's of the status that is included in the email notification for that status step would be amazingly useful as the description of the step only for informative to the shop operators is pretty much useless since we run the shop and know what each step means.

An example is we have a status step that we create a proof site for customers to review the images prior to creation of what ever product they order. We don't move forward with the order till they approve the the proof site. So I am constantly having to copy and paste the same information on how to get to the proof site with each notification were as if it was part of the description that was included in the status update email I would simply have to hit send.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 6 months ago #154621

Such code in the email template should do the job:

<?php $db = JFactory::getDBO();
$db->setQuery('SELECT category_description FROM #__hikashop_category WHERE category_name='.$db->quote($data->order_status));
echo $db->loadresult(); ?>

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

  • Posts: 23
  • Thank you received: 1
10 years 6 months ago #154773

Excellent, thanks.
One more question. Since were I thought the template was was not, could you point out were the email template is stored?

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

  • Posts: 23
  • Thank you received: 1
10 years 6 months ago #154777

Scratch the last question.... I found it . Thanks a bunch!

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

  • Posts: 23
  • Thank you received: 1
10 years 2 months ago #170664

Sorry to dredge this up, but I managed to move hosting boxes and run an upgrade from standard edition to business which eliminated the change I made for this and now I can't find the email templates for the life of me.

Could you tell me where the email template is located?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #170667

Hi,

The email templates are located at "media/com_hikashop/mail".

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

Time to create page: 0.080 seconds
Powered by Kunena Forum