Jump to content

[solved ]Sperarate Tax Line on Merchant New Order Email (mail alerts)


Recommended Posts

Using Mail Alerts Module 2.3 with PS 1.4.9

I have the customer order confirmation email showing prices without tax and tax on a separate line and total all working nicely.

customer-order-details.png

How do I get the merchant new order email to do the same?

merchant-new-order.png

Any help is greatly appreciated, and once done I can launch site!

Regards, Dino

Edited by El Patron
marked as solved (see edit history)
Link to comment
Share on other sites

find the working email under translations-->emails

 

copy that html (don't forget the txt version) of what is displaying here but not in the mechante email

 

find the merchant email (translation-->emails)

 

add that line(s) of html with 'field name' to that email...

 

save it

 

let us know how it goes

Link to comment
Share on other sites

note the filed may not display if the variable is not passed by the controller calling the 2nd email in your example. You would then need to add the variable passed to the controller, like the controller of the first email example. Just search on the two different names of the emails, you see the file names when your are in translations..

Link to comment
Share on other sites

Hi,

 

Thank you very much for your help!

 

You were right with the second (copied) email not showing the variable. What files and code do I look for and add to make the controller work?

 

Here is the original order confirmation email:

 

csc-order-conf-works.png

 

Copied html over to /modules/mailalerts/mails/en/new_order.html

 

csc-merchant-conf-copied.png

Link to comment
Share on other sites

as I mentioned above you can search for the first email name and the corresponding controller that creates the variables, then do the same for the 2nd email. Then you should be able to pass the missing variable to the .tpl. Sorry I wanted to post the code but I am super busy right now away from the computer most of the time for the next few days.

Link to comment
Share on other sites

I have updated the mail alerts module. mailalerts.zip

1. uninstall and delete your native mailalerts module (keep back up by ftping to your local host or you can get native by unzipping 1.4.9.0

 

2. install attached module

 

Test your order making sure to have the {total_tax} tag in your email.

 

Let me know how that works out for you.

 

Fred

Link to comment
Share on other sites

sorry about that....I forgot to take out the traps...I was working where there was no ftp nor mailserver testing....

reload from the previous download link above.

 

I still have an issue with the total_tax, it display but has the {} brackets in the email...work on that tomorrow.

 

Fred

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 1 month later...

Hi El Patron

I downloaded your updated mail alerts folder in order to add the tax line to the merchant new order email

I am now getting this fault where the the unit price is being altered by the quantity instead of the Total price

The Unit Price is £5.10

See below

This does not affect the end calculation which is correct

 

Can you help?

Thanks

Julian

 

post-580800-0-89001500-1383646354_thumb.png

Edited by julian walker (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...