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?
- This topic has 7 replies, 3 voices, and was last updated 1 year, 3 months ago by
Elise Noromit.
-
AuthorPosts
-
December 1, 2022 at 10:23 pm #425537
3dmarkParticipantHow 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!December 2, 2022 at 5:59 am #425578
Elise NoromitMemberHello,
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
December 3, 2022 at 12:36 am #425837
3dmarkParticipantPlease 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!December 4, 2022 at 3:49 am #426034
Elise NoromitMemberHello,
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
January 29, 2023 at 3:14 am #438629
3dmarkParticipant!!!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.January 29, 2023 at 7:25 am #438659
Elise NoromitMemberHello,
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
November 10, 2023 at 2:34 pm #511477
alphatechlogixParticipantmight 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>”;
}
}
}
}
}
}
}November 10, 2023 at 5:42 pm #511526
Elise NoromitMemberHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register