greenhaze Posted April 11, 2013 Share Posted April 11, 2013 (edited) 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 April 11, 2013 by greenhaze (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 11, 2013 Share Posted April 11, 2013 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 1 Link to comment Share on other sites More sharing options...
vekia Posted April 11, 2013 Share Posted April 11, 2013 thats right just use statictic code, it works like a charm 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