sachin427 Posted July 30, 2011 Share Posted July 30, 2011 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 More sharing options...
bellini13 Posted July 31, 2011 Share Posted July 31, 2011 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 More sharing options...
sachin427 Posted August 2, 2011 Author Share Posted August 2, 2011 Thanks for your response. The information is contained inside table 'ps_product_attribute' in field 'location'. I also tried the following with no luck. <td style="padding:0.6em 0.4em;">'.$product['attribute_location'].'</td> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now