Hi,
I am using PHP 8.3 and I am getting the following errors.
DeprecatedCalling get_class() without arguments is deprecated
1Plugin: sold-out-badge-for-woocommerceDeprecatedCalling get_class() without arguments is deprecated
1Plugin: sold-out-badge-for-woocommerceDeprecatedCalling get_class() without arguments is deprecated
1Plugin: sold-out-badge-for-woocommerceDeprecatedCalling get_class() without arguments is deprecated
31Plugin: sold-out-badge-for-woocommerce
]]>Sold Out badge shows on individual product page but not on main shop/category
Product Page:
https://laptopclinic.com.au/product/laptop-macbook-pro-retina-13-inch-early/
SHOP:
https://laptopclinic.com.au/product/
Category:
https://laptopclinic.com.au/product-category/laptop/apple/
Hello, I just installed tis plugin, even if is not updated, I like it because is simple. So it works perfectly in english, but I cant’ find the string to translate on wpml. I found a topic here, but is closed and also there are different codes and instructions. In simple words, what I have to do and which code I have to use and where?
Thank you for support, Ilaria
]]>I am using GeneratePress and WooCommerce. The badge is working perfectly on the default WooCommerece Loop shop page: https://drewrowland.com/shop
However, I am using WooCommerce blocks on the homepage to display products and the badge is not working. Any ideas to try?
]]>I’ve just installed this plug in so that out of stock products will be easily visibile from the search page but the badge is not showing. As an example, all of the Cherry Bomb products are currently out of stock.
It seems like the badge is only applying to the first out of stock product on a page. Please advise.
Thank you!
]]>Hi
Is this plugin obsolete OR current please?
I need some help or do I look for another plugin?
I notice the text “OUT OF STOCK” pops up on the Product image left side which is great.
BUT the other issue is on the WOocommerce single product page, where it usually says “OUT OF STOCK” in red, it is NOW in black text since installing your plugin.
HOW can I change it to larger text and back to RED, so it is OBVIOUS that item is out of stock please?
]]>Hi,
I tried the code from this support thread but it did not help.
https://www.ads-software.com/support/topic/badge-doesnt-show-on-shop-page/
Works great on the individual product pages.
any help you can offer is greatly appreciated.
Thanks,
Brent
]]>As you can see on this page I still see “brak na stanie ” which means no stock
]]>Is it possible to display 2 different badges, as follows:
OUT OF STOCK – 1 Red badge that says “Special Order”
BACK ORDER – 1 yellow badge that says “Limited Quantity”
]]>Plugin works great and I like very much the fact that the setup is very simple and to the point. It also works great with what I would call “native” woocommerce pages, however it works less smoothly when using block based single product page (eg in the link above, the product page is based on kadence shop kit template mechanics).
After a bit of trial and error, I managed to get the sold out plugin to work as well (you need to select the 2020 vintage :-), albeit with an ugly fix in WooCommerce.php to modify show_badge_on_variation_select() and select directly based on div.woocommerce-product-gallery rather than closest(‘.product’) CSS selector. The fix also works on ‘native’ woocommerce product pages, assuming those pages display some product image that is.
I don’t think this is a ‘good’ fix, but I am not sure there is a good way to make this work apart from hacking directly in the php code?
PS: in the same function, i also observed something that leads to a vexing problem when adding CSS logic that depends on the presence of the wcsob_soldout classed element: each time you toggle between out of stock product and product in stock (say because a variation is is stock while the other is not), a new element <span class=’wcsob_soldout’> gets added to the DOM. I think this can be fixed by always removing the span element first, and adding it conditionally:
$form.on(‘show_variation’, function (event, data){
$(‘.wcsob_soldout’).remove();
if (!data.is_in_stock) {
$product.prepend(‘<span class=”wcsob_soldout”>’ + sold_out_text + ‘</span>’);
}
not really elegant, but it works
]]>hi, is is possible to show the badge at the top right instead of top left?
And on the product page the badge is shown far under the photo, how can I fix this? https://shabbytiger.nl/product/hartjes-armbandje-roze-blauw/
]]>The plug-in appears not only to add a sold out badge but also to remove product description on the sold out items (via the function wcsob_soldout_text), which I would prefer not to. Undisplaying that function via CSS however only removed the “Sold out!” replacement text and did not give the product description back.
Any way to solve this? Thanks for an otherwise nice plug-in
Dear Support, thanks so much for your great plugin! We have a small problem. As soon as a product is sold out, the sold out text (Tijdelijk uitverkocht, in the example) shows double on the product detail page. As you can see at the included URL.
We are using Divi, not sure but probably a small incompatibility with the theme?
Any idea how to solve this? Much obliged! Jason
]]>Hi, a few weeks ago you helped me with some code to show the badge propperly, but for some reason on this new product I’ve created the badge moved to a side. I tried activating and deactivating the plugin YITH WooCommerce Product Gallery & Image Zoom thinking it might be an incompatibility with that (because I’m having some troubles with that plugin too), but it wasn’t it.
I’ve updated woocommerce too, might be that? Although the other products work fine
]]>Just installed on WordPress 6.1.1 but the settings page is blank. There’s an empty box and a save button but no options visible.
]]>I’m creating my own topic.
Please tell me which element, hook is the badge attached to?
Hello,
Is it possible to center the badge Horizontal and Vertical overtop of the Product Image?
Thanks,
Mike
]]>Hello, I discovered your plugin today and it works wonderfully on my site. Thank you for that!
I would like to ask if could you consider adding a feature which would show “only x left” when the stock threshold of the product is met, like when you only have 5 copies of the product left in your stock inventory.
thank you once again for this awesome plugin and for making it free!
]]>Hello,
I am using Divi and WooCommerce.
Scenario 1:
In the Product Data – Inventory section, “Manage stock” is checked. (https://snipboard.io/dYovUy.jpg)
Result: Sold Out badge appears on the image as soon as the page loads. (https://snipboard.io/X8OT74.jpg) When I choose a variable option, Sold out badge appears on the image and in the upper left corner. (https://snipboard.io/gtXCsO.jpg)
But if I select variable option 1 that has 100 in stock, the upper left sold out badge goes away but the badge on the image remains. (https://snipboard.io/U2B9sz.jpg)
Scenario 2:
In the Product Data – Inventory section, “Manage stock” is unchecked. (https://snipboard.io/I2PxFy.jpg)
Variable Options 1 & 3 stock status are set to “in stock”, variable option 2 stock status is set to “Out of Stock” (https://snipboard.io/XTJR3j.jpg)
Result: Sold out badge does not appear on the image when the page loads. When I choose variable option 2, the sold out badge appears in the upper left corner of the page but not on the image. (https://snipboard.io/lnGpwm.jpg)
The only way the sold out badge appears on the image is if Manage Stock IS checked in the Inventory section of the product data AND Use alternative method? (pure CSS) is checked in the plugin settings.
This doesn’t work for me because I don’t want the customer to see a sold out badge until the variable product is selected. And the only way I can make that happen is to set each variable stock status to which are in/out of stock. But if it’s out of stock, the badge doesn’t appear on the image as it should.
I hope this makes sense and you can provide a solution. Thank you!
]]>Hi, I didn’t want to create you a new topic because it’s mentioned in an older one but didn’t get any response.
https://www.ads-software.com/support/topic/why-the-badge-doesnt-show-in-homepage-and-shop-page/
I paste my problem below:
I’m having the same problem, my badge doesn’t displays on the shop page. I use WPBakery Page Builder as well but I don’t understand much about code, a developer built the web and he’s no longer available.
https://snipboard.io/ipqg2E.jpg -> the one marked is not on stock
Although the badge does appear well on the product page
https://snipboard.io/FT9QhR.jpg
Thanks!
]]>Hey,
I’m using Body Commerce with Divi and I’m adding the outofstock class to the product loop. Still nothing shows up.
Can you please point me in the right direction.
Where to put the class?
Thanks!
]]>Hola! No sé porqué pero mis productos, aparece el “Sold Out” tan arriba cuando antes estaba al lado de la imagen…
]]>It work perfectly on the website but for the responsive on mobile it didn’t work…
What can I do ?
I’m working on WordPress 5.8.5 – Healfio Child
Thanks ! ??
]]>On a product with variations — lets say you have 5 variations — 4 of those are in stock and purchasable but 1 is out of stock. The badge still shows even though the product can be purchased on one of the other variations. I didn’t see a setting to adjust this.. Do you have a good work around for this?
]]>The sold out badge is on the very left side of the website instead of on the photo. I tried enabling the alternative version but when I enable that the badge does not show up at all.
Thanks for any help
??
O
Hi,
I want to remove badge from my website for product pages. I only want it to be seen in all products page. How can I do this?
]]>Hi,
I have activated the bagde which works like a charm except when opening the photo gallery of a product ( click on the magnifying icon while on a product page).
When doing so, the “sold out” mentions seems to float around and stay in the same position when you scroll . Would there be a way for the bage not to show when opening the photo gallery ?
Many thanks,
Quentin
]]>Hi Charlie,
thank you for the plugin!
I have one scenario where the sold out badge isn’t showing as expected.
The sold out badge is displayed on the “Related Products” grid on the product page when the main product is also sold out.
But the badge doesn’t show on the grid when the main product is in stock.
Could you look into this please?
]]>Sadly its still showing out of Stock instead of Sold Out.
Please help
]]>Why the badge doesn’t show on the homepage and shop page?
]]>