little problem with formatting of email order

  • Posts: 281
  • Thank you received: 3
8 years 3 months ago #261612

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

Hello
I have a problem with email that user and admin receive after an order.
I changed the template and I copied from the old one this code to the new one:

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.5.0
 * @author	hikashop.com
 * @copyright	(C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_post_code} {address_city} {address_state}
{address_country}
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>
<br/><?php echo 'Codice Fiscale: ';?>{address_vat}
<?php echo 'Note per il corriere: ';?>{address_nota}

this is the text of the email:

Vito russo
via dante 1111
74121 taranto Taranto
Telefono: 09999Codice Fiscale: sgnfncblabla

The problem is with Codice Fiscale and I want it in the new line under telefono.
With old template <br/> worked but now not
Why??:S

Thanks
Frank

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

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
8 years 3 months ago #261615

Hi,

You should see to perform

echo "\r\n";
between PHP tags in order to force the display of a return line.
With the "?>" at the end of the line, I think that your PHP processing is removing the carriage return, so you should force it.

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: 281
  • Thank you received: 3
8 years 3 months ago #261726

Yes it works but not with the email when I change the status of order...it is an other file not the same address_template.php??

thanks
Frank

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

  • Posts: 281
  • Thank you received: 3
8 years 3 months ago #261727

OK I found it, I have to modify address_template for the back-end template too.
I did it and it works

Correct?

Thannks
Frank

The following user(s) said Thank You: Jerome

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

Time to create page: 0.067 seconds
Powered by Kunena Forum