Jump to content

[SOLVED] How to being able to assign a smarty variable to another tpl from a module


Newls

Recommended Posts

Hi,

 

I created a new module that assign smarty variables via the normal way ( $this->context->smarty->assign('var', 'val'); ) , and i created a hook that i trigger just before the product display, in product.tpl.

That's working, but what i really want, is to be able to assign a variable that I can display in product.tpl , is that possible ?

 

Thank you for reading

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

Dear Newls,

 

If the topic has been solved, adds the word "SOLVED" to the title of the topic, this will help maintain a more organized forum.

 

Sorry for my English

 

 

[sOLVED] Topic

 

If, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution.

Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED].

Link to comment
Share on other sites

  • 2 years later...

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...