parse test

This commit is contained in:
merdan 2022-06-28 17:08:09 +05:00
parent 287da9b2f8
commit 9c36a019d0
1 changed files with 2 additions and 2 deletions

View File

@ -203,8 +203,8 @@ class IntegrationController extends Controller
}else if($product->type == 'simple'){
$this->updateAttribute($product,$data);
}
Event::dispatch('catalog.product.update.after', $product);
DB::commit();
Event::dispatch('catalog.product.update.after', $product);
}
catch(\Exception $ex){
DB::rollBack();
@ -220,7 +220,7 @@ class IntegrationController extends Controller
//$attribute = $this->attributeRepository->findOneByField('code', 'status'); status id = 8
$this->attributeValueRepository->updateOrCreate(['product_id'=>$product->id,'attribute_id'=>8],['boolean_value'=>0]);
Log::info($data);
}else{
Log::info($data);
$originalPrice = Arr::get($data, 'price.originalPrice.value');