In Stock filter and icon on products
-
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
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
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.
Hi,
Thank you for posting your temporary solution here. Hope it will be useful for other visitors.
REgards