rambabuy Posted January 19, 2014 Share Posted January 19, 2014 Hi experts, I want to add some code for particular category like " category id= 4 " or " category name = iphone". I have added one line condition code in category.tpl in default theme. requirement : I want include seperate product-list.tpl for different category added code below , one condition coloured in red. But its not working , how can I add a condition here? ...... {if $products} <div class="content_sortPagiBar"> {include file="$tpl_dir./pagination.tpl"} <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> </div> {if $category->id = 4} {include file="./product-list.tpl" products=$products} {/if} <div class="content_sortPagiBar"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl" paginationId='bottom'} {include file="./product-compare.tpl" paginationId='bottom'} {include file="./nbr-product-page.tpl" paginationId='bottom'} </div> {include file="./pagination.tpl" paginationId='bottom'} </div> But its not working , how can I add a condition here? Link to comment Share on other sites More sharing options...
vekia Posted January 19, 2014 Share Posted January 19, 2014 i can't test code right now but i've got one question what you mean by "doesn't work" - just want to ask: what you see instead of product list? Link to comment Share on other sites More sharing options...
rambabuy Posted January 19, 2014 Author Share Posted January 19, 2014 i can't test code right now but i've got one question what you mean by "doesn't work" - just want to ask: what you see instead of product list? Hi actually I dont want show produtct list for the category id 4 Link to comment Share on other sites More sharing options...
rambabuy Posted January 20, 2014 Author Share Posted January 20, 2014 Resolved , I got it , thanks Link to comment Share on other sites More sharing options...
Razu Posted February 28, 2014 Share Posted February 28, 2014 can yu post the resolved complete code ?? 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