Home Forums WoodMart support forum In Stock filter and icon on products

In Stock filter and icon on products

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23241

    epicneo
    Participant

    Dear Xtemos,

    I’ve searched for a good woocomerce theme for a while and finally found your awesome Woodmart theme! 95% I could achieve what I want, however I couldn’t find In Stock filter and any method to show on grid view (products). Do you have such settings? (I can modify your code and add but I more prefer the boxed solutions:))

    Thank you in advance!

    Daniel

    #23252

    Artem Temos
    Keymaster

    Hello,

    Thank you so much purchasing our theme and contacting our support center.

    Unfortunately, there is no such filter in our theme and WooCommerce plugin by default. We will consider this as a feature request and maybe implement in our future updates.

    Kind Regards
    XTemos Studio

    #23279

    epicneo
    Participant

    Thanks for the answer!

    By we time (while we don’t have this feature) anyone can add to the function.php file:

    
    add_action( 'woocommerce_after_shop_loop_item_title', 'shop_inventory' );
    
    function shop_inventory() {
              global $product;
    	  $stock = (int) $product->get_stock_quantity();
    	  if ($stock > 0 ) {
    		echo 'ANY HTML code'; //stock
    	  }else {
    		echo 'ANY HTML code'; //no stock
    	  }
    } 

    For filtering there are several plugins.

    #23290

    Artem Temos
    Keymaster

    Hi,

    Thank you for posting your temporary solution here. Hope it will be useful for other visitors.

    REgards

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)