Jump to content

Show a Module depending of id_Category


greenhaze

Recommended Posts

Hi all,

 

I have downloaded a module that works perfect on my 1.5.3.1 but I have a problem to show only in a concrete category , I can use the exception but it doesnt help in this case...for example is a sizechart module that appear in product description and I would like to show only on t-shirts category and not in belts category.

 

I have tried to put :

 

{if $smarty.get.id_category eq "14"}

 

in my "sizechart.tpl" and adding {/if} at the end... but it doesnt work ,

 

and reading other topics I decided to try to put:

 

{if $smarty.get.id_category == 14 OR $smarty.get.id_category == 15 OR $smarty.get.id_category == 16}

 

in my "sizechart.tpl" and adding {/if} at the end... but it doesnt work...

 

I dont know what can try next , I supose that I should put the right code to do that and is something that will help other peopple that could have similar problems in different kind of Modules.

 

Thanks a lot in advanced

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

by product description you mean that you are on product page?

if so, unfortunately $smarty.get is array with:

 

Array ( [isolang] => en [id_lang] => 1 [id_product] => 6 [controller] => product )

 

there is no id_category

  • Like 1
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...