0
Я написал код для бестселлера продукта в Magento, ноне получает URL Magento изображения из бестселлера
я не получаю продукт URL изображения ....
мне нужно небольшое изображение для галереи ..
Я м разработке бестселлера бегунок ..... вся вещь хорошая
, но только им не получает URL изображения ...
мой код
$current_category = Mage::registry('current_category');
$is_category_filter = Mage::getStoreConfig('productslider/product_setting/category_filter');
$collection = Mage::getResourceModel('reports/product_collection')
->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
->addOrderedQty()
->addMinimalPrice()
->addTaxPercents()
->addStoreFilter();
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
Mage::getSingleton('catalog/product_visibility')->addVisibleInSearchFilterToCollection($collection);
if($current_category && $is_category_filter == '1'){
$current_category_id = Mage::registry('current_category')->getId();
$currentCategory = Mage::getModel('catalog/category')->load($current_category_id);
$collection->addCategoryFilter($currentCategory);
}
$collection->setPageSize(30);
$this->setProductCollection($collection);
return $collection;