adding text in order notification email whne check payment

  • Posts: 37
  • Thank you received: 0
7 years 1 month ago #279704

-- url of the page with the problem -- : cpnt2017.fr
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.0
-- PHP version -- : 7.1.10
-- Browser(s) name and version -- : all

Hello, Bonjour,
When customers pay by check, i would add text in the order notification email, tu recall them the address to send the check.
I have created the text "recall_adress" in french language file.
I do not know what condition to write in the following code of order_notification.html.php file :

[i]<!--{IF:PAYMENT}-->
<p>
<span style="color:#1c8faf !important;font-size:12px;font-weight:bold;">{TXT:PAYMENT_METHOD} :</span> {VAR:PAYMENT}
</p>
<!--{ENDIF:PAYMENT}-->[/i]


to add the text "recall_adress" before or in order end message, when check only

Thanks for your help
Alain

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 1 month ago #279765

Hi,

There is already some text added specifically in the order creation notification email for when a check payment is selected for that purpose:
echo '<p>' . JText::sprintf('PLEASE_SEND_CHECK',$amount).'<br/>'.$information.'<br/>'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_CHECK',$data->order_number) . '</p>';
That email is sent when the order is created, unless you deactivated it.

However, in the order notification email, that is sent when you click on the "email" button of the order edition page, there is not such text.
You would have to add something like that in the HTML version:
<?php if($data->cart->order_payment_method == 'check' ) echo 'My text'; ?>

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

  • Posts: 37
  • Thank you received: 0
7 years 1 month ago #279788

Hi,
Sorry i dont understand what HTML version file you mean !
i've tried in /media/com_hikashop/mail/order_creation_notification.html.php, but error 404 !
I've created the text 'SEND_CHECK_INFORMATION' in language file, is it possible to use it ? instead of "...echo 'My text'; ?> "

As you see here : prntscr.com/gt5g4e , there is no notification about PLEASE_SEND_CHECK in the notification mail, but only displayed on the site. Its the reason why, i want it in the mail to customer...

Regards
Alain

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

  • Posts: 12953
  • Thank you received: 1778
7 years 1 month ago #279795

Hello Alain,

Sorry i dont understand what HTML version file you mean !
i've tried in /media/com_hikashop/mail/order_creation_notification.html.php, but error 404 !


To edit the HTML version of your email, you'll just have to :
- Go to the "Hikashop->System->Emails" page
- Configure your email
- Edit the value of the "HTML version" tab

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

Time to create page: 0.068 seconds
Powered by Kunena Forum