Bank details in confirmation email

  • Posts: 272
  • Thank you received: 7
12 years 3 months ago #60542

Hi there,

How can I add the bank details information to the confirmation email the client receives? This is really essential.
I imagine I need to edit the PHP files. Can you please give me the code and let me know which file I have to edit and where I need to place the code?

That would be greatly appreciated!
Thanks in advance for your time

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #60599

Hi,

You can use a translation override to modify the texts of the emails:
www.hikashop.com/en/download/languages.html#modify

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

  • Posts: 272
  • Thank you received: 7
12 years 3 months ago #60626

Hi there,

Sorry I am rather new to PHP and hikashop so could you explain in a little more detail?

Could you for example tell me the file location of the file I would need to change for the email verification?
Could you also give me an example of the PHP tags I would need to add for the bank details (and I can hopefully do the rest!)

Kind regards and thanks for your time

The following user(s) said Thank You: mab

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #60695

Hi,

As I said, you can use translation overrides. You don't need to edit any PHP files for that. The documentation link I gave you explains where you find the translation overrides interface and how to change the text.

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

  • Posts: 272
  • Thank you received: 7
12 years 3 months ago #60698

Thanks for the reply.

I will be translating Hikashop in to French and German when Joomfish 2.5 is available. Can still go ahead with what you are suggesting based on that?

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #60699

HikaShop is already translated in French and German. You can get the translation files via the Languages tab of the configuration of HikaShop.

You sure can go with what I said. I'm talking about translation overrides so you can continue to update language files while keeping your overrides as long as you save your modifications in the override area.

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

  • Posts: 272
  • Thank you received: 7
12 years 3 months ago #60738

Hi Nicolas,

Thank you for your reply. Excuse my lack of understanding here! So I can basically add text to the translation overide of the English files, so that my bank account details can appear in the email which clients receive... right?

So as you can see below I have pasted the 'email content' of the EN language file and added some text for my bank account details below the 'ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE' tag. I saved it but it doesn't appear in my confirmation email :( Am I doing something very silly? Do I need to replace my text with the relevant PHP tag?

;email content
ORDER_STATUS_NOTIFICATION_SUBJECT="Your order No. %s is now %s at %s"
ORDER_CREATION_NOTIFICATION_SUBJECT="Your order No. %s is now %s at %s"
ORDER_NOTIFICATION_SUBJECT="Your order No. %s at %s"
USER_ACCOUNT_SUBJECT="Account details for %s at %s"
CRON_REPORT_SUBJECT="Your cron has been triggered"
DATE_ON_WEBSITE="The %s at %s"
ORDER_STATUS_CHANGED_TO="The status of your order No. %s has been changed to %s."
HI_CUSTOMER="Hi %s,"
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"
If you are paying by Bank Transfer, please find our account details below:
Bank Account: 464363464
IBAN: 00868678
SUMMARY_OF_YOUR_ORDER="SUMMARY OF YOUR ORDER"
TOTAL_WITHOUT_VAT="TOTAL without VAT : %s"
TOTAL_WITH_VAT="TOTAL with VAT : %s"
ORDER_VALID_AFTER_PAYMENT="Your order will be processed as soon as we receive your payment."
THANK_YOU_FOR_YOUR_ORDER="Once again, thank you for your order at %s. We hope to see you again soon."
THANK_YOU_FOR_REGISTERING="Thank you for registering at %s."
ACCOUNT_MUST_BE_ACTIVATED="Your account must be activated by clicking on the link below and you will be able to continue your order."
YOU_CAN_LOG_IN_WITH="You can log in the website with the following username and password."
BEST_REGARDS_CUSTOMER="Best regards,<br/>%s"
NEW_ORDER_SUBJECT="New order No. %s created on %s"

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

  • Posts: 26154
  • Thank you received: 4028
  • MODERATOR
12 years 3 months ago #60751

Hi,

The file is a "ini formated" file using "key/value" structure.
In your configuration, I saw a quote at the end of the line. This quote mark the end of the value for the key "ORDER_CREATION_SUCESS_ON_WEBSITE_AT_DATE".

Please put your translation in the same line using "<br/>" for line breaks.
Like this:

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<br/>If you are paying by Bank Transfer, please find our account details below:<br/>Bank Account: 464363464<br/>IBAN: 00868678<br/>"

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 272
  • Thank you received: 7
12 years 3 months ago #60772

Jerome that's perfect! Fully understood now. Thank you for your time.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum