woocommerce / woocommerce-square

Square POS and Payments Integration
https://woo.com/products/square
Other
11 stars 6 forks source link

[Inventory Sync] Sync the "Mark as sold out" field value during inventory sync. #21

Open iamdharmesh opened 1 year ago

iamdharmesh commented 1 year ago

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 of sold_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 the sold_out field.

Note: The sold_out field of Square API is still in Beta.

Screenshots image

Environment (please complete the following information):

Additional details

https://github.com/woocommerce/woocommerce-square-private/pull/986#discussion_r1186885187

jeffpaul commented 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.

iamdharmesh commented 6 months ago

Update:

With Square API release 2023-09-25, the sold_out field is out of BETA and updated to GA.