- Posts: 218
- Thank you received: 6
change the URL to be sef in customer order email
- woonydanny
-
Topic Author
- Offline
Less
More
14 years 8 months ago #37307
by woonydanny
change the URL to be sef in customer order email was created by woonydanny
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?
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.
14 years 8 months ago #37443
by nicolas
Replied by nicolas on topic Re: change the URL to be sef in customer order email
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.
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.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 8 months ago #37457
by woonydanny
Replied by woonydanny on topic Re: change the URL to be sef in customer order email
Do i change this line?
to:
but not sure how to get it to automatically calculate the order id number...
Code:
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:
Code:
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.
14 years 8 months ago #37551
by nicolas
Replied by nicolas on topic Re: change the URL to be sef in customer order email
indeed but don't forget the quotes,so it should be something like that:
Code:
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.211 seconds