Jump to content

Edit History

el Bambino

el Bambino


Make link usable

Hi Guys,

I tried many methods to separate the attributes onto separate lines on emails I send to customers.

I tried using this method, "https://www.prestashop.com/forums/topic/605460-order-confirmation-mail-how-to-separate-attribute-using-line-break-instead-of-comma/". It doesn't work.

Original code on "PaymentsModule.php" was:

'name' => $product['name'] . (isset($product['attributes']) ? ' - ' . $product['attributes'] : ''),

I changed to this:

'name' => $product['name'] . (isset($product['attributes']) ? '<br />' . $product['attributes'] . '<br />' : ''),

I get a new line after the name. However the output for the attributes remains the same, all the attributes remains a single line (first image). How can I make that change? Can someone help me?

Capture2.PNG

Capture.PNG

el Bambino

el Bambino


Translations

Hi Guys,

I tried many methods to separate the attributes onto separate lines on emails I send to customers.

I tried using this method, "https://www.prestashop.com/forums/topic/605460-order-confirmation-mail-how-to-separate-attribute-using-line-break-instead-of-comma/". It doesn't work.

Original code on "PaymentsModule.php" was:

'name' => $product['name'] . (isset($product['attributes']) ? ' - ' . $product['attributes'] : ''),

I changed to this:

'name' => $product['name'] . (isset($product['attributes']) ? '<br />' . $product['attributes'] . '<br />' : ''),

I get a new line after the name. However the output for the attributes remains the same, all the attributes remains a single line (first image). How can I make that change? Can someone help me?

Capture2.PNG

Capture.PNG

el Bambino

el Bambino

Hi Guys,

I tried many methods to separate the attributes onto separate lines on emails I send to customers.

I tried using this method, "https://www.prestashop.com/forums/topic/605460-order-confirmation-mail-how-to-separate-attribute-using-line-break-instead-of-comma/". It doesn't work.

Original code on "PaymentsModule.php" was:

'name' => $product['name'] . (isset($product['attributes']) ? ' - ' . $product['attributes'] : ''),

I changed to this:

'name' => $product['name'] . (isset($product['attributes']) ? '<br />' . $product['attributes'] . '<br />' : ''),

I get a new line after the name. However the output for the attributes remains the same, all the attributes remains a single line (see attachment, Capture2). How can I make that change? Can someone help me?

Capture2.PNG

Capture.PNG

×
×
  • Create New...