About badges when products are sold out at Woocommerce.

Pending
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme January 31, 2020
Login to reply
Igor Sunz Support Agent
4 years ago

Without active support, you can expect help with possible bugs only. By Envato rules, we don't need to answer at all on any questions from not supported users, but our rules are more soft, we don't answer only on customization questions. Thank you for understanding

keiji maeda
4 years ago

I'm not seeking your help for a fee.

I don't have the budget, so I'm asking many users for help.

This is fair, isn't it?

Igor Sunz Support Agent
4 years ago

Sorry, customization help is available only for actual support. You have expired and we can't give you code. It will be not fair for buyers who update their support if they will have the same support level as buyers without support. Here is our link about support policy https://themeforest.net/item/rehub-directory-multi-vendor-shop-coupon-affiliate-theme/7646339/faqs/30954 We will be happy to help you to implement custom plugin in theme once you update support. If you already updated it, write to us on Themeforest comments, we will give you full instructions

keiji maeda
4 years ago

I want you to tell me all the specific codes.

Thank you.

Igor Sunz Support Agent
4 years ago

I already sent you name of hook which you must use. Please, read previous
messages

пт, 31 янв. 2020 г., 17:25 Sizam Support Help Desk <
sizamtheme+mxLnAgaj7VZX49PzKXqk@mail.support-hub.io>:

keiji maeda
4 years ago

I want to display a badge when a product is sold out at Woocommerce.

The following is entered in functions.php and css is also entered, but it is not displayed.

Is there any other place to fix?

add_action ('woocommerce_before_shop_loop_item_title', function () {
     global $ product;
     if (! $ product-> is_in_stock ()) {
         echo '<span class = "soldout"> Sold out </ span>';
     }
});

We are looking for a solution from everyone.

Thank you.