jaimeweb Posted October 9, 2013 Share Posted October 9, 2013 (edited) Hi, I need to get the full product name to display on its own in the order confirmation email. At the moment if i use the {products} tag it puts the whole table in including product ref, price etc etc etc. I simply want it to say for example: Thank you for purchasing 'PRODUCT ONE'No formatting, tables, prices, ref...nothing, simply the product name. Can any one help me? ThanksRunning PS 1.5.5 Edited October 9, 2013 by jaimeweb (see edit history) Link to comment Share on other sites More sharing options...
jaimeweb Posted October 10, 2013 Author Share Posted October 10, 2013 Anyone? Link to comment Share on other sites More sharing options...
jaimeweb Posted October 12, 2013 Author Share Posted October 12, 2013 Bump... Link to comment Share on other sites More sharing options...
jaimeweb Posted October 14, 2013 Author Share Posted October 14, 2013 Does anyone know if this can be done? Please? Link to comment Share on other sites More sharing options...
safa Posted October 14, 2013 Share Posted October 14, 2013 (edited) first bacup this file. classes/PaymentModule.php . and open this file. find this code. $products_list .= '<tr style="background-color: '.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style="padding: 0.6em 0.4em;width: 15%;">'.$product['reference'].'</td> <td style="padding: 0.6em 0.4em;width: 30%;"><strong>'.$product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : '').' - '.Tools::displayError('Customized').(!empty($customization_text) ? ' - '.$customization_text : '').'</strong></td> <td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($price, 2) : $price_wt, $this->context->currency, false).'</td> <td style="padding: 0.6em 0.4em; width: 15%;">'.$customization_quantity.'</td> <td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice($customization_quantity * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($price, 2) : $price_wt), $this->context->currency, false).'</td> </tr>'; replace like this. $products_list .= '<tr style="background-color: '.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style="padding: 0.6em 0.4em;width: 30%;"><strong>'.$product['name'].'</strong></td> </tr>'; } note: i didn't try this methot. but i hope works. if not works , let me know. regards.. Edited October 14, 2013 by safa (see edit history) 1 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