Home Forums WoodMart support forum How Hide – Exclude out of stock items from WOODMART SHOP without WC settings?

How Hide – Exclude out of stock items from WOODMART SHOP without WC settings?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #425537

    3dmark
    Participant

    How Hide – Exclude out of stock items from WOODMART SHOP without WC settings?
    Please not recommend me WooCommerce settings – Out of stock visibility – Out of stock visibility Hide out of stock items from the catalog!
    Because i use out of stock items on other Pages!

    #425578

    Hello,

    I am afraid it is not possible. You will need to exclude the out-of-stock product in the Woocommerce settings.

    If you have any questions please feel free to contact us.

    Best Regards

    #425837

    3dmark
    Participant

    Please tell me how to exclude (old product), which is not on sale from the shop?
    Maybe mark the item with tag (out of stock) and exclude this tag from the store?
    Or add the item to the category (out of stock) and exclude from the store?
    Please suggest a way. I will be very grateful to you!

    #426034

    Hello,

    You can assign them to a category, then sort them out in the admin panel and make them draft or delete them.

    If you have any questions please feel free to contact us.

    Best Regards

    #438629

    3dmark
    Participant

    !!!Elise Noromit – please invite a knowledgeable person to the topic. I do not want to offend you, but a big request: Please do not get involved in my questions anymore!!!

    I really need help!
    I need to solve a problem: goods marked (or status) OLD did not appear in the shop, but were visible on the OLD TEMS page. and there were no goods marked or (status) OLD in the MAGAZINE section.
    I see 3 variants:
    1) Create a new OLD stock status type in woocommerce (pic3.jpg)
    2) Create an OLD category with a duplicate structure and specify the item as an OLD category (pic4.jpg)
    3) Create an OLD tag and make it a condition in the shop not to display the item with the OLD tag
    BUT I CANNOT USE – Hide out of stock items from the catalog!

    Which option would work for your template?

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

    Hello,

    I am terribly sorry.

    Initially, I mentioned, that the WoodMart theme, as well as any other WordPress theme, do not have such an option.

    You will need to either to customize Woocommerce or search for a plugin.

    WoodMart theme just displayed Woocommerce products as they are created and configured. We have visually customized some of the Woocommerce features, at the same time, the original feature remained the same.

    If you have any questions related to WoodMard please feel free to contact us.

    Best Regards

    #511477

    alphatechlogix
    Participant

    might this will help you
    add_action( ‘woocommerce_before_shop_loop_item_title’, ‘out_of_stock_variations_loop’ );
    function out_of_stock_variations_loop(){
    global $product;
    if ( $product->product_type == ‘variable’ ) { // if variation product is out of stock
    $available = $product->get_available_variations();
    if ( $available )foreach ( $available as $instockvar ) {
    if ( isset($instockvar[‘attributes’][‘attribute_pa_size’] ) ) {
    if(isset($_GET[‘filter_size’])){
    $destostock = $_GET[‘filter_size’];
    $array = explode(‘,’, $destostock);
    if (in_array($instockvar[‘attributes’][‘attribute_pa_size’], $array )&& (!$instockvar[‘max_qty’]>0)){
    global $product;
    $id = $product->get_id();
    echo “<style>.post-$id{display: none}</style>”;
    }
    else{

    if (in_array($instockvar[‘attributes’][‘attribute_pa_size’], $array )&& ($instockvar[‘max_qty’]>0)){
    global $product;
    $id = $product->get_id();
    echo “<style>.post-$id{display: block !important}</style>”;
    }
    }
    }
    }
    }
    }
    }

    #511526

    Hello,

    Thank you for sharing the information, our support does not cover testing/correcting third parties customization or plugins.

    Products are Woocommerce functionality, you can manage them either with Woocommerce settings or with other Woocommerce plugins.

    If you have any questions related to the WoodMart theme, please feel free to contact us.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)