Riya Posted October 19, 2013 Share Posted October 19, 2013 how to make featured product block like below model untitled.bmp Link to comment Share on other sites More sharing options...
vekia Posted October 19, 2013 Share Posted October 19, 2013 by default pages and tabs arent available in this module. you need to develop these features. to change "design" - edit homefeatured.css file located in theme directory. you can use also some modules from: http://addons.prestashop.com/en/search?search_query=home+tab Link to comment Share on other sites More sharing options...
Riya Posted October 19, 2013 Author Share Posted October 19, 2013 i want show category name and below that display some product belongs to that category...How to make it Link to comment Share on other sites More sharing options...
vekia Posted October 19, 2013 Share Posted October 19, 2013 you can do it only with modifications of the module core. There is no other way. i provided links to addons store where you can find solution that you're looking for. Link to comment Share on other sites More sharing options...
Riya Posted October 19, 2013 Author Share Posted October 19, 2013 how to modify core..any idea Link to comment Share on other sites More sharing options...
vekia Posted October 19, 2013 Share Posted October 19, 2013 in homefeatured.php file you have to define new products arrays: there is a funciton hookDisplayHome with code: $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('HOME_FEATURED_NBR'); $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8)); define additional "categories" with code: $category2 = new Category(15, (int)Context::getContext()->language->id); $products2 = $category2->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8)); where 15 is a category number. You can define as many variables with products as you want. then add new viariables to smarty array: $this->smarty->assign(array( 'products' => $products, 'products2' => $products2, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), )); Now in .tpl file (homefeatured.tpl) you can create additional foreach loop on new variables. 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