Jump to content

Certain items ID in home featured in v1.6


Recommended Posts

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

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

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

×
×
  • Create New...