Jump to content

[SOLVED] Accessing postcode in order-carrier.tpl


Recommended Posts

I am trying to access the delivery address postcode, in the page order-carrier.tpl, so I can display a message when a comparison is made with the postcode. I cannot seem to get the code right to get the delivery address postcode from this page. Has anyone any ideas?


Link to comment
Share on other sites

The carrier page doesn't have access to the address like the address page does. You'll need to add the following code to the $smarty->assign at the bottom of the displayCarrier() function in order.php:

'address' => $address,

Then you should be able to use {$address->postcode} in order-carrier.tpl.

Link to comment
Share on other sites

  • 2 years later...

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