Jump to content

Undefined variables after layered navigation block apply


Recommended Posts

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

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

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