Skayfer Posted May 29, 2015 Share Posted May 29, 2015 HI, I have problem. I need add code (html and presta smarty) to only 2 category pages. I tried callback to this pages with page name smarty, but it only work with body id. My all categories have this same body id, only class is different. Anyone can help me ? Link to comment Share on other sites More sharing options...
Skayfer Posted May 30, 2015 Author Share Posted May 30, 2015 Only what i can now i add html to category description. Anyone have better idea ? Link to comment Share on other sites More sharing options...
vekia Posted May 31, 2015 Share Posted May 31, 2015 hello html box pro contains feature to display custom contents only on selected category pages https://www.youtube.com/watch?v=fAfUg6yezL4&feature=youtu.be but if you want to do it with smarty, it will be necessary to add if condition to check category id {if Tools::getValue('id_category')==2} display something if category is 2 {/if} 1 Link to comment Share on other sites More sharing options...
Skayfer Posted May 31, 2015 Author Share Posted May 31, 2015 Thanks Vekia, you are realy PrestaShop Legend ! Btw. You are from Poland or east europe if i can know it ? Link to comment Share on other sites More sharing options...
vekia Posted June 1, 2015 Share Posted June 1, 2015 Yess, im from Poland :-) does the shortcode that i attached works as you expected? Link to comment Share on other sites More sharing options...
Skayfer Posted June 2, 2015 Author Share Posted June 2, 2015 Yes Problem solved. 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