Hello,
Thanks for reaching me out.
1 – I have tried this code from the link you’ve provided.
// display an 'Out of Stock' label on archive pages
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_stock', 10 );
function woocommerce_template_loop_stock() {
global $product;
if ( ! $product->managing_stock() && ! $product->is_in_stock() )
echo '<p class="stock out-of-stock">Coming soon!</p>';
}
Looks like the CCS styling is missing or something (check the link below) and actually it did not overwrote the badge, but created a new one. Here is the screenshot after implementing the code. You can also check it within this link
https://imgur.com/a/I6WEAqS
2 – Here is the site with the shop where I need to rewrite the content of this black “out of stock” badge.
https://www.paulthevintage.com/staging/submenu-2-test/
I would like to edit text (positioning would be also cool, but is not so important).
Thank you in advance!
micwie
-
This reply was modified 6 years, 3 months ago by
micwie.