Jump to content

Edit History

zion

zion

On 11/1/2020 at 6:36 PM, dianacd said:

Finally I created a module to set my global variables. They are accesible only from TPL files though. Here is the code in case that it may be useful for anyone:

https://github.com/dianacd/prestashop_modules/tree/master/mcr_global_var

 

You can access from .tpl with {$your_variable1} ?
I am trying to send variables from a module to the invoice template. I can't get it to work, I'm doing something wrong: S
I have also tried to load these variables into $data array of "HTMLTemplateInvoice.php", trying to save from the module as smarty variable, but I also can't

edit:
By doing tests, with the override I can show the variable in the theme's .tpl, but not in the invoice tpl.
With the module method I can't, I have tested the functions; "hookDisplayPDFInvoice ()" and "hookactionFrontControllerSetVariables ()"
what am I missing?

zion

zion

On 11/1/2020 at 6:36 PM, dianacd said:

Finally I created a module to set my global variables. They are accesible only from TPL files though. Here is the code in case that it may be useful for anyone:

https://github.com/dianacd/prestashop_modules/tree/master/mcr_global_var

 

You can access from .tpl with {$your_variable1} ?
I am trying to send variables from a module to the invoice template. I can't get it to work, I'm doing something wrong: S
I have also tried to load these variables into $data array of "HTMLTemplateInvoice.php", trying to save from the module as smarty variable, but I also can't

×
×
  • Create New...