add watermark on zoom, update display of article nature on shelve (change icon to text

This commit is contained in:
ludo
2024-02-04 22:09:53 +01:00
parent 4c6f9b3b61
commit 308b6cb349
9 changed files with 93 additions and 58 deletions

View File

@@ -7,7 +7,7 @@ class Shelves
public static function getOffersByCategoryAndNature($categoryId, $articleNatureId = false, $tags = [], $articleNature = false, $displayByRows = false)
{
$articleNatures = Articles::getArticleNaturesWithOffers(['category_id' => $categoryId]);
$productType = self::getProductType($articleNature, $articleNatures);
$productType = self::getProductType($articleNatureId, $articleNature, $articleNatures);
$articleNatureId = $articleNatureId ?
$articleNatureId :
self::getArticleNatureId($articleNature, $articleNatures);