I forgot to add: I am pretty sure that the setting is correct.
I got the same issue. When checking the credentials the pages say this:
Page A: “Credentials are correct but Stock Sync plugin is not installed on the other site.”
Page B: “Valid credentials”
Product sync fine from B to A. But not from A to B.
Plugin Author
WP Trio
(@wooelements)
If Stock Sync is installed on both sites and it still states that it’s not installed on the other site, it can be caused by permalink settings (WordPress admin > Settings > Permalinks). At least Plain has caused issues so please try something else if you have that one selected.
This is probably not it. Both sites have it set “post name” and one works and the other not.
Plugin Author
WP Trio
(@wooelements)
Thanks for checking!
Basically the plugin visits https://yoursite.com/wp-json/wc/v2/stock-sync-exists and if that returns 404, it assumes Stock Sync is not installed as the plugin defines that endpoint. If the endpoint returns 401 (access denied without API credentials) or 200 (access OK, you have provided credentials) then the check is OK.
Here’s how it should look if it works: https://wooelements.com/wp-content/uploads/2021/04/stock-sync-works.png
And like this if it doesn’t: https://wooelements.com/wp-content/uploads/2021/04/stock-sync-error.png
Another reason for the 404 issue might be multilingual plugins such as WPML or Polylang which might alter URL structure. For example, there might be a language code before /wp-json in which case you will need to add the language code to the URL.
Plugin Author
WP Trio
(@wooelements)
Closing this now due to inactivity but please re-open if the issue persists.
This is still not working for me. I am getting Unknown Error when trying to sync.