Jump to content

Retrieve Order Delivery Post/Zip Code on Order-History.TPL - Do I need to modify the class?


protechtrader

Recommended Posts

Hello All,

 

I am still learning PS programming here so I would appreciate a bit of help.

 

How would be the easiest way to access the order that was just placed post/zip code from the order-history.tpl?  The only array I see populated by default there is $order and the closest I can access is the $order.id_delivery_address variable, but I need to get to the point where I have a $postcode variable available, and I wasn't sure if I would have to modify the order history class to achieve this so I wanted to ask first.

 

Thanks!

Link to comment
Share on other sites

so far I have tried adding to the controllers smarty array variables such as:

'select_address' => (int)Tools::getValue('select_address'),
'address' => $this->_address,
'id_address' => (Validate::isLoadedObject($this->_address)) ? $this->_address->id : 0,
 
And no luck even getting the full address to the template yet...  
 
Anyone have a quick suggestion for me?
Link to comment
Share on other sites

Spent a few hours today reading documentation, reading forum posts, and editing the orderhistory controller & order-history.tpl files with no luck.  I have been able to pass many variables to smarty from the controller, but none of them have the zip populated.  The $orders variable seems to have the total order amount and order refrence number and id, but the $cart array seems empty at this point so I do not know where to get the order zip code from?

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...