carlitos87 Posted October 17, 2013 Share Posted October 17, 2013 (edited) Ciao, ho prestashop 1.5.5 sto provando ad inserire nella mail di notifica dei campi da far vedere sempre - phone_mobile - vat (piva) - dni (cf) solo che nella mail di notifica non vengono inseriti ho modificato prima il file mailalerts.php inserendo queste righe '{invoice_mob}' => $invoice->phone_mobile,'{invoice_dni}' => $invoice->dni,'{invoice_vat}' => $invoice->vat_number, e poi copiate '{invoice_dni}' nel file new_order ma non funziona con la 1.4.9 funzionava dove sbaglio? grazie Edited October 17, 2013 by carlitos87 (see edit history) Link to comment Share on other sites More sharing options...
carlitos87 Posted October 17, 2013 Author Share Posted October 17, 2013 Ragazzi ho risolto: mailalerts.php '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{delivery_block_txt}' => MailAlert::getFormatedAddress($delivery, "\n"), '{invoice_block_txt}' => MailAlert::getFormatedAddress($invoice, "\n"), '{delivery_block_html}' => MailAlert::getFormatedAddress($delivery, '<br />', array( 'firstname' => '<span style="color:#DB3484; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:#DB3484; font-weight:bold;">%s</span>')), '{invoice_block_html}' => MailAlert::getFormatedAddress($invoice, '<br />', array( 'firstname' => '<span style="color:#DB3484; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:#DB3484; 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_mobile}' => $delivery->phone_mobile, '{delivery_dni}' => $delivery->dni, '{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_mobile}' => $invoice->phone_mobile, '{invoice_dni}' => $invoice->dni, '{invoice_other}' => $invoice->other, '{order_name}' => sprintf('%06d', $order->id), '{shop_name}' => Configuration::get('PS_SHOP_NAME'), '{date}' => $order_date_text, '{carrier}' => (($carrier->name == '0') ? Configuration::get('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_wrapping}' => Tools::displayPrice($order->total_wrapping, $currency), '{currency}' => $currency->sign, '{message}' => $message new_order <td> <br /> Tel: {invoice_phone}<br /> Tel: {delivery_phone_mobile} + {invoice_phone_mobile}<br /> C.F.: {delivery_dni} + {invoice_dni}<br /> Link to comment Share on other sites More sharing options...
faby71 Posted January 24, 2015 Share Posted January 24, 2015 Ciao perfetto con il tuo aiuto sono riuscito a sistemare, unica cosa che non ca è la P.iva, il numero non vieve visualizzato nella mail, sai dirmi come mai? grazie 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