remove admin_locale
This commit is contained in:
parent
b4cb3083c8
commit
ab4be4e238
|
|
@ -84,7 +84,7 @@ class IntegrationController extends Controller
|
|||
return response()->json(['errors'=>$e->getMessage()],400);
|
||||
}
|
||||
|
||||
if(! $product = $this->productRepository->findOneByField('sku',$data['sku'])){
|
||||
if(! $product = $this->productRepository->findOneByField('sku',$data['product_group_id'])){
|
||||
return response()->json(['success'=> false,'message' => 'product not found'],400);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ class ProductRepository extends WProductRepository
|
|||
$parentProduct->categories()->attach($data['categories']);
|
||||
}
|
||||
|
||||
if($data['vendor'] && $seller = $this->vendorRepository->findOneByField('shop_title',$data['vendor'])){
|
||||
if($data['vendor'] && $seller = $this->vendorRepository->findOneByField('url',$data['vendor'])){
|
||||
$this->createSellerProduct($parentProduct, $seller->id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue