Skip to content

Commit

Permalink
Merge pull request #174 from Hlavtox/remove-old-way-of-product-images
Browse files Browse the repository at this point in the history
Remove old way of getting product images
  • Loading branch information
ShaiMagal authored Jan 4, 2024
2 parents 882ebff + cc5a4f0 commit 3ca761b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ protected function getProductLink(&$link_sitemap, $lang, &$index, &$i, $id_produ
$images_product = [];
foreach ($product->getImages((int) $lang['id_lang']) as $id_image) {
if (isset($id_image['id_image'])) {
$image_link = $this->context->link->getImageLink($product->link_rewrite, $product->id . '-' . (int) $id_image['id_image'], ImageType::getFormattedName('large'));
$image_link = $this->context->link->getImageLink($product->link_rewrite, (string) $id_image['id_image'], ImageType::getFormattedName('large'));
$image_link = (!in_array(rtrim(Context::getContext()->shop->virtual_uri, '/'), explode('/', $image_link))) ? str_replace([
'https',
Context::getContext()->shop->domain . Context::getContext()->shop->physical_uri,
Expand Down

0 comments on commit 3ca761b

Please sign in to comment.