WebmasterLeal Posted March 14, 2013 Share Posted March 14, 2013 Hi there, i need to include product's description in emails. We have product name, example "Nissan 350Z" and in description there is "FREE new tires, FREE shipping, FREE full tank". I have also an module mailalerts, which sends an email to us about order. In both mails, there is product id, name, price etc. but i want to include under product name this: "You also get:" & short description. I tried this in mailalerts.php: $itemsTable .= '<tr style="background-color:'.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style="padding:0.6em 0.4em;">'.$product['product_reference'].'</td> <td style="padding:0.6em 0.4em;"> <strong>'.$product['product_name'].(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '').'</strong> <p>You also get:</p> '. $product['description_short'] .' </td> <td style="padding:0.6em 0.4em; text-align:right;">'.Tools::displayPrice($unit_price, $currency, false, false).'</td> <td style="padding:0.6em 0.4em; text-align:center;">'.(int)($product['product_quantity']).'</td> <td style="padding:0.6em 0.4em; text-align:right;">'.Tools::displayPrice(($unit_price * $product['product_quantity']), $currency, false, false).'</td> </tr>'; but without any success Link to comment Share on other sites More sharing options...
Rahvin Posted March 14, 2013 Share Posted March 14, 2013 It depends on what eMail you want to send. You need to assign a variable with the description in the corresponding controller/classes. For the order-confirmation eMail you have to take a look at classes/PaymentModule.php Link to comment Share on other sites More sharing options...
veravalonline Posted August 15, 2013 Share Posted August 15, 2013 I am preity sure its not that one, it has to something to deal with variables Link to comment Share on other sites More sharing options...
Recommended Posts