Skip to content

Commit

Permalink
Merge pull request #329 from fyndiq/legacy-images
Browse files Browse the repository at this point in the history
Go all legacy with images
  • Loading branch information
aquilax committed Feb 19, 2016
2 parents 5f2bc78 + f7d1b5b commit 07c22d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/backoffice/models/FmProductExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,8 @@ public function getStoreProduct($languageId, $productId, $descriptionType, $skuT
$images = $product->getImages($languageId);
$result['images'] = array();
foreach ($images as $image) {
$imageId = $image['id_image'];
if ($this->fmPrestashop->version === FmPrestashop::FMPSV14) {
$imageId = $product->id . '-' . $image['id_image'];
}
// PrestaShop recommends to use the legacy format for image Id
$imageId = $product->id . '-' . $image['id_image'];
$result['images'][] = $this->fmPrestashop->getImageLink(
$product->link_rewrite,
$imageId,
Expand Down

0 comments on commit 07c22d7

Please sign in to comment.