Jump to content

smarty webpay plus chile correo con datos ayuda


Recommended Posts

buenas tardes.

 

 

tengo un pagina montada en prestashop con el pluying de webpay plus

 

necesito que en correo de confirmación de compra aparescan las siguentes variables de la transaccion. el pluying define estas variables

 

 public function hookPaymentReturn($params) {
        
        if (!$this->active)
                return;
        
        $state = $params['objOrder']->getCurrentState();
        
 
                $this->smarty->assign(array(
                        'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false),
                        'status' => 'ok',
                        'id_order' => $params['objOrder']->id,
                        'WEBPAY_RESULT_DESC' => Context::getContext()->cookie->WEBPAY_RESULT_DESC,
                        'WEBPAY_VOUCHER_NROTARJETA' => Context::getContext()->cookie->WEBPAY_VOUCHER_NROTARJETA,
                        'WEBPAY_VOUCHER_TXDATE_FECHA' => Context::getContext()->cookie->WEBPAY_VOUCHER_TXDATE_FECHA,
                        'WEBPAY_VOUCHER_TXDATE_HORA' => Context::getContext()->cookie->WEBPAY_VOUCHER_TXDATE_HORA,
                        'WEBPAY_VOUCHER_TOTALPAGO' => Context::getContext()->cookie->WEBPAY_VOUCHER_TOTALPAGO,
                        'WEBPAY_VOUCHER_ORDENCOMPRA' => Context::getContext()->cookie->WEBPAY_VOUCHER_ORDENCOMPRA,
                        'WEBPAY_VOUCHER_AUTCODE' => Context::getContext()->cookie->WEBPAY_VOUCHER_AUTCODE,
                        'WEBPAY_VOUCHER_TIPOCUOTAS' => Context::getContext()->cookie->WEBPAY_VOUCHER_TIPOCUOTAS,
                        'WEBPAY_VOUCHER_TIPOPAGO' => Context::getContext()->cookie->WEBPAY_VOUCHER_TIPOPAGO,
                        'WEBPAY_VOUCHER_NROCUOTAS' => Context::getContext()->cookie->WEBPAY_VOUCHER_NROCUOTAS,
                        'WEBPAY_RESULT_CODE' => Context::getContext()->cookie->WEBPAY_RESULT_CODE,
                        'WEBPAY_TX_ANULADA' => Context::getContext()->cookie->WEBPAY_TX_ANULADA
                                     
                ));
                if (isset($params['objOrder']->reference) && !empty($params['objOrder']->reference))
                        $this->smarty->assign('reference', $params['objOrder']->reference);
 
 
        return $this->display(__FILE__, 'payment_return.tpl');
           
  
 
 
pero no las puedo llamar desde el html del correo. 
 
he tratado de incluir el tpl   'payment_return.tpl' en el correo y llamar a las variables pero no cargan
 
alguna idea se los agradeceria

 

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...