Jump to content

[SOLVED] How to center product name and unit price?


Recommended Posts

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

46444_hNYDohzxBpjgw0Di85Kx_t

Link to comment
Share on other sites

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

×
×
  • Create New...