willdebeest Posted March 27, 2010 Share Posted March 27, 2010 Hi,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?Thanks Link to comment Share on other sites More sharing options...
rocky Posted March 28, 2010 Share Posted March 28, 2010 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 More sharing options...
willdebeest Posted March 28, 2010 Author Share Posted March 28, 2010 Thanks Rocky, that is exactly what I needed. I',m off to buy a decent reference book for Smarty now! Any recommendations? Link to comment Share on other sites More sharing options...
rocky Posted March 28, 2010 Share Posted March 28, 2010 I just use the free documentation available here. Link to comment Share on other sites More sharing options...
praneth Posted March 16, 2013 Share Posted March 16, 2013 Would somebody know how to do this in v1.5 ? 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