Deleted Products Still Show
-
Whenever I delete a product in WooCommerce the only way to get that product removed from the POS seems to be to deactivate, delete, reinstall and reconfigure the plugin.
I would have thought that this would happen automatically when “Sync Now” is pressed?
-
Thanks for reaching out.
Using a testing environment, we deleted a product in WooCommerce by Move to Trash functionality and the product did not load in the POS any longer.
As shown in this video:
https://www.loom.com/share/56de5c1150e142a88096fe85aae18958We also used the quick Trash delete action, as shown in this video:
https://www.loom.com/share/170a3ab8c2e24b7b83ec4692dfc48a4bBoth actions moving the product to the trash, removed the product from the POS. Are you using a different method to delete a product?
One recommendation, the POS does store temporary data in the browser enabling it to load fast and run smooth. Clearing the cache, will force a new clean sync, if the changes are not loading in the POS potentially the product is still being stored in cache by the browser.
Please use the Clear Cached Data functionality under the Support menu. This will clear the local data stored in the browser and force a clean new sync as shown in this video:
This should resolve the issue for you, if not. Let’s verify no other conflicts are occurring on your site, please perform our conflict plugin/theme testing outlined here: https://www.bizswoop.com/plugin-theme-conflict-test/, to perform the test deactivate all plugins except WooCommerce and POS. Verify if the issue is still occurring.
If clearing the cache does not resolve the issue for you and the Plugin/Theme conflict testing doesn’t identify a conflict occurring. Please re-open the support topic here and provide us more details on the actions you are taking to delete the product. We will continue to troubleshoot your issue.
A little further troubleshooting leads me to believe this may be linked to a slight time difference between the browser and the server.
The sync only ever seems to call
https://mydomain.com/wp-json/wc-pos/products/ids?updated_at_min=2020-05-27T12:44:10.527Z(the time appears to be the last time it sync’d up).Even logging out and logging in doesn’t appear to reset this last updated time. Where is it stored?
Is there a way of forcing a full sync?
Looks like our comments crossed paths in cyberspace. 🙂
Go ahead and try the Clear Cached Data functionality we described. Let’s see if this resolves it for you.
We will investigate your assumption on the time configuration, to help. Can you tell us the time settings you are using for the following:
– WordPress General Time Zone
– WordPress General Current Time
– Browser Time/Local Machine TimeI have cleared the cache but the plugin is still syncing only products changed since a specific time.
Where is this “last refresh” time stored? Can it be reset?
Or, is there a way of forcing a full sync?
I appreciate that it may be caused by clock mis-match and that having them matched should prevent it happening, but surely there ought to be a way of forcing a full sync without deactivating and reactivating the plugin.
Did you also try the Force Sync option on Products specifically?
Here is a quick video showing how to perform that Force Sync:
https://www.loom.com/share/99a71e5d22924b379796d32ffdc0f760The final item to try is clearing history and cache for your actual browser, Chrome, Firefox or Edge.
In general, we’re performing an audit of the clock mis-match configuration you are reporting, we will look to optimize around this if possible. Please provide us those items of information we requested:
– WordPress General Time Zone
– WordPress General Current Time
– Browser Time/Local Machine TimeThis will allow us to attempt to reproduce the issue.
I have found a workaround, if I clear the “Indexed Database” under “Cookies in use” then that removes whatever field the last sync’d time is stored in and it is then possible to perform a full sync.
However that last video answers my question completely. The “Products”->”Force Sync” button was exactly what I was looking for. Many thanks!
Re the time, my hosting provider doesn’t adjust for DST so the database stores UTC time in both the modified time columns and both of those are an hour behind the local time on my PC. That’s a peculiarity of the host though.
Thank you for the video though, all is now answered.
Thanks for the follow-up confirmation the clearing of the Indexed Database and the overall use of Force Sync on the Products provided a solution. This is good news!
We appreciate you sharing the the details about the host configuration of the database storing. We’ll investigate this use case and see if we can develop any sync optimizations to factor in this configuration in a future release.
The topic ‘Deleted Products Still Show’ is closed to new replies.