Ironz Posted May 12, 2014 Share Posted May 12, 2014 Hi! I have code in my /modules/homefeatured/homefeatured.php public function _cacheProducts() { if (!isset(HomeFeatured::$cache_products)) { $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('HOME_FEATURED_NBR'); HomeFeatured::$cache_products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8), 'position'); } if (HomeFeatured::$cache_products === false || empty(HomeFeatured::$cache_products)) return false; } this code shows first items in list added in my shop in admin panel. I need to show goods ID 13,14,15,16. How it can to implement? Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2014 Share Posted May 12, 2014 hello just change position of these items under catalog > categories section in your back office. turn on "filter by category" feature, select "home" and rearrange products. you can achieve it without core modification - if you still want to modify php file - in this case it will be necessary to modify core, unfortunately. Link to comment Share on other sites More sharing options...
Ironz Posted May 12, 2014 Author Share Posted May 12, 2014 hello just change position of these items under catalog > categories section in your back office. turn on "filter by category" feature, select "home" and rearrange products. you can achieve it without core modification - if you still want to modify php file - in this case it will be necessary to modify core, unfortunately. thanks a lot, Vekia! Link to comment Share on other sites More sharing options...
Recommended Posts