shish 3 lat temu
rodzic
commit
48dc091d1b
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      biz-ghs/product/services/ProductService.php

+ 4 - 0
biz-ghs/product/services/ProductService.php

@@ -272,6 +272,10 @@ class ProductService extends BaseService
         $formatData = [];
 
         foreach ($data as $key => $class) {
+            $print = $class['print'] ?? 1;
+            if ($print == 0) {
+                continue;
+            }
             $name = $class['className'] ?? '';
             $formatData[] = ['name' => $name, 'price' => ''];
             if (isset($class['child']) && !empty($class['child'])) {