• Resolved JapeNZ

    (@japenz)


    Hi there,
    I’m trying to add product stock status after the add to cart button in shop loop / archives / catalog.

    Is there a way I can place items after the ‘responsive-shop-summary-wrap’?

    I’ve tried using this:

    function puri_shop_loop_show_stock() { global $product; echo wc_get_stock_html( $product ); } add_action( 'woocommerce_after_shop_loop_item', 'puri_shop_loop_show_stock', 10 );

    Which works in the standard Woocommerce loop, but not in the responsive theme as it places the stock status between the product image and responsive-shop-summary-wrap, rather than after the add to cart button / responsive-shop-summary-wrap.

    Thanks for your help!

    • This topic was modified 1 year, 4 months ago by JapeNZ.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @japenz ,

    Thanks for reaching out.

    Please provide more details on which starter template you are facing the problem.
    Also, we request you add a few screenshots for a better understanding of the issue being faced.

    Additionally, we suggest you raise a ticket with us for quicker resolution at https://cyberchimps.com/open-a-ticket/


    Thread Starter JapeNZ

    (@japenz)

    Hi @rajatt777,

    Thanks for getting back to me ??

    I’ve actually decided to go another way about it, and added the stock status message as a label / badge on the product thumbnail.

    Thanks for your help though!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add stock status after add to cart in shop loop’ is closed to new replies.