WPSlash

Show Product Category Description inside Accordion on WooFood

Monday September 14, 2020

Following

If you want to show the product description of the category you have added inside description under Products > Categories on WooCommerce inside the accordion of WooFood before products you can use the following snippet on your functions.php inside your child theme

add_action('woofood_after_products_wrapper_open', 'wpslash_show_category_description', 10, 2);

function  wpslash_show_category_description($cat, $ids)
{
    $term_object = get_term_by( 'slug', $cat, 'product_cat' );
    echo $term_object->description;

}

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles

Tutorials WooCommerce

How to Choose the Best Food Ordering System for Your Restaurant (And Why WooFood is the Ultimate Solution)

If you’re running a restaurant, café, or fast-food business in today’s digital age, offering online food ordering is no longer optional — it’s essential. Customers expect the convenience of browsing your menu, customizing their orders, and checking out seamlessly from their phone or computer. But with so many plugins and systems available, how do you choose the right […]
April 21, 2025
WooFood

How to Disable Coupons for Delivery Orders in WooCommerce

If you’re running a WooCommerce-powered restaurant or food delivery service, you might want to restrict certain coupon codes for delivery orders while keeping them valid for pickup orders. This ensures better control over discounts, prevents misuse, and improves your store’s pricing strategy. Why Restrict Coupons for Delivery Orders? Offering coupons is a great way to attract customers, but in food […]
June 20, 2023
WooFood

How to Automatically Re-Enable Disabled Products in WooFood Once a Day

If you’re running a WooCommerce-powered restaurant ordering system using WooFood, you might have products that automatically get disabled due to stock limits or availability settings. To ensure a smooth customer experience, you can automate the re-enabling process using a scheduled WordPress cron job. This method allows you to reset all product availability once a day, ensuring your menu stays active without manual intervention. Why […]
March 8, 2023