public function prepareCollection(ProductCollection $collection)
    {
        $collection->addAttributeToSelect($this->attributes);
        $collection->addPriceData();

        return $collection;
    }
public function prepareCollection(ProductCollection $collection)
    {
        $collection->addAttributeToSelect($this->attributes);
        $collection->addPriceData();

        return $collection;
    }
public function prepareCollection ( ProductCollection $ collection ) { $ collection -> addAttributeToSelect ( $ this -> attributes ) ; $ collection -> addPriceData ( ) ; return $ collection ; }
Add standard attributes and price data to the collection.

@param ProductCollection $collection Product collection.

@return ProductCollection
Add standard attributes and price data to the collection .