Hi again,
On your demo page I can’t log in, and therefore I can’t check if this happens because it only happens when the user compares products while logged in, then removes them from the comparer, then logs out and finally logs back in. It would also be nice to be able to access your demo as a user and perform the same steps I do on my pages to try to replicate the error.
I have deactivated the theme and left the default Storefront theme and I have deactivated all plugins (even WPC plugins). I have only left Woocommerce and WPC Smart Compare active. The issue keeps happening.
I list the steps to replicate the error:
- Log in to the page (it does not matter if you are an administrator or simply a client).
- Add some products to the comparator.
- Remove all products from the comparator.
- Log out of the page
- Log in again on the page with the same user
Currently both pages are being development and therefore you cannot access directly, but if you want I can send you the credentials privately so you can access.
The problem occurs in the database, because when I remove the products from the comparer, the cookie is flushed, but the woosc_products row remains in the usermeta table in the database with the ID of the last product removed.
Thanks for your time