Housy Posted June 1, 2011 Share Posted June 1, 2011 Hello I would like to center product name and the unit price in order_conf.html file within mails directory.I have also attached the image, so you can see, what exactly i have in mind.I couldn't put it into center position, because there is only variable {products}.Can somebody please tell me, what should i do, so the product name and the unit price will be in the center position? Which file should i modify?Thanks,Housy Link to comment Share on other sites More sharing options...
DevNet Posted June 1, 2011 Share Posted June 1, 2011 Hi,This correction change your PrestaShop core. You can do this with an override method if you could technicaly.Edit your /classes/PayementModule.php, on lines 264 / 271 (core version 1.2.4.5) :Change : $productsList .= ' '.$product['reference'].' '.$product['name'].(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '').' - '.$this->l('Customized').(!empty($customizationText) ? ' - '.$customizationText : '').' '.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt, $currency, false).' '.$customizationQuantity.' '.Tools::displayPrice($customizationQuantity * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt), $currency, false).' '; to $productsList .= ' '.$product['reference'].' '.$product['name'].(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '').' - '.$this->l('Customized').(!empty($customizationText) ? ' - '.$customizationText : '').' '.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt, $currency, false).' '.$customizationQuantity.' '.Tools::displayPrice($customizationQuantity * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt), $currency, false).' '; Make certainly the same correction on line 274 / 282.Regards Link to comment Share on other sites More sharing options...
Housy Posted June 2, 2011 Author Share Posted June 2, 2011 It works great Thanks,Housy Link to comment Share on other sites More sharing options...
Recommended Posts