Coluccini Posted December 19, 2013 Share Posted December 19, 2013 Hi, I've created an module to add some logic to the actionCartSave hook, is there a way to pass a smarty variable to be used within shopping-cart.tpl after the logic was applied? Thanks! Link to comment Share on other sites More sharing options...
vekia Posted December 19, 2013 Share Posted December 19, 2013 it's not possible to pass variables from Action hooks to .tpl files, it's because these hooks dont use template files, these hooks are "invisible" Link to comment Share on other sites More sharing options...
Coluccini Posted December 19, 2013 Author Share Posted December 19, 2013 mhmm ok. I'm using actionCartSave hook to remove a product from the cart if some other (specific) product it added to the cart as well and, if that happens, I want to show a message to the user telling him that the product was remove. How do you thing it is the best way to achieve this? Link to comment Share on other sites More sharing options...
Coluccini Posted December 26, 2013 Author Share Posted December 26, 2013 There a way to execute a display hook from an action hook? I mean, check for a condition in the action hook and if necessary run a display hook so something it is render in the smarty template or something like that 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