Skip to content

Commit

Permalink
Removed excluded images from output
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin-Magmodules committed Aug 2, 2018
1 parent c96fa98 commit 9b3e1a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/code/community/Magmodules/Channable/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public function getProductImage($product, $config)
}
);
foreach ($gallery as $galImage) {
if ($galImage['disabled'] == 0) {
if ($galImage['disabled'] == 0 && $galImage['disabled_default'] == 0) {
$imageData['image']['all']['image_' . $i] = $this->checkImagePath(
$galImage['file'],
$config['media_image_url']
Expand All @@ -478,7 +478,6 @@ public function getProductImage($product, $config)
$i++;
}
}

return $imageData;
} else {
if (!empty($imageData['image']['image'])) {
Expand Down

0 comments on commit 9b3e1a8

Please sign in to comment.