Add additional information in mail paypal

  • Posts: 4
  • Thank you received: 0
10 years 5 months ago #158071

Hi,
i want to add text in email sended when i use paypal.
if i configure bank payment method i have possibility to write additional information and i find this text informations in email received by the customers.

i want to add this text (in the code or in the db) when user select paypal method but i can't see where in the code or in the db.

thank you

p.s.: i've hikashop essential

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #158080

Hi,
To do that the solution will be to directly edit the code of your emails via "Hikashop->System->Emails" if you have the business version, or via the files of that directory : "media\com_hikashop\mail"

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

  • Posts: 4
  • Thank you received: 0
10 years 5 months ago #158619

Yes, but where is the point in the code where i can put my code like "if payment method is paypal echo mytext" ?

thank you for reply and support

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #158628

Using this kind of code through the "HTML version" tab of your email configuration page via "Hikashop->System->Emails" will probably do the job :

<?php
if($data->order_payment_method=="banktransfer"){
echo "mytext";
}
?>
You'll just have to replace the banktransfer text by your payment method name.

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

  • Posts: 4
  • Thank you received: 0
10 years 5 months ago #158726

yes, but for now i've hikashop essential version (my customer want to buy other version after complete tests).
i don't understand what file modify to put my code.
the folder is "media\com_hikashop\mail" but the file?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #158779

You'll be able to do that by adding your code through the ".html.php" file of your email via "\media\com_hikashop\mail".

Note that if you directly edit the file, you'll loose your changes after all Hikashop update, so don't forget do save them.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum