WooCommerce changed the way it stores catalog visibility since the last time the plugin was updated. With a quick edit to one file, you can (as of October 2022) get it working again.
Edit this file:
wp-content/plugins/woocommerce-sold-out-products/classes/class-wc-sold-out-products.php
Remove or comment out this block of code that starts on line 64:
$meta_query[] = array(
'key' => '_visibility',
'value' => array( 'visible', 'catalog' ),
'compare' => 'IN'
);
Replace the $args definition starting on line 95 with the code below (the tax_query portion is the new piece):
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
'posts_per_page' => $per_page,
'orderby' => $orderby,
'order' => $order,
'meta_query' => $meta_query,
'tax_query' => array( array(
'taxonomy' => 'product_visibility',
'terms' => array( 'exclude-from-catalog' ),
'field' => 'name',
'operator' => 'NOT IN',
) )
);
]]>
Hello,
Could we get an update for this plugin? It’s pretty outdated now!
Thanks
]]>Hope somebody can help me. I’m not an expert, but I’m trying to get this plugin to work again. I have a website with 2 languages, Dutch and English. I have a seperate page with the products that are sold out. This was working fine, untill I started translating the website. The english version of this page doesn’t work at all and the Dutch version stopped working. The last products that our sold, don’t show at all and the upper products that are sold, link to a wrong product. To make things easier, this is my website
]]>Friends,
I need help, instead of showing the exhausted products , would like to show what they are ” in stock ” .
it’s posible?
thanks.
—–
Amigos,
necesito ayuda, en vez de mostrar los productos agotados, quisiera mostrar lo que estan “en stock”.
?es posible?
gracias.
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>WordPress: 4.2.2
WooCommerce: 2.3.11
Theme: TwentyTwelve
I can only get it to show SALE
I cannot get it to show SOLD OUT
I’d like it to show NEW (<30 days old)
How?
Thx,
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>I tried adding the code to to the function.php from this thread https://www.ads-software.com/support/topic/plugin-woocommerce-sold-out-signs-on-products?replies=3
But it breaks my site when I edit that code. I get visible code warnings about the header on the front end. Is there another way?
I would just like the banner to read: Sold.
Thanks!
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi
The plugin works great with simple products but it doesn’t work with the ‘product bundles’ extension. It seems as if product bundles uses it’s own code to display that a bundle is out of stock rather than relying on woocommerce. I contacted woothemes support and they responded with the following but I have no clue what they actually want me to do with this code. Can you be of any assistance?
“Use $bundle->all_items_in_stock() in combination with is_in_stock(). The latter one is restricted to the bundle-level stock status, while the former one is based on the contents’ stock status. Alternatively, you could use get_availability for the same purpose.”
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi!
Firstly: Thank you very much for a great plugin – it’s awesome!
I found a bug and would love to share it with you: If one is using stock level management per variation the product will be listed as sold out as soon as one of the variation stocks hits 0. Idally it would be only listed as sold out if all variations hit 0.
Keep up the good work!
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>I have a separate page to show any items that are sold out. It was working just fine, and then today I looked at the page and the images are no longer thumbnailed. They are too large. Any idea on how to get them back to the original thumbnail size?
]]>Hi, I installed this plugin and find it works great!
But when I active the plugin it automatically adds the SALE badge on the products on sale. Is there a way to deactivate the sale badge only??
Thank you
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hello,
yes, I already read this https://www.ads-software.com/support/topic/how-to-replace-standard-background-with-costum-image?replies=5 and I followed the instructions but it doesn’t seem to fit my needs.
I try to show a colored bar at the bottom of my product images. I prepared an *.png-image with 400 x 400 px (mostly transparent) the same size the product images are.
Product images are shown with width: 48% und height: auto(?)
When I use this in my style.css the Background image is not shown. If I change it to width: 48% und height: 48% the image ist shown but cropped in width ein height.
When I use width: 400px und height: 400px the images is shown larger then the prodct image.
How can I manage to get the background image shown the same size as the product image? And how can I manage to do this in the product overview as well? Can anybody help? Gerhard?
Thats the used css code. Theme: Ari
.woocommerce-page span.soldout, .woocommerce span.soldout {
width: 48%;
height: 55%;
padding: 0;
font-size: 10px;
font-weight: bold;
position: absolute;
text-align: center;
line-height: 52px;
top: 0px;
left: 0px;
margin: 0;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
background: url('https://shop.heinrichsgarten.de//wp-content/themes/ari-wpcom-child/verkauft_image.png');
text-shadow: 0 0px 0 #7E2217;
color: #fff;
-webkit-box-shadow: inset 0 0px 0 rgba(255,255,255,0.3),inset 0 0px 0 rgba(0,0,0,0.2),0 0px 0px rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 0px 0 rgba(255,255,255,0.3),inset 0 0px 0 rgba(0,0,0,0.2),0 0px 0px rgba(0,0,0,0.2);
box-shadow: inset 0 0px 0 rgba(255,255,255,0.3),inset 0 0px 0 rgba(0,0,0,0.2),0 0px 0px rgba(0,0,0,0.2);
z-index: 999;
}
Cheers
Alexander
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hello ,
I want to show all the products which is in stock now and after that i will want to show the sold out products in the shop page or category page .
Thanks
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>I’m trying to display the products short description in the Sold Out Products Widget.
I’ve edited the following while loop
while ( $r->have_posts()) {
$r->the_post();
global $product;
echo '<li>
<a href="' . get_permalink() . '">
' . ( has_post_thumbnail() ? get_the_post_thumbnail( $r->post->ID, 'shop_catalog' ) : woocommerce_placeholder_img( 'shop_thumbnail' ) ) . ' <h3>' . get_the_title() . '</h3>
</a> ' . $product->get_price_html() . '
</li>';
}
to look like…
while ( $r->have_posts()) {
$r->the_post();
global $product;
global $post;
echo '<li>
<a href="' . get_permalink() . '">
' . ( has_post_thumbnail() ? get_the_post_thumbnail( $r->post->ID, 'shop_catalog' ) : woocommerce_placeholder_img( 'shop_thumbnail' ) ) . ' <h3>' . get_the_title() . '</h3>
</a> ' . $product->get_price_html() . ' Short Description ' . apply_filters( 'woocommerce_short_description', $post->post_excerpt ) . '
</li>';
}
It’s not working, so if anyone can help me acheive this, it would be greatly appreciated.
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi there, I just changed the color of my badge via adding to the CSS Stylesheet Editor, but I can’t seem to get rid of the red/burgundy shadow behind the text. How do I do this?
My badge also seems to be a stretched circle, as opposed to a full circle as shown on the examples of the plugin. Is there a way of changing this or fixing this too?
And my last related question is if there is a way to remove the shadow completely from the badge, so it is a flatter-looking image as opposed to a more 3D one.
Thanks!
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>I tested it and the badge didnt show up. Even using different themes. Can you confirm it still works with the latest WooCommerce upgrade?
Thank you
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>The client I’m using this for sell t-shirts and they are only sold out of only specific sizes not the entire product, does the sold out plug in work for that too or is it just for an entire product?
Thanks so much, greatly appreciate your time.
Stephanie
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi,
I have the WooCommerce Sold Out Products extension installed. It shows the SOLD badge as I expect but when created a page to display products within a certain category using WooCommerce shortcodes in a product grid format (using the Avia Builder element), the SOLD badge only displays as text.
My website is not yet public so I have included the keyword access to be used to see this issue on a specific page.
https://www.lysetremblayjewelry.ca/allowme
Once you are on the site you can see issue on this page:
https://lysetremblayjewelry.ca/2-piece-jewelry-sets
scroll down until you can see the products that have the SOLD badge in text only.
Thanks
Lyse
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hello!
Thx, for the great plugin!
Is there a possibilty/argument to only show sold out products of a certain product category?
Greetings
Dominik
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>I recently downloaded this plugin from Woo Themes. I installed it and now what? According to one of the support staff at Woo it should display the sold out sign if a product is sold out. Is there a step I am missing that makes this plugin work? I see documentation for a widget and shortcode. Don’t need them, I don’t think. We have a simple store and want our clients to know when a product is out. Are there settings that make this work like in stock management? Some guidance would be appreciated.
Thanks,
Michael
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hello,
I really like your plugin. It does exactly what I needed.
One small question. How do I create upgrade safe translations for this plugin?
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi,
Is it possible to show recently sold out products, but order them by the date at which they were sold out, rather than the date they were created?
Thanks,
Patrick
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>“sold out” does not appear in the listing, just on the product page.
what do I do?
appears here:
https://www.grife278.com.br/produto/short-onca/
not appear in the listing:
https://www.grife278.com.br/
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi! Thanks for the great and very functional plugin!
How do I change the badge on the shop archive pages? I looked around but couldn’t find where the image is hiding.
Thanks in advance for the help.
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>I installed the plugin and it works but it only shows the badge on the category view but not on the base shop. Is that a different configuration?
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>The guys at MPC have integrated support for WC Sold Out Products to the Blaszok theme. It works great with the archive hover slide image as well.
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>I recently moved from Jigoshop which I had used for a few years.
I guess I was expecting more from this plugin as most everything for Woo is a little more supported. I expected this to operate like this plugin: https://www.optart.biz/portfolio/jigoshop-product-badges-en/
This plugin did not really work well and I had to chase around to find small bits of code to get it semi working though that was due to my choice in theme. Aside from that the options are zero. I would pay for a more well developed plugin.
Not really a support ticket, but…
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hello,
i am using your plugin.
Really Great Functioanlity.
i want to display Sold Out after price as well. i mean i want to display it 2 times on product page. one on image and second after price.
could you please tell me how to display sold out after price.?
i need help immediately.
your help would be appreciated.
Thanks
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi
I installed the plugin but the badge, or what I think is the badge appears to be showing behind the product https://midlandspkakickboxing.com/product-category/seminars-tournaments/ (Nationals Product)
I have added the code to the custom css as suggested in another post but this did not make any change –
soldout {
z-index: 999999 !important;
}
Thanks in advance
Lee
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi there, for some reason this short code isn’t displaying more than 12 products on my page, even though I set it to ‘500’. I have hundreds of sold out products not eh site I am building. https://www.montagewestport.com
Any ideas? Thanks! Great plugin in so far.
https://www.ads-software.com/plugins/woocommerce-sold-out-products/
]]>Hi,
We are using the shortcode on a page:-
[sold_out_products per_page=”90″ columns=”4″]
Here is resulting PAGE
The plugin doesn’t seem to display variations of products that are out of stock?
An example product is Bee Jackets, Size M is out of stock. So shouldn’t this appear on the Out of Stock Page?
We are trying to create a page that lists all of our “Out of Stock” items to make is easier to order them.
Thanks for the great plugin…Gary
]]>