Incorrect product status
-
An order was placed without payment being completed in status – “Awaiting BACS payment”. Then – Order status changed from “Awaiting payment” to “On hold”. Product inventory balance was changed in the system: it went from 1 to 0 (1→0). Then the product status was changed to “Completed”. However, after that, on the product card the remaining stock still showed as 1. As a result, logged-in users can still see this item as available and in stock, while for users who are not logged in (guest visitors) the same product appears to be missing or unavailable. In other words, there is a discrepancy between what the product page indicates and what different types of visitors actually see in the catalog: authorized users see the item as in stock and available for purchase, but non-authorized users do not see it at all, as if it is out of stock or removed from public visibility.
Could you please advise what the reason might be for this behavior? We are trying to understand why the stock level on the product card remained at 1 after the order was placed and the inventory was supposedly reduced to 0, and why availability differs depending on whether the visitor is logged in or not. We would appreciate clarification on what could cause the stock to be displayed inconsistently between the product card and the storefront, as well as between authenticated and non-authenticated users, and what settings, rules, or processes might lead to this situation.
WooCommerce: 10.4.3
WordPress: 6.9
I use caching plugins Redis Object Cache 2.7.0, but clearing the cache doesn’t help and I don’t understand how this could be related to the cache?
You must be logged in to reply to this topic.