Conclusion Available in product categories

This topic has 2 replies, 2 voices, and was last updated 2 years, 3 months ago ago by Olga Barlow

  • Avatar: Goostaf
    Goostaf
    Participant
    November 5, 2021 at 23:05

    Hello, can a word be displayed in product categories? example screen

    Please, contact administrator
    for this information.
    1 Answer
    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.