THELIA Forum

Welcome to the THELIA support and discusssion forum

Offline


Hi All,
Is there a way to create a variable in a hook that can be visible globally?
I tried to declare a var like this but not working:
{assign var="feature_availability" value="[some value]" scope="global"} or {$feature_availability="[some value]"}

any idea?
Thanks!

Offline


This PR ( https://github.com/thelia/thelia/pull/2047 ) which will be integrated to version 2.4 make all template variables available to the hooks.


CQFDev | Sites, boutiques, modules, développement et intégration pour Thelia 1 et 2

Offline


Thanks Roadster!
I need the opposite way, I mean I want to declare a variable in my hook what needs to be visible in the main/parent template(in my case in category.html)
Is there a way/hack/tip  to do that?

Thanks