Jump to content

Product Name in Order Confirmation Email


Recommended Posts

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? 

Thanks

Running PS 1.5.5
 

Edited by jaimeweb (see edit history)
Link to comment
Share on other sites

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 by safa (see edit history)
  • Like 1
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...