order to manat

This commit is contained in:
merdan 2022-06-28 15:47:28 +05:00
parent ec6b260acd
commit 7ecb02f0fd
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class IntegrationController extends Controller
private function updateAttribute($product,$data){
if(isset($data['sellable']) && !$data['sellable']){
if(isset($data['sellable']) && $data['sellable']===false){
Log::info($data);
//$attribute = $this->attributeRepository->findOneByField('code', 'status'); status id = 8
$this->attributeValueRepository->updateOrCreate(['product_id'=>$product->id,'attribute_id'=>8],['boolean_value'=>0]);