Skip to content

Commit

Permalink
Changed status to enabled and disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
shintusingh authored May 28, 2020
1 parent 0dbb5b3 commit d161818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Observer/AfterProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public function execute(Observer $observer)
'url'=> $producturl,

);

$responsedata=array( 'action' => $action,'status' => 200, 'merchant_code'=>$app_data['merchant_code'],
$status=$product->getStatus()==1?'enabled':'disabled';
$responsedata=array( 'action' => $action,'status' => $status, 'merchant_code'=>$app_data['merchant_code'],
'products' => $product_collections);


Expand Down

0 comments on commit d161818

Please sign in to comment.