snelb91 Posted May 15, 2014 Share Posted May 15, 2014 (edited) The prestashop e-mail is fine but one thing is not always clear. I wanted something like : Name: ... Surname... Vat Number:... to be more readable. Any solutions? Edited May 15, 2014 by snelb91 (see edit history) Link to comment Share on other sites More sharing options...
franzneves Posted July 2, 2014 Share Posted July 2, 2014 I need too Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2014 Share Posted July 2, 2014 hello you can edit this mail template file like a simple html file so my question is: you've got problem with modification, or what? Link to comment Share on other sites More sharing options...
rpili1313 Posted July 22, 2014 Share Posted July 22, 2014 Do have to do this manually or can it be done in the admin panel? Link to comment Share on other sites More sharing options...
stasinus Posted January 25, 2015 Share Posted January 25, 2015 (edited) Hi Vekia, The mail template file is order_conf.html. And delivery_block_html is a token which is being replaced by smarty with a whole address information. So there is nothing to edit in the template file. The question is - where/how to edit address information shown in e-mail (which replaces this token). <font size="2" face="Open-sans, sans-serif" color="#555454"> <p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px"> Delivery address</p> <span data-html-only="1" style="color:#777"> {delivery_block_html}</span> </font> Edited January 25, 2015 by stasinus (see edit history) 1 Link to comment Share on other sites More sharing options...
stasinus Posted February 1, 2015 Share Posted February 1, 2015 Hi Vekia/all, Any updates please? Link to comment Share on other sites More sharing options...
napalm66 Posted February 20, 2015 Share Posted February 20, 2015 Same problem,Please heeeeeeeeeeeeeelp Link to comment Share on other sites More sharing options...
napalm66 Posted February 20, 2015 Share Posted February 20, 2015 I think - need to change somewhere here: (sorry for my english) '{delivery_block_html}' => MailAlert::getFormatedAddress( $delivery, '<br />', array( 'firstname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>' ) ), '{invoice_block_html}' => MailAlert::getFormatedAddress( $invoice, '<br />', array( 'firstname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>' ) ), '{delivery_company}' => $delivery->company, '{delivery_firstname}' => $delivery->firstname, '{delivery_lastname}' => $delivery->lastname, '{delivery_address1}' => $delivery->address1, '{delivery_address2}' => $delivery->address2, '{delivery_city}' => $delivery->city, '{delivery_postal_code}' => $delivery->postcode, '{delivery_country}' => $delivery->country, '{delivery_state}' => $delivery->id_state ? $delivery_state->name : '', '{delivery_phone}' => $delivery->phone ? $delivery->phone : $delivery->phone_mobile, '{delivery_other}' => $delivery->other, '{invoice_company}' => $invoice->company, '{invoice_firstname}' => $invoice->firstname, '{invoice_lastname}' => $invoice->lastname, '{invoice_address2}' => $invoice->address2, '{invoice_address1}' => $invoice->address1, '{invoice_city}' => $invoice->city, '{invoice_postal_code}' => $invoice->postcode, '{invoice_country}' => $invoice->country, '{invoice_state}' => $invoice->id_state ? $invoice_state->name : '', '{invoice_phone}' => $invoice->phone ? $invoice->phone : $invoice->phone_mobile, '{invoice_other}' => $invoice->other, '{order_name}' => $order->reference, '{shop_name}' => $configuration['PS_SHOP_NAME'], '{date}' => $order_date_text, '{carrier}' => (($carrier->name == '0') ? $configuration['PS_SHOP_NAME'] : $carrier->name), '{payment}' => Tools::substr($order->payment, 0, 32), '{items}' => $items_table, '{total_paid}' => Tools::displayPrice($order->total_paid, $currency), '{total_products}' => Tools::displayPrice($order->getTotalProductsWithTaxes(), $currency), '{total_discounts}' => Tools::displayPrice($order->total_discounts, $currency), '{total_shipping}' => Tools::displayPrice($order->total_shipping, $currency), '{total_tax_paid}' => Tools::displayPrice( ($order->total_products_wt - $order->total_products) + ($order->total_shipping_tax_incl - $order->total_shipping_tax_excl), $currency, false ), '{total_wrapping}' => Tools::displayPrice($order->total_wrapping, $currency), '{currency}' => $currency->sign, '{message}' => $message ); Link to comment Share on other sites More sharing options...
Recommended Posts