giwrgos Posted June 19, 2012 Share Posted June 19, 2012 Hello everyone. i'm trying to make an if statement in the product-list.tpl and i made this code {if ($category->name|escape:'htmlall':'UTF-8' = "Xbox 360 Games") || ($category->name|escape:'htmlall':'UTF-8' = "Playstation 3 Games") } do this if is true {/if} but is not working. what i'm doing wrong? thank you Link to comment Share on other sites More sharing options...
CartExpert.net Posted June 21, 2012 Share Posted June 21, 2012 Hi. You are using the assignment operator: = and not the comparison operator: == Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
giwrgos Posted June 21, 2012 Author Share Posted June 21, 2012 (edited) Hi. You are using the assignment operator: = and not the comparison operator: == Regards. Robin. The CartExpert Team so my statement should be like this if ($category->name|escape:'htmlall':'UTF-8' == "Xbox 360 Games") ? Edited June 21, 2012 by giwrgos (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted June 21, 2012 Share Posted June 21, 2012 Yes. Regards. Robin. The CartExpert Team 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