Reply 307773 to: Conclusion Available in product categories

Avatar: Olga Barlow
Olga Barlow
Support staff
November 6, 2021 at 11:32

Hello,

Only by additional customization.
Add the below code to child theme fucntions.php

add_action( 'woocommerce_after_shop_loop_item_title', 'custom_show_stock_shop', 10 );
function custom_show_stock_shop() {
   global $product;
   echo wc_get_stock_html( $product );
}

and the below code to child theme style.css

.content-product .product-details .stock {
    display: block;
    position: relative;
    transform: none;
    left: auto;
    top: auto;
}

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.