Browse Source

[Frontend] Rayons : prix produits incohérents quand produits déjà vendus #867

develop
Guillaume Bourgeois 1 year ago
parent
commit
e33fadfa9c
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      Resolver/ProductFamilyResolver.php

+ 5
- 3
Resolver/ProductFamilyResolver.php View File



if($orderShop) { if($orderShop) {
foreach ($products as $product) { foreach ($products as $product) {
if ($this->orderShopSolver->isProductAvailable($orderShop->getSection(), $orderShop, $product, 1, true)) {
return $product;
}

return $product;

// Retourner le produit en fonction de sa disponibilité
// if ($this->orderShopSolver->isProductAvailable($orderShop->getSection(), $orderShop, $product, 1, true))
} }
} }



Loading…
Cancel
Save