Jump to content

How to get required variables on module cashondelivery payment page ?


Radi
 Share

Recommended Posts

Hello

I'm trying to get Address delivery, address invoice, Delivery method, payment method on /module/cashondelivery/validation (validation.tpl)payment page.

 

On PS 1.4 it can be done by

$address = new Address($cart->id_address_delivery, intval($cookie->id_lang));
$address_invoice = new Address($cart->id_address_invoice, intval($cookie->id_lang));
$carrier = new Carrier($cart->id_carrier, intval($cookie->id_lang));
$state = State::getNameById($address->id_state);
$state_invoice = State::getNameById($address_invoice->id_state);
$smarty->assign('state', $state);
$smarty->assign('state_invoice', $state_invoice);
$smarty->assign('address', $address);
$smarty->assign('address_invoice', $address_invoice);
$smarty->assign('carrier', $carrier);

 

<p>{$address->firstname} {$address->lastname}</p>
<p class="payment_data">{$address->company}</p>
<p class="payment_data">{$address->address1}</p>
<p class="payment_data">{$address->postcode} {$address->city}</p>
<p class="payment_data">{$state}</p>  
<p class="payment_data">{$address->country}</p>
<p class="payment_data">{$address->phone}</p>
<p class="payment_data">{$address->phone_mobile}

 

But  PS1.5.4.1 have no assigned template variables. How to get required variables ?

 

Please, examples and suggestions.

Edited by Radi (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More