Skip to content

Commit

Permalink
FIX: Combination images
Browse files Browse the repository at this point in the history
If no image is selected for the combination, then it takes all images from the product and use instead
  • Loading branch information
Casper-O committed Dec 2, 2017
1 parent 5fe26ff commit f2edd17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gshoppingflux/gshoppingflux.php
Original file line number Diff line number Diff line change
Expand Up @@ -2343,6 +2343,9 @@ private function getItemXML($product, $lang, $id_curr, $id_shop, $combination =

// Image links
$images = Image::getImages($lang['id_lang'], $product['id_product'], $combination);
if (count($images) == 0 && $combination != false) {
$images = Image::getImages($lang['id_lang'], $product['id_product']);
}
$indexTabLang = 0;
if ($tailleTabLang > 1) {
while (sizeof($images) < 1 && $indexTabLang < $tailleTabLang) {
Expand Down

0 comments on commit f2edd17

Please sign in to comment.