Ver código fonte

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

develop
Guillaume Bourgeois 1 ano atrás
pai
commit
e33fadfa9c
1 arquivos alterados com 5 adições e 3 exclusões
  1. +5
    -3
      Resolver/ProductFamilyResolver.php

+ 5
- 3
Resolver/ProductFamilyResolver.php Ver arquivo

@@ -106,9 +106,11 @@ class ProductFamilyResolver

if($orderShop) {
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))
}
}


Carregando…
Cancelar
Salvar