Hi @niikk,
We are sorry for late response!
Thanks for informing me on this issue! I’ve fixed this issue on version 5.5.3. Please update the plugin to the latest version and try again.
Best regards,
Thread Starter
niikk
(@niikk)
Hello @miemie
Thanks. I just made a test with the new version. However, it does not work as expected.
Repo steps:
– We have a bundle with 6 products
– 5 Products of that bundle are in stock AND published
– 1 Products is also in stock BUT NOT published. (I made tests with “draft mode” and “needs approval”)
Result: The bundle is not shown as “Out of stock”. Also the add to cart button and quantity buttons are visible.
BUT if we change a quantity from a product in that Bundle to “0”. Then the Bundle is shown as “out of stock”.
What do we miss here?
I thinks a check if all product are “in stock” AND “status = published” should be do the job. Or what can here maybe be the problem?
Cheers & Thanks
-
This reply was modified 4 years, 11 months ago by
niikk.
-
This reply was modified 4 years, 11 months ago by
niikk.
Thread Starter
niikk
(@niikk)
@miemie Any feedback on that? 🙂
Cheers
Hi @niikk,
The stock quantity of bundles always based on the stock quantity of bundled products. It maybe can be managed and lower than the bundled products but can’t higher or separate from bundled products. If one of the bundled items goes out of stock/ unpurchasable/ low in threshold/ set as private, then the whole bundle will go out of stock/ unpurchasable as well.
Please read our article here https://wordpress.org/support/topic/how-to-configure-the-stock/
If in your bundle, you would like to hide a bundled product for not being purchased individually, but your bundle still can be available without showing “Out of stock”, pls check your setting in the backend.
1/ Disable “Link to individual product” by choosing “No” for this option in WPClever >> Product Bundles. https://prnt.sc/128t4ls
2/ Hide them from your shop archive and search by adjusting their visibility to Hidden
https://prnt.sc/128t62r
Besides that, please check if you have selected “Enable stock management at bundle level?”, then go to the Inventory tab to check the stock quantity configured. https://prnt.sc/128teju
Normally after enabling this option https://prnt.sc/128tfyp and press Update, the stock quantity for the whole bundle in the Inventory tab will be 0, you need to enter a number into this box to make it “In stock” and enable stock management.
You can also go to WPClever >> Product Bundles >> in the “Cart & Checkout” section, choose “Yes” for “Exclude un-purchasable products”, in the front-end, out-of-stock products will still be visible, but buyers cannot choose or add them to the cart.
https://prnt.sc/128thb8
Regards,
-
This reply was modified 4 years, 11 months ago by
miemie.
Thread Starter
niikk
(@niikk)
hello @miemie
Many thanks! I’m aware of all those options and settings 🙂
But our question is related to, published products. So in your view, only if a product is out of stock, the bundle shows the message “out of stock”. But as you can imagine, a bundle has more than one product. Now, if one product from that bundle is not published and in the draft mode, then the bundle does not show “out of stock”. Also the add to cart button is visible. After clicking on that we get the message:
Product A is not available for purchase. You cannot add this bundle to your shopping cart.
We need to know, how or where we can adjust the check for that. We want to change, that if a product IS NOT published, then show the bundle as “Out of stock”.
Many thanks for your feedback 🙂
Cheers 🙂
Hi @niikk,
Please follow this article to change the text in our plugin.
Regards,
Thread Starter
niikk
(@niikk)
Hello @miemie
Thanks but I do not want to translate anything. I’m talking about a function of the plugin. Again, we want that the bundle shows as sold out when the status of a product from the bundle IS NOT = PUBLISHED. That’s all. 🙂
Hope that helps.
Cheers
Hi @niikk
Please update our plugin to the latest version 5.6.4. I’ve fixed this issue 🙂
Please remember that when one product is draft, it still is purchasable for the administrator. So, please test with a customer account or visitor.
Thread Starter
niikk
(@niikk)
Hello @wpclever
Awesome! Now it works! Very Cool!
Now the Sold out is visible when a product from the bundle is not published. As you can see here: https://ibb.co/FnrHM1S If a product is not in stock, then it shows the bundeld product list as “out of stock”. It would make sense to display this the same way, if a product is in darft mode cause it is not available. :))
Last questions:
– Why is it still purchasable for the administrator if a product from the bundle is on draft?
Many many thank so far for your work 🙂
Cheers
https://ibb.co/FnrHM1S
Hi @niikk
#1. To show “Out of stock” for unpurchasable (draft) product, please add below snippet (How to add custom code?):
add_action( 'woosb_after_item_name', 'woosb_show_out_of_stocl_for_draft', 99, 1 );
function woosb_show_out_of_stocl_for_draft( $_product ) {
if ( ! $_product->is_purchasable() ) {
echo '<div class="woosb-availability"><p class="stock out-of-stock">Out of stock</p></div>';
}
}
#2. Why is it still purchasable for the administrator if a product from the bundle is on draft?
This is the default functionality from WooCommerce. I think it is useful for testing before publishing a product.
Thread Starter
niikk
(@niikk)
@wpclever Awesome! Thank you!! 🙂