-
Notifications
You must be signed in to change notification settings - Fork 14
Add notice for Square SOR and inventory sync in bulk edit screen #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
iamdharmesh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @m-muhsin.
While doing quick check, I noticed that if we update stock of product with manage stock disabled using bulk edit, it become out of stock after some time.
This is due to how Inventory Sync work (Docs). Inventory is always pulled from Square to account for stock updates on the Square side (e.g., POS transactions), even when WooCommerce is set as SOR. For Woo SOR, Inventory only syncs from Woo to Square during the initial sync or when stock quantity is updated on the product edit page by clicking "Fetch stock from Square."
Currently, we don't have real time updates for the stock updates at Square side. So, we are sync it every 15 mins. But there is always chance that stock on WooCommerce is not up to date. So, we suggests merchant to update stock from the product edit page by clicking "Fetch stock from Square." or directly update on Square itself (Regardless of SOR).
For adding support for the stock changes using the Bulk edit we need to keep these things in mind and need to update implementation accordingly. Happy to discuss this over call if needed. Thank you.
|
Hi @iamdharmesh,
I could replicate the issue you mentioned.
Agree on the above. Also, there seems to be an issue here. Please refer to this video: Screen.Recording.2025-12-17.at.7.32.21.PM.movIndividual stock updating is not being allowed. However, bulk updating of stock seems to work fine. Perhaps we need to think about a different strategy here? |
|
Hi @m-muhsin,
Yes, bulk stock updates work with this PR in some cases, but as I mentioned earlier, it still has issues. We need to keep Square as the source of truth for inventory updates regardless of the SOR until real-time stock updates from Square -> WooCommerce are implemented via webhooks. For now, I think the best next step would be to add a note near the stock field in bulk edit to inform users that inventory updates will not work for Square sync-enabled products, as the values are ultimately overwritten with data from Square. For reference, we already show a similar notice on the product import screen, and we could follow a similar approach here.
@dkotter @faisal-alvi tagging you here to check what do you think on this or if we have any better way to solve this. Thank you. |
|
Thanks, @iamdharmesh. I will wait on the response from Darin / Faisal and take any next steps on this one. |
Yeah, I think this is fine for now, noting it doesn't actually fix anything but at least it makes it more clear for the merchant |
Implement a MutationObserver to display a warning message in the bulk edit form when Square SOR and inventory sync are enabled. The notice informs users that inventory updates will not apply to Square-synced products and will be overwritten during the next sync.
8cc0217 to
75a7323
Compare
|
I have now updated the PR with the notice as shown in the screenshot on the PR description. Thanks, @iamdharmesh @dkotter |
Co-authored-by: Dharmesh Patel <[email protected]>

All Submissions:
Changes proposed in this Pull Request:
Adds the above notice.
Closes https://linear.app/a8c/issue/SQUARE-204/bulk-stock-changes-in-wc-dont-sync-to-square.
Steps to test the changes in this Pull Request:
Changelog entry