deroxonweb Posted April 4, 2011 Share Posted April 4, 2011 Hello everyone,Is it possible to redirect home feature's content from certain category? I was tried to change the id_category from 1 to 3 at homefeatured.php, but the whole column gone to be blank after that. Please advice and help, thanks a lot. Link to comment Share on other sites More sharing options...
Pshopic Posted April 4, 2011 Share Posted April 4, 2011 Hi,You edited correct file. Please check whether you had category id 3. You have to change below code in homefeatured.php. $category = new Category(1, Configuration::get('PS_LANG_DEFAULT')); Link to comment Share on other sites More sharing options...
deroxonweb Posted April 4, 2011 Author Share Posted April 4, 2011 Hi PrestaShopic,Thank you for your advice. I change the code from:$category = new Category(1); $nb = intval(Configuration::get('HOME_FEATURED_NBR')); $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10));to:$category = new Category(3); $nb = intval(Configuration::get('HOME_FEATURED_NBR')); $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10));The result is whole column gone to be blank. If I change the id to 30(category exist, but no product added), it showed the message: No featured products. But column is active. Please advice and help, thank you very much. 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