Out-of-stock products always pushed to the end of the Product Archive, and only the last 2 years of

This topic has 1 reply, 1 voice, and was last updated 2 hours, 40 minutes ago ago by pckeycallout

  • Avatar: pckeycallout
    pckeycallout
    Participant
    October 10, 2026 at 18:09

    Hello XStore Support Team,

    We are using the XStore theme with WooCommerce and have two issues on the Shop / Product Archive page.

    Issue 1: Out-of-stock products are all moved to the end of the archive
    We want out-of-stock products to stay visible on the Product Archive page. WooCommerce is set to show them (Settings > Products > Inventory > “Out of stock visibility” is unchecked). However, the theme places every out-of-stock product at the very end of the archive, after all in-stock products, regardless of the selected sorting (default, date, price, etc.). We want them to appear in their normal position according to the selected sorting, not grouped at the end.

    Issue 2: Only out-of-stock products from the last 2 years are displayed
    Out-of-stock products that went out of stock within roughly the last two years are shown, but older out-of-stock products do not appear anywhere in the archive. They are published and not hidden, and their stock status is “Out of stock”. We want all out-of-stock products shown, regardless of age.

    What we need from you:

    Is there a theme option or setting (e.g. under Theme Options > Shop / Product Archive) that controls the “out of stock at the end” behavior? If so, where can we turn it off?
    Is there any theme code, filter or hook that limits out-of-stock products by date (last 2 years) or otherwise restricts them in the archive query?
    If this is controlled by code, please give us the exact snippet or filter to remove both behaviors, so out-of-stock products display in the normal sorting order and none are excluded.

    Troubleshooting already done: [e.g. cleared cache, tested with caching/optimization plugins disabled, checked WooCommerce inventory settings]

    Please let us know if you need temporary admin access to investigate.

    Thank you

    Content is visible for topic creator and
    support staff only.
  • Viewing 1 results - 1 through 1 (of 1 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.