change the URL to be sef in customer order email

  • Posts: 218
  • Thank you received: 6
12 years 11 months ago #37307

In the email that is sent to the customer after a purchase it says:


Hi Name,

We are pleased to confirm the creation of your order No. 02749 ( www.domain.com/index.php?option=com_hika...=order&task=show&cid []=2749 ) at www.domain.com/ on the 29 January 2012 at 22:28

how do i show the url as a sef url? I don't want to show index.php?option=com_hikashop&ctrl=order&task=show&cid[]=2749 but instead something like www.domain.com/store/orders/order_id_2749

i don't mind the actually url as long as it is a nice pretty url

how is this done?

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37443

You would have to edit the email via the menu System->Emails in the Business edition.
However, since the SEF URL can be a lot different based on the SEF component and the options you're using, we didn't find a way which would work in all cases. That's why we left it non SEFed.

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

  • Posts: 218
  • Thank you received: 6
12 years 11 months ago #37457

Do i change this line?

echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

to:
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',http://www.domain.com/store/account/orders,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

but not sure how to get it to automatically calculate the order id number...

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37551

indeed but don't forget the quotes,so it should be something like that:

echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE','http://www.domain.com/store/account/orders/order_id-'.$data->order_id,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

The following user(s) said Thank You: woonydanny

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

Time to create page: 0.061 seconds
Powered by Kunena Forum