Bobb11 Posted April 9, 2014 Share Posted April 9, 2014 I'm searching something about adding code for total weight to alert mails. Previously programmer set points to weight...i dont know why. But today he is missing and we cannot call him. I want advice about, how can i added to module "alert mail", function for total weight... In cart is simple. There is a function. But in alert mails module is nothing. Anybody solved this problem? Or what I must edit or add to mailalerts.php? Thanks for any advice Link to comment Share on other sites More sharing options...
vekia Posted April 10, 2014 Share Posted April 10, 2014 hello you want to put total weight into the mail for customer, or to merchant? Link to comment Share on other sites More sharing options...
Bobb11 Posted April 10, 2014 Author Share Posted April 10, 2014 hello you want to put total weight into the mail for customer, or to merchant? Thanks for reply. I want put total weight for both. But primary is merchant... Link to comment Share on other sites More sharing options...
vekia Posted April 10, 2014 Share Posted April 10, 2014 okay so let's clarify. merchant email is handled in mail alerts module mail to customer is a part of core, and in some cases also related to payment modules that you use. it will be necessary to analyse payment modules that you use and see if these modules uses own emails system. then it will be necessary to modify mailing function, and add for example {total_weight} variable, then you will be able to use it in email templates (email templates used in mail::send function) Link to comment Share on other sites More sharing options...
Bobb11 Posted April 10, 2014 Author Share Posted April 10, 2014 okay so let's clarify. merchant email is handled in mail alerts module mail to customer is a part of core, and in some cases also related to payment modules that you use. it will be necessary to analyse payment modules that you use and see if these modules uses own emails system. then it will be necessary to modify mailing function, and add for example {total_weight} variable, then you will be able to use it in email templates (email templates used in mail::send function) Thanks I try it. Btw. I solved mail alerts: I added to mailalerts.php to $tamplate_vars = array { '{product_weight}' => $order->getTotalWeight(), And email template {product_weight}. This is working. I try your advice for mail to customer. Thank you! 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