Open iamdharmesh opened 1 year ago
Leaving a comment here that if we get into bumping the Square SDK that we might want to check and see if this feature was brought out of Beta in that new version such that taking action on this issue might be feasible.
Update:
With Square API release 2023-09-25, the sold_out
field is out of BETA and updated to GA.
Describe the bug
PR #986 has added Support for sync "Inventory tracking", In simple words when inventory tracking is disabled on the square, It unchecks "manage stock?" on Woo side and makes the product "In stock".
At Square side, we can mark the inventory tracking disabled product as "Out of stock" with the "
Mark as sold out on Point of Sale and Online
" option (However, we are not able to mark it due to some error on the Square side.) but currently, Inventory tracking disabled product imported as "in stock" always regardless of the value ofsold_out
field.This issue is created to take the
sold_out
field into account during inventory syncing. So, if product inventory tracking is disabled then the product stock status won't always be "in stock" on the WooCommerce side, Instead, it will depend on the value of thesold_out
field.Note: The
sold_out
field of Square API is still in Beta.Screenshots
Environment (please complete the following information):
Additional details
https://github.com/woocommerce/woocommerce-square-private/pull/986#discussion_r1186885187