patrmich Posted October 12, 2012 Share Posted October 12, 2012 Hi, In the the mail order received by the merchant, the product attribute is displayed in the same column as the product name. I would like to amend the e-mail received by the merchant in order to display the product attribute in a separated column. The first step is easy : creating another column in new-order.html file. Second step : In modules/mailalerts/mailalerts.php, there is the here below line : <td style="padding:0.6em 0.4em;"><strong>'.$product['product_name'].'</strong></td> But the 'product_name' is related to both the product name itself and also the product attribute. So, I didn't find the way to separate the product name itself from the product attribute. I thank you in advance for any help ion this matter Patrick Link to comment Share on other sites More sharing options...
tomerg3 Posted October 12, 2012 Share Posted October 12, 2012 You would have to parse out the attribute text from the product name. If you cannot do it with the current format, you may was to edit the way the name + attributes are saved, maybe add some sort of separator that would make it easier to parse. Link to comment Share on other sites More sharing options...
josal Posted November 15, 2012 Share Posted November 15, 2012 Hi, did you find the way to do it in a separate column? Moreover, if you have more than one attribute, the $product['product_name'] variable only shows the first one, at least for me. So that it appears the complete list of selected attributes, what do I have to write instead? Thanks in advance, PS1.4.6.2 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