Jump to content

Evolution block meilleur vente


Recommended Posts

Bonjour,

 

Je ne sais pas ou trouver cette requette.

 

j'arrive a remonter jusqu'a la fonction getBestSellers dans blockbestsellers.php

 

Mais je ne sais pas ou trouver la fonction getBestSalesLight.

protected function getBestSellers($params)
    {
        if (Configuration::get('PS_CATALOG_MODE'))
            return false;

        if (!($result = ProductSale::getBestSalesLight((int)$params['cookie']->id_lang, 0, (int)Configuration::get('PS_BLOCK_BESTSELLERS_TO_DISPLAY'))))
            return (Configuration::get('PS_BLOCK_BESTSELLERS_DISPLAY') ? array() : false);

        $currency = new Currency($params['cookie']->id_currency);
        $usetax = (Product::getTaxCalculationMethod((int)$this->context->customer->id) != PS_TAX_EXC);
        foreach ($result as &$row)
            $row['price'] = Tools::displayPrice(Product::getPriceStatic((int)$row['id_product'], $usetax), $currency);

        return $result;
    }
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...