Add stock status after add to cart in shop loop
-
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!
Viewing 2 replies - 1 through 2 (of 2 total)
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.