Jump to content

Getting item location into new_order.html


Recommended Posts

Hello,

 

I was wondering if anyone knows how to get the location of the item (stored in product_attribute -> location in the database) to appear in the e-mail new_order.html. I have modified my template new_order.html to accomodate for a new column, and have tried entering the following codes into mailalerts.php (with no luck) within the $itemsTable part of the file:

 

<td style="padding:0.6em 0.4em;">'.$product['location'].'</td>

 

<td style="padding:0.6em 0.4em;">'.$product_attribute['location'].'</td>

 

Thanks in advance for any clues.

 

locations of the aformentioned files:

\modules\mailalerts\mails\en\new_order.html

\modules\mailalerts\mailalerts.php

Link to comment
Share on other sites

adding the following line to the $itemsTable in mailalerts.php should have done it. You would need to alter the new_order.html so that there are 6 table columns, so that it would align properly, but you should atleast see the value. Did you confirm that the database has a value in the location column?

 

<td style="padding:0.6em 0.4em;">'.$product['location'].'</td>

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...