"In Stock" Number Not Updated After Purchase

Some stores may show “in stock” numbers for each product. After a purchase, the number should be reduced by the quantity the customer purchased. However the “in stock” number is cached and doesn't change when using LiteMage.

Since LiteMage version 1.2.0, there is a global setting for Flush Product and Categories When Product Qty Changes (found under LiteMage Configuration > General Settings), which can determine how changes in product quantity and product stock status affect product pages and their associated category pages.

There are four possible values this can be set to:

  1. Flush product when quantity or stock status changes, flush categories only when stock status changes - This setting is useful if your product page displays a product quantity and both the product and category pages display differently when the product is out of stock.
  2. Flush product and categories only when stock status changes - This setting is useful if your product and category pages don't display product quantities but do display differently when a product is out of stock.
  3. Flush product when stock status changes, do not flush categories when stock status or quantity change - This setting is useful if your product page displays differently when the product is out of stock and the category page does not.
  4. Always flush product and categories when quantity or stock status changes - This setting is useful if both your product page and associated category pages show product quantities and display differently when the product is out of stock.

You can select the right setting for your needs.

  • Admin
  • Last modified: 2018/02/22 16:16
  • by Lisa Clarke