Jump to content

Set a php variable from a smarty variable


glenskie16

Recommended Posts

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 by math_php (see edit history)
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...