found the code that do the trick
$terms = get_the_terms( $product_id, 'my_taxo' ); foreach ($terms as $term) { $product_cat = $term->name; } echo $product_cat ;
from below discussion
https://stackoverflow.com/questions/33495716/get-the-product-categories-and-display-it-on-cart-page-woocommerce
Thanks for the authors
Related Posts:
- When creating a new product, auto assign it to all custom taxonomy woocommerce
- Get WooCommerce product category list in functions.php
- Limit categories and it’s subcategories for specific group of users
- Display single category name in woocommerce loop
- Ive got a term (get_term_by) but now I want to filter it by a category it is in?
- Building Menu from Woocommerce Product Categories
- Include WooCommerce product to all child categories
- woocommerce related products by specific categories [closed]
- Question on using custom structures for categories
- add slug beside name in Admin Category Checklists
- Target a specific category from a custom taxonomy?
- Get Categories Where Taxonomy Equals ‘n’
- Do not show sub categories in the loop on archive-product.php
- Having a template per category? Bad for server overhead?
- Echo text using is_tag
- List just subcategory and products of active category page in Woocommerce
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- Display all product tags associated with a specific product category
- custom page for custom Taxonomy
- why get_the_post_thumbnail( the_ID()) echos extra post id
- How to access deleted term inside delete_product_cat action
- Apply WordPress function on specific woocommerce product categories only
- Filter WooCommerce archive pages by an additional category
- Grandchild Term Things Grandfather Term is It’s Parent
- Custom tax_query filter not working for Woocommerce product categories
- Custom page category taxonomy 404
- How do order product categories – on a parent category page – in Woocommerce?
- Woocommerce filter function not updating
- Adding custom ID field to the categories
- How can i change what one category displays?
- Remove any product that is featured from regular display loop [WooCommerce]
- Two Sections on Woocommerce Catergory Page [closed]
- Woocommerce search form with category select
- How to display product with two condition, category and brand taxonomy
- Filter By Category Dropdown List With Custom Taxonomies
- query_posts by category_name and custom taxonomy
- Show different menu on each woocommerce category page
- Is it possible to create an alias/custom taxonomy for a category name?
- Same menu for different taxonomies to reach different content
- Template for product-category page [closed]
- Showing HTML if Post is In Certain Taxonomy Term
- I need to exclude from a query a category and a few custom taxonomies
- Category link redirect to custom template page instead of index.php?
- How could I write a get_categories_by_year() function?
- How to load several hierarchical categories from functions.php
- Assign a custom post to a custom taxonomy based on custom field value
- Posts not listing out sub category in hierarchy
- Post to inherit custom category background image from parent
- Custom Fields Value As Taxonomy
- How to get posts using category slug in ClassiPress?
- 3.1 post formats and specific categories/custom taxonomies
- Link posts together (relative, not grouped)
- WooCommerce shared categories
- displaying the last product comment in the woocommerce category
- Displaying Single Product Page Parent and Child Category
- How to fix select filter on category
- Migrate the posts of a category to another blog as a custom taxonomy
- Woocommerce only display child category when parent is checked (on add new product page)
- category description not showing in my woocommerce
- List of post categories only associated to another custom taxonomy
- List taxonomy terms assigned to a post in hierarchical view
- Conditional label Woocommerce archive [unsolved]
- Page category filter in admin dashboard
- Automatically add custom taxonomy to posts in a category
- Show audio player only in specific post type category
- How to set the same base url for two different taxonomies?
- How to make product image inherit from category image
- Taxonomy custom check box meta field not getting saved
- How to show given products only using product id array from specific category page in woocommerce
- Ordering terms whilst in loop
- Shop Category Pages missing s
- How to set acf color field as background color to product category
- How to target all woocommerce categories that don’t have any subcategories in them?
- WooCommerce REST API not returning the default products category
- In if…else condition, the else statement shows even if if statement is correct
- How to show WooCommerce Categories on ‘shop’ page instead of products?
- Show the parent taxonomy by creating shortcode in woocommerce?
- How can I display all products from all categories on one page with woocommerce?
- How to add all subcategories as submenu in WordPress menu
- How to edit woocommerce sub-category page
- Grab all the posts for particular category
- in post content shortcode works, but hardcoded in same page template doesn’t?
- Is there a reason to put a product in both the Child and Parent Categories?
- WordPress category title not update in navigation menu
- WooCommerce showing active product categories on single product page
- How can i echo next and previous custom category from a Taxonomy
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- How to fix 404 error in pagination in categories of woocommerce with common url base /shop/?
- How to display custom fields as table in Woocommerce
- How do I merge WooCommerce categories with the same name?
- Woocommerce Category Sort Dropdown
- Woocommerce: all products of all categories instead products of one category
- How to delete WooCommerce categories in bulk that only have one product
- Product Category page showing all products
- Using heirarchial tags or Custom taxonomies
- How to assign Categories and tags inside the TinyMCE Editor for each Image?
- product_cat image url from database
- How to get WooCommerce Product Categories and its children’s children?
- Woocommerce change tag_id to name