Confirm order

  • Posts: 55
  • Thank you received: 0
9 years 9 months ago #190704

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.35
-- Browser(s) name and version -- : Crome las versiont

Buongiorno is a mistake in the order confirmation email, which should bring the time when the order was placed back on the site, as can change this value?

Attachments:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 9 months ago #190719

Hi,

This URL comes from the "live site" option where you set the URL of your website in the Joomla configuration page.

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

  • Posts: 55
  • Thank you received: 0
9 years 9 months ago #191178

The problem is that there should be them the time and not the site link

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

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #191189

Hello,
I didn't totally understood your issue, what do you exactly mean by :

The problem is that there should be them the time and not the site link

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

  • Posts: 55
  • Thank you received: 0
9 years 9 months ago #191242

These are the translations in Italian and English of the problem, the variable is not a link to the site but a time, for example at 18.45 not www.pro .....

Italian: ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE="Confermiamo di aver ricevuto l'ordine %s alle %s il giorno %s"

English: ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE="We are pleased to confirm the creation of your order No. %s at %s on the %s at %s"

How do I change that variable?

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #191262

Hi,

Via the menu System > Emails, you have to edit the email "order creation notification", then in the HTML version part, replace:

JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'))
By:
JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,hikashop_getDate(time(),'%H:%M'), hikashop_getDate(time(),'%d %B %Y'), HIKASHOP_LIVE)

Same thing in the Preload part of the email.

If the informations are still not as desired, you have to change the order of the elements in the JText function.

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

  • Posts: 55
  • Thank you received: 0
9 years 9 months ago #191381

nothing has changed, what can I do?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 9 months ago #191395

Hi,

There should be no need to change any code.
Just modify that text with a translation override so that it displays what you want:
hikashop.com/download/languages.html#modify

And if you want to change the order of the variables in the translation, it's possible too.
So for example the translation:
ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE="We are pleased to confirm the creation of your order No. %s at %s on the %s at %s"
in the same as:
ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE="We are pleased to confirm the creation of your order No. %1$s at %2$s on the %3$s at %4$s"
and you can change the order of the variables like this:
ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE="We are pleased to confirm the creation of your order No. %1$s at %2$s at %4$s on the %3$s"

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

Time to create page: 0.087 seconds
Powered by Kunena Forum