antonio

m2epro doesn't update quantity

Recommended Posts

Hello I am using magento 2.3.1 and m2epro 1.4.1 .

M2epro doesn't update quantity, it is not the same of the magento product quantity.

If I revise item the quantity is not synchronized.

 

How to fix this issue?

 

Thanks

Share this post


Link to post
Share on other sites

The revision policy is quantity below 5 and it doesn't work.

I am using a script to change quantity of magento product:

 

$model = $objectManager->create(\Ess\M2ePro\PublicServices\Product\SqlChange::class); //track changes for m2epro

foreach ( $ids as $id ) {
	$qty=getQty()
  	//set new quantity
  	$binds = array ( 'quantity' => $qty, 'id' => $id );
  	$query = "UPDATE $catalog_inventory_table SET qty=:quantity WHERE product_id=:id;";		
  	$connection->query( $query, $binds );		
	$model->markQtyWasChanged( $id ); //reflect change to m2epro product
}

$model->applyChanges();	//apply changes to m2epro

It seems that it is not updated until the product is not saved.

Edited by antonio

Share this post


Link to post
Share on other sites

If you are using a custom script it's likely that your are not triggering the m2e job to revise the product. Also what is your product quantity? If it's not below 5 then it wont revise the listing.

 

A low quantity revision has pro's and cons, it will result in less revisions which is good for high volume stores

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.