Jump to content

Separate attributes into separate lines (PS 1.7)


Recommended Posts

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

Edited by el Bambino
Make link usable (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...