glenskie16 Posted March 18, 2014 Share Posted March 18, 2014 (edited) i need to set this variable using a smarty variable ... $test = $this->get_template_vars('order_name'); this is not working ^^^ this is on the mail.php Edited March 18, 2014 by glenskie16 (see edit history) Link to comment Share on other sites More sharing options...
math_php Posted March 19, 2014 Share Posted March 19, 2014 (edited) Hi Glenskie, If you got $template_vars then try this $test = $template_vars['{order_name}']; Mail templates are not related to smarty, get_template_vars is a smarty method Perhaps context object, and/or hook could solve your needs. Tell us what do you want to achieve to get more accurate tips. Regards Edited March 19, 2014 by math_php (see edit history) Link to comment Share on other sites More sharing options...
glenskie16 Posted March 19, 2014 Author Share Posted March 19, 2014 well what i am trying to do is i am trying to do a query so i could pull some extra information and add it to the email but i need the order id for my query... 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