Show “In Stock” products first then “out of stock” in shop page

This topic has 10 replies, 2 voices, and was last updated 2 years ago ago by Tony Rodriguez

  • Avatar: nhsobuz
    nhsobuz
    Participant
    September 30, 2022 at 16:16

    HI, I want to show “In Stock” products first then “Out of Stock” Products in shop page.

    https://rent.mdnazmulsobuz.com/product-category/weekendvaska/?orderby=menu_order

    How can I do this?
    Best Regards

    9 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 1, 2022 at 05:44

    Hello, @nhsobuz,

    In order to solve your issue please go to Dashboard >> XStore >> Theme Settings >> Woocommerce (shop) >> Product Catalog >> Default Product Sorting >> and choose Sort by price (asc). See the image for a better reference: https://postimg.cc/1n0hsvNk

    Further, “stock_status” in “ASC” (ascending) order. Possible values are “instock” “outofstock” “onbackorder” so it will automatically display them alphabetically like this: 1.instock 2.onbackorder 3.outofstock.

    Regards 8Themes Team.

    Avatar: nhsobuz
    nhsobuz
    Participant
    October 1, 2022 at 05:56

    Hi Tony Rodriguez,
    I do this as you mention. But it’s not work.
    https://rent.mdnazmulsobuz.com/butik/
    You can take a look my website
    https://rent.mdnazmulsobuz.com/butik/

    Regards

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 1, 2022 at 06:01

    Hello, @nhsobuz,

    Ok, then other than this, there is no such option in our theme for this, it totally based on WooCommerce. So you have to try with any third-party plugin or the Custom Code on your site as per your requirements.

    You can read this article: https://www.businessbloomer.com/woocommerce-show-in-stock-products-first-shop/

    Regards 8Themes Team.

    Avatar: nhsobuz
    nhsobuz
    Participant
    October 1, 2022 at 06:05

    Hi,
    It’s not work. First time I do this in child theme function.php also do this in main theme function.php
    If use code snippet plugin website are down.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 1, 2022 at 07:05

    Hello, @nhsobuz,

    I have tested the same thing on our test site and found no issue it is working fine as you can watch in this video: https://www.veed.io/view/8f548d04-311f-483a-be51-57d729c53838/showcase?sharingWidget=true

    The issue is only at your site so please try to disable all the third-party plugins (including cache plugins), that does not come bundled with XStore https://www.8theme.com/documentation/xstore/plugins/included-plugins/ , clear the cache of the browser, and check then. Maybe one of the additional plugins is the reason for the problem.

    And if the issue will still persist then please remain all the third-party plugins deactivated on your site and provide me the login access to your site in the below-listed format in the private content area so that I will check and assist you accordingly.

    WP Admin URL:
    WP Admin Username:
    WP Admin Password:

    Note: Please take the complete backup of your site first.

    And I also need your permission to debug your site, which includes deactivating all the third-party plugins and on-site Customization as well.

    Regards 8Themes Team.

    Avatar: nhsobuz
    nhsobuz
    Participant
    October 20, 2022 at 13:38

    Hi, need fix 4 things, Like:
    1. First show “In stock” products then will show “Out of stock” products.
    2. In shop page filter are not worked as well. Here show “XXL(1)” / “XL (3)”, When select “xl” it’s show no products.
    3. I want a button for clear filters
    4. In phone product zoom are not work. I want to like this as demo : https://xstore.8theme.com/elementor/demos/niche-market02/product/wooden-classical-golden-chairs
    (check on phone) . When tap on product image. It’s zoom

    Best regards
    Nazmul

    Please contact administrator
    for this information.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 21, 2022 at 07:47

    Hello, @nhsobuz,

    1- Regarding the article we shared with you, if the code is not working on your site then there are no other options in our theme to make, It Requires extra customization. If you want paid Customization services submit a customization request to WPKraken team.

    2- There is an issue with the child theme you are using on your site. Because when I activate the parent theme on your site the filter works fine check the images: https://postimg.cc/0MJYxt7b and https://postimg.cc/xXxMmrRX

    3- I have added a widget to clear the filters to check the image: https://postimg.cc/rdS7Z3S6

    4- To solve your issue I have added a custom CSS code in the XSTORE >> Theme Options >> Theme Custom CSS >> Global CSS as you can see in the image for a better reference: https://postimg.cc/MvsgnThV and check the result here:https://streamable.com/gedlu8 Please check back to your site after clearing the browser cache.

    Regards 8Themes Team.

    Avatar: nhsobuz
    nhsobuz
    Participant
    October 26, 2022 at 02:47

    Hi,
    Still same issues with main theme.
    2. In shop page filter are not worked as well. Here show “XXL(3)” / “XL (6)”, When select “xl” it’s show no products

    Please contact administrator
    for this information.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 26, 2022 at 07:27

    Hello, @nhsobuz,

    2. I debugged your site deeply and finds that the issue is in those attributes, I deleted the XXL attribute and then recreated it, and then again assigned those 3 products to the XXL attribute and it is working perfectly fine now, I have captured the video for you as well, please watch it here: https://www.veed.io/view/afae963a-fbfb-4baa-a57c-a82c3850bcfc?sharingWidget=true

    So you have to delete the XL attribute as well again and then recreate it and assign the products to it as well, It will surely work for you.

    Regards 8Themes Team.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Show “In Stock” products first then “out of stock” in shop page’' has been successfully resolved, and the topic is now closed for further responses

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