opionai Posted September 23, 2019 Share Posted September 23, 2019 How can I collect the id_order variable to send it with the confirmation email of the cheque module but with base64_encode encoded ( $mailVars = array( '{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')), {id_order} => here ); $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } } Como puedo recoger la variable de id_order para enviarla con el email de confirmación del modulo cheque pero con codificada base64_encode( $mailVars = array( '{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')), {id_order} => aqui ); $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } } Link to comment Share on other sites More sharing options...
Jagotic Posted September 24, 2019 Share Posted September 24, 2019 I think you don't need to do these things. Just mention id order in email template in any convenient place. i've done something like this with pdf 1 Link to comment Share on other sites More sharing options...
opionai Posted September 24, 2019 Author Share Posted September 24, 2019 but how should I do it ... the idea is to encode in the email the data to be sent by the url Link to comment Share on other sites More sharing options...
opionai Posted September 24, 2019 Author Share Posted September 24, 2019 Hello, can anyone help me 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