Jump to content

How do I add "STATE" to the New Order Html Email that is sent when a new order is placed?


Recommended Posts

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 Moore
35 Stan Johnson Drive
2259 Hamlyn Terrace
Australia
0243929671
0423245575

 

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

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

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

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

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