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

3 replies2 participantsUpdated by Jack Richardson

  • Avatar: pckeycallout
    pckeycallout
    Participant

    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

    Please, contact administrator
    for this information.

    3 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @pckeycallout,

    You have about 30 private products (https://gyazo.com/a67306b07d54ae147bd4ba2e2393f73d) that are not displayed on the frontend. In your WooCommerce settings, there is an enabled checkbox to “Hide the out-of-stock products” (https://gyazo.com/d6358d13a56610b29abc9a9e1699df5b) and the number of such items in your store is 129 (https://gyazo.com/991edb2cded6c6f3529b66d7d2e84ce5). Therefore, the amount of displayed items on your store is correct, as there are 10 pages with 36 items each, totaling approximately 360 items (543 total – 149 out-of-stock – 30 private).

    If you would like to display the out-of-stock items, please check your WooCommerce settings. Additionally, per your request, there is a setting in our theme options to display out-of-stock items at the end (https://gyazo.com/b872b24199007d7845b827a253f788ba). However, for this setting to work, you need to first configure WooCommerce to display such products on your store.

    If you still have any questions, please clarify your request.

    Best Regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: pckeycallout
    pckeycallout
    Participant

    Hello Jack,

    Thank you for your reply. I have already enabled the WooCommerce setting, so out-of-stock products now show at the end of the shop page, which is what we want.

    The remaining problem: only the out-of-stock products from the last 2 years are displayed. The older out-of-stock products are not shown anywhere in the catalog.

    These products are published, set to “Out of stock”, and visible in the catalog (not private or hidden). Examples: [product URL 1], [product URL 2].

    Please check whether the theme has any setting or code that limits out-of-stock products to the last 2 years, and tell us how to remove it so that all out-of-stock products are displayed.

    Thanks

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @pckeycallout,

    Our theme does not include settings or built-in functionality to limit the display of out-of-stock items in your store. Additionally, you did not provide the product URLs “Examples: [product URL 1], [product URL 2].”, which would allow us to check the specific product settings.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register