Skip to content

Commit

Permalink
Fix issue digitalpianism#3
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienLSV authored and JulienLSV committed Nov 9, 2016
1 parent da30de8 commit 5ce522b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ protected function _getProductImage($productId)
// Get product image via collection
$_productCollection = Mage::getResourceModel('catalog/product_collection');
// Add attributes to the collection
$_productCollection->addAttributeToSelect('small_image');
$_productCollection->addAttributeToFilter('entity_id',array('eq' => $productId));
// Add image to the collection
$_productCollection->joinAttribute('small_image', 'catalog_product/image', 'entity_id', null, 'left');

// Limit the collection to get the specific product
$_productCollection->setPageSize(1);

Expand Down

0 comments on commit 5ce522b

Please sign in to comment.