浏览代码

Merge branch 'develop' of https://gitea.laclic.fr/Placedulocal/Symfony into develop

# Conflicts:
#	Lc
feature/module_traiteur_v1
Guillaume 3 年前
父节点
当前提交
52115b3602
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 7
- 1
ShopBundle/Services/Order/OrderUtilsStockTrait.php 查看文件

@@ -66,7 +66,13 @@ trait OrderUtilsStockTrait

$allCategoriesSalesOff = true;
foreach ($product->getProductFamily()->getProductCategories() as $category){
if($category->getSaleStatus())$allCategoriesSalesOff = false;
if($category->getParent()) {
if($category->getSaleStatus() && $category->getParent()->getSaleStatus())
$allCategoriesSalesOff = false;
}
else {
if($category->getSaleStatus()) $allCategoriesSalesOff = false;
}
}
if($allCategoriesSalesOff) return false;


正在加载...
取消
保存