DRMasterChief Posted March 24, 2018 Share Posted March 24, 2018 Hello, i am searching for where to edit {items} which is used in mailalerts module / new_order.html Regarding our internal process, i have to change the new_order.html so that the items are shown as follows: quantity - name - reference - unit price - price but i also have to change {items} to this sequence to be the same. Is this possible ? thank you for any help and please see the picture in which you can see that the fields does not match the {items} Link to comment Share on other sites More sharing options...
DRMasterChief Posted March 25, 2018 Author Share Posted March 25, 2018 Hi, now i have found it, it is in mailalerts.php Changed to this (without link to the item and non-bold font to save toner): $itemsTable .= '<tr style="background-color:'.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style="padding:0.6em 0.4em; text-align:left;">'.(int) $product['product_quantity'].'</td> <td style="padding:0.6em 0.4em;">'.$product['product_name'] .(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '') .(!empty($customizationText) ? '<br />'.$customizationText : '') .' </td> <td style="padding:0.6em 0.4em;">'.$product['product_reference'].'</td> <td style="padding:0.6em 0.4em; text-align:right;">'.Tools::displayPrice($unitPrice, false).'</td> <td style="padding:0.6em 0.4em; text-align:right;">' .Tools::displayPrice(($unitPrice * $product['product_quantity']), false) .'</td> </tr>'; } foreach ($params['order']->getCartRules() as $discount) { $itemsTable .= '<tr style="background-color:#EBECEE;"> <td colspan="4" style="padding:0.6em 0.4em; text-align:right;">'.$this->l('Voucher code:').' '.$discount['name'].'</td> <td style="padding:0.6em 0.4em; text-align:right;">-'.Tools::displayPrice($discount['value'], false).'</td> </tr>'; } 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