maximo88 Posted June 17, 2016 Share Posted June 17, 2016 Hello. I have Prestashop 1.6.0.9 with module Mailalerts. I have search in Google and in the webforum but there is nothing about this problem. Please help me. When I receive a email with a new order the 'other' customer field doesn't show. I have checked the code, but I don't understand the reason. I need it because my customers put in there some extra information that I need to read to accomplish the send. First I go: /public_html/modules/mailalerts/mails/es (I am spanish) 1º) In new_order.html, I see {delivery_block_html} {invoice_block_html}. 2º) Then I go to mailalerts.php // Filling-in vars for email $template_vars = array( '{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_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_state}' => $invoice->id_state ? $invoice_state->name : '', '{invoice_phone}' => $invoice->phone ? $invoice->phone : $invoice->phone_mobile, '{invoice_other}' => $invoice->other, '{order_name}' => $order->reference, I think all is correct. I don't understand why the phone is in the received mail, but the "other field" never. 3º Therefore, I open /public_html/classes/PaymentModule.php '{delivery_block_html}' => $this->_getFormatedAddress($delivery, '<br />', array( 'firstname' => '<span style="color:#75AAFF; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:#75AAFF; font-weight:bold;">%s</span>' )), '{invoice_block_html}' => $this->_getFormatedAddress($invoice, '<br />', array( 'firstname' => '<span style="color:#75AAFF; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:#75AAFF; font-weight:bold;">%s</span>' )),'{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, I can't find the problem, because I am not a genius in php. Please help me. Thank so much. 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