|
@@ -9,12 +9,12 @@ discard block |
|
|
block discarded – undo |
|
9
|
9
|
|
|
10
|
10
|
class ProductCombinationService extends BaseService |
|
11
|
11
|
{ |
|
12
|
|
- public function __construct(ProductCombinationRepository $productTagGroup) |
|
13
|
|
- { |
|
14
|
|
- $this->repo = $productTagGroup; |
|
15
|
|
- } |
|
|
12
|
+ public function __construct(ProductCombinationRepository $productTagGroup) |
|
|
13
|
+ { |
|
|
14
|
+ $this->repo = $productTagGroup; |
|
|
15
|
+ } |
|
16
|
16
|
|
|
17
|
|
- public function create(array $attributes, $productId) |
|
|
17
|
+ public function create(array $attributes, $productId) |
|
18
|
18
|
{ |
|
19
|
19
|
if (isset($attributes['selected_attribute_ids'])) { |
|
20
|
20
|
$check = $this->repo->getModelAttributeCombination()->leftJoin($this->repo->getModel()->getTable(), $this->repo->getModel()->getTable().'.id', '=', $this->repo->getModelAttributeCombination()->getTable().'.product_attribute_id') |
|
@@ -180,9 +180,9 @@ discard block |
|
|
block discarded – undo |
|
180
|
180
|
} |
|
181
|
181
|
|
|
182
|
182
|
|
|
183
|
|
- public function selectAllByProductCategoryId($productCategoryId, $shopId) { |
|
184
|
|
- return $this->repo->selectAllByProductCategoryId($productCategoryId, $shopId); |
|
185
|
|
- } |
|
|
183
|
+ public function selectAllByProductCategoryId($productCategoryId, $shopId) { |
|
|
184
|
+ return $this->repo->selectAllByProductCategoryId($productCategoryId, $shopId); |
|
|
185
|
+ } |
|
186
|
186
|
|
|
187
|
187
|
public function generatePulldowns($product, $productAttributeId, $attributeLeadingGroup = false, $secondAttributeId = false) |
|
188
|
188
|
{ |
Please login to merge, or discard this patch.