Home Forums Plugins WooCommerce Boost Sales Out of stock items are displayed, but I checked to not display it

Out of stock items are displayed, but I checked to not display it

  • Author
    Posts
  • #48956

    Anton Sokolchenko
    Participant

    Hi,

    I checked the option website/wp-admin/admin.php?page=woocommerce-boost-sales#crosssell
    “Hide out of stock”

    I do not need any of the out of stock items to display on the website.
    The products can be searched, but they must not be recommended to buy or suggested as related products, etc.

    However, I see that in method
    show_crossell_html
    there is a simple check that if a product is out of stock – the label “out of stock” will be displayed in the top right.

    Please add that if the product is out of stock and option “hide out of stock” is enabled, it will be skipped.
    Thank you
    bundles:623
    foreach ( $bundled_items as $bundled_item ) {

    Attachments:
    You must be logged in to view attached files.

You must be logged in to see replies to this topic. Click here to login or register