rtvt Posted August 17, 2016 Share Posted August 17, 2016 Hello, I have a module, which assign variable $settings.option. I use this var in product-list.tpl : {if isset($settings.option) && $settings.option== "5"} ... {/if} All works perfect, until I apply some layered navigation block filter. Products reloads by ajax, and my variable become undefined. Can someone help me to solve it? Regards Link to comment Share on other sites More sharing options...
bellini13 Posted August 17, 2016 Share Posted August 17, 2016 you would have to alter the block layered module to add your logic. your module coding is being skipped when you are using block layered, so those variables will never get defined Link to comment Share on other sites More sharing options...
rtvt Posted August 17, 2016 Author Share Posted August 17, 2016 Thank you for answer, but is there really no other way to solve it, not touching block layered? Something like put this variable to <input type="hidden" val="{$var}"> for example in the category.tpl, and then somehow grab this value to product-list.tpl. I can't come up with mechanism 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