Skip to content

Commit

Permalink
Merge pull request #10 from LoicMo43/main
Browse files Browse the repository at this point in the history
fix image in link
  • Loading branch information
NicolasBarbey authored Sep 26, 2024
2 parents a0ad25f + eab9101 commit 68d2f08
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>3.0.5</version>
<version>3.0.6</version>
<authors>
<author>
<name>Gilles Bourgeat</name>
Expand Down
3 changes: 0 additions & 3 deletions Controller/BackController.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,11 @@ public function listAction(RequestStack $requestStack, EventDispatcherInterface
$event->setSourceFilepath($sourceFilePath);
$eventDispatcher->dispatch($event, TheliaEvents::IMAGE_PROCESS);
$imageUrl = $event->getFileUrl();
} else {
$imageUrl = 'URL_TO_DEFAULT_IMAGE';
}
} catch (\Exception $e) {
}
}


$price = $product->getVirtualColumn('price');
$taxedPrice = $taxCalculator->load($product, $country)->getTaxedPrice($product->getVirtualColumn('price'));
$promoPrice = $product->getVirtualColumn('promo_price');
Expand Down
3 changes: 1 addition & 2 deletions templates/backOffice/default/EasyProductManager/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,12 @@ <h5 class="modal-title">Changer la visibilité des produits sélectionnés</h5>
targets: 2,
render: function (data, type, row, meta) {
var href = row[10] + '&current_tab=images';
var defaultImageUrl = 'URL_TO_DEFAULT_IMAGE';

if (data !== '') {
return '<a href="' + href + '"><img src="' + data + '" style="width: 50px; height: 50px;" /></a>';
}

return '<a href="' + href + '" style="line-height:50px;text-align:center;width: 50px; height: 50px;"><img src="' + defaultImageUrl + '" alt="Aucune" /></a>';
return '<a href="' + href + '" style="line-height:50px;text-align:center;width: 50px; height: 50px;">Aucune</a>';
}
},
{
Expand Down

0 comments on commit 68d2f08

Please sign in to comment.