[Skip to main content](#vessel-content)

#   URL on email

##

- **[m.fontana](/forum/user/35027-m-fontana "View m.fontana's Profile")**
- [![m.fontana's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35027.png)](/forum/user/35027-m-fontana "View m.fontana's Profile") Topic Author
- [ Offline](/forum/user/35027-m-fontana)
- Matteo Fontana

Less More

- Posts: 121
- Thank you received: 1
-
-
-
- [](http://www.apiceweb.it)
-

10 years 10 months ago [\#227279](#227279) by [m.fontana](/forum/user/35027-m-fontana "View m.fontana's Profile")  *[URL on email](/forum/27-checkout/881700-url-on-email#227279 "-- HikaShop version -- : 2.4 -- Joomla version -- : 3.4.8  Hi, I won't to change the order email; when I do an order in the email appeared the url of the site, I try to modify this code:  I remove and into language file I delete %s relative of the url code, but in the email apperared this (check attachment). How can I do for remove the url?  Another question, how can I do for insert url site on world? Like numeber of order  Thanks Matteo")* was created by *[m.fontana](/forum/user/35027-m-fontana "View m.fontana's Profile")*

-- HikaShop version -- : 2.4
-- Joomla version -- : 3.4.8

Hi,
I won't to change the order email; when I do an order in the email appeared the url of the site, I try to modify this code:
Code:

&lt;?php $url = $data-&gt;order_number; $config =&amp; hikashop_config(); if($config-&gt;get('simplified_registration',0)!=2){ $url .= ' ( '.$data-&gt;order_url.' )'; } echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?&gt;

I remove Code:

$url,HIKASHOP_LIVE

and into language file I delete %s relative of the url code, but in the email apperared this (check attachment). How can I do for remove the url?

Another question, how can I do for insert url site on world? Like numeber of order

Thanks
Matteo

- [ ![Schermata&#95;2016-01-22&#95;alle&#95;11&#95;00&#95;42.png](/forum/attachment/29000) ](/forum/attachment/29000 "...e&#95;11&#95;00&#95;42.png") [ ](/forum/attachment/29000?download=1 "...e&#95;11&#95;00&#95;42.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTcwMC11cmwtb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 10 months ago [\#227303](#227303) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[URL on email](/forum/27-checkout/881700-url-on-email#227303 "-- HikaShop version -- : 2.4 -- Joomla version -- : 3.4.8  Hi, I won't to change the order email; when I do an order in the email appeared the url of the site, I try to modify this code:  I remove and into language file I delete %s relative of the url code, but in the email apperared this (check attachment). How can I do for remove the url?  Another question, how can I do for insert url site on world? Like numeber of order  Thanks Matteo")*

Hi,

I suggest you to not modify the email but just touch the translation.
In "sprintf", you can use %2$s in order to select the second parameter ; as explained in the official PHP documentation (argument swapping)
[ php.net/manual/en/function.sprintf.php](http://php.net/manual/en/function.sprintf.php)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [m.fontana](/forum/user/35027-m-fontana "View m.fontana's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTcwMC11cmwtb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[m.fontana](/forum/user/35027-m-fontana "View m.fontana's Profile")**
- [![m.fontana's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35027.png)](/forum/user/35027-m-fontana "View m.fontana's Profile") Topic Author
- [ Offline](/forum/user/35027-m-fontana)
- Matteo Fontana

Less More

- Posts: 121
- Thank you received: 1
-
-
-
- [](http://www.apiceweb.it)
-

10 years 10 months ago [\#227703](#227703) by [m.fontana](/forum/user/35027-m-fontana "View m.fontana's Profile")  Replied by *[m.fontana](/forum/user/35027-m-fontana "View m.fontana's Profile")* on topic *[URL on email](/forum/27-checkout/881700-url-on-email#227703 "-- HikaShop version -- : 2.4 -- Joomla version -- : 3.4.8  Hi, I won't to change the order email; when I do an order in the email appeared the url of the site, I try to modify this code:  I remove and into language file I delete %s relative of the url code, but in the email apperared this (check attachment). How can I do for remove the url?  Another question, how can I do for insert url site on world? Like numeber of order  Thanks Matteo")*

Hi, your solution function, thanks. I try to change date format from this 2016-01-26 to 26-01-2016, so from %Y %B %d to %d %B %Y, but nothing happened, why?

Thanks
Matteo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTcwMC11cmwtb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 10 months ago [\#227722](#227722) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[URL on email](/forum/27-checkout/881700-url-on-email#227722 "-- HikaShop version -- : 2.4 -- Joomla version -- : 3.4.8  Hi, I won't to change the order email; when I do an order in the email appeared the url of the site, I try to modify this code:  I remove and into language file I delete %s relative of the url code, but in the email apperared this (check attachment). How can I do for remove the url?  Another question, how can I do for insert url site on world? Like numeber of order  Thanks Matteo")*

Hi,

So in this code of the order creation email ? 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'));

For the original sentence:

> We are pleased to confirm the creation of your order No. %s at %s on the %s at %s

And the date in this sentence is not displayed as you want ?

Please note that the format '%d %B %Y' is the default format.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTcwMC11cmwtb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
