lateral Posted October 24, 2015 Share Posted October 24, 2015 Hi guys The new_order.html email that is sent to the Shop admin does not contain the "STATE" variable of the address. Here is an example: Darryl Moore35 Stan Johnson Drive2259 Hamlyn TerraceAustralia02439296710423245575 I have spent a lot of time trying to figure out how and where the address is constructed but can't find it! Can somebody please point me in the right direction? Thanks Regards Greg Link to comment Share on other sites More sharing options...
madimax Posted October 25, 2015 Share Posted October 25, 2015 Hello, have you check on the module mailalerts ? go to file mailalerts.php, then search vor template_vars and check if you have the '{delivery_state}' => $delivery->id_state ? $delivery_state->name : '', then check on the mail template of this module if the {delivery_state} is called best regards Link to comment Share on other sites More sharing options...
bellini13 Posted October 25, 2015 Share Posted October 25, 2015 Addresses are dynamically created based on the Address format that is used. If State does not appear, that usually means that the State is not required for that Country and has been disabled, or that the State has been removed from the Address format for that Country. Provide some screen shots of the Country edit screen that is in question Link to comment Share on other sites More sharing options...
lateral Posted October 25, 2015 Author Share Posted October 25, 2015 Hi guys, Madimax, I have looked at the mailalerts.php file and the variable is there and it appears to use a variable called "{delivery_block_html}" to insert the complete address into the bottom of the email. If I add the "{invoice_state}" variable manually, it inserts the State correctly. I suppose my question should have been more related to what Bellini13 was suggesting and that was why isn't the State being used as part of the "{delivery_block_html}" variable. Bellini13, the following is the screen shot of the Australian county edit screen: http://awesomescreenshot.com/0ef5cmb669 Regards Greg Link to comment Share on other sites More sharing options...
lateral Posted October 25, 2015 Author Share Posted October 25, 2015 Hi again Bellini13 I decided to play with changing the layout of the Australian Country address and added the STATE and everything is now working great! Thanks for pointing me in the right direction. Regards Greg Link to comment Share on other sites More sharing options...
bellini13 Posted October 26, 2015 Share Posted October 26, 2015 good stuff 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