I analyzed the angularJS code and I understand that I can see the shipping address (in the back-end in the invoice details) only when I set the invoice as payed so an order is created (I pull in github a new check for Know if the shipping address exists or not).
I Understood:
I can see only the billing address information when the order is not payed.
I can see only the shipping and billing address when the order is Payed.
In the order confirmation message I can use only billing tag (Ex. {{ShipToName}}) and invoice tag (Ex. {{Item.Name}}).
In the order shipped message I can use only shipping tag (Ex. {{BillToName}}).
This is one of the areas on my to do list to simplify as I admit it is setup pretty strange and pretty confusing. The merchello.config entries you are setting for the pattern matches are loaded into a "formatter" and then "if" a model has a parameter, it is replaced otherwise it is string.empty.
I am guessing you are identifying omissions in the extension methods used to populate the formatter with data from the models being passed to them.
For the order confirmation the method is Merchello.Core.Models.InvoiceExtensions ->
We are working on documentation to provide instruction so that people can write their own "Monitors and Triggers" for notification providers. These allow you to create your own models to build out custom messages. Shooting for later in December (2014) to have the docs published.
Shipping address for anonymous customer
The anonymous customer shipping address is stored in extendedData column on merchInvoiceItem.
Should I view this information in the invoice template in backend? (I can't see this information)
How can I use the shipping address in the email template? (ex. {{ShipToName}} return nothing)
I analyzed the angularJS code and I understand that I can see the shipping address (in the back-end in the invoice details) only when I set the invoice as payed so an order is created (I pull in github a new check for Know if the shipping address exists or not).
I Understood:
is it correct?
Hi Eidos,
This is one of the areas on my to do list to simplify as I admit it is setup pretty strange and pretty confusing. The merchello.config entries you are setting for the pattern matches are loaded into a "formatter" and then "if" a model has a parameter, it is replaced otherwise it is string.empty.
I am guessing you are identifying omissions in the extension methods used to populate the formatter with data from the models being passed to them.
For the order confirmation the method is Merchello.Core.Models.InvoiceExtensions ->
I will add a task to review the execution of:
http://issues.merchello.com/youtrack/issue/M-532
We are working on documentation to provide instruction so that people can write their own "Monitors and Triggers" for notification providers. These allow you to create your own models to build out custom messages. Shooting for later in December (2014) to have the docs published.
Hi Rusty,
thanks for your reply. Now the issue is more clear!
In case anyone else comes across this thread and want to get the shipping address from an invoice this should do the trick:
Just came across this last post and found that didn't work for me, however this does: posting here in case anyone else has a similar issue
is working on a reply...