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
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Can’t custom taxonomies have same terms (slugs) as categories?
- get_categories for custom post type with a specific custom taxonomy attached
- Order get_terms() By Custom Field
- How can I add the featured image functionality to a custom taxonomy?
- Programmatically create product category and add thumbnail in woocommerce
- Create product category and keyword search form in woocommerce? [closed]
- Show Post from parent category (custom taxonomy) ONLY!
- How to get next previous category in same taxonomy?
- Use get_term_children to get the sub category of a parent category for the current post
- Hide uncategorized products from the shop page
- Are Custom Taxonomy Templates Possible?
- Remove word “Category” from WooCommerce product page [closed]
- Get a list of Terms for a specific category
- Filtering search results
- WooCommerce change category url and product base
- How to display a description of a given category from a custom taxonomy
- Output link to category from WP_Query loop of woocommerce products
- Category tree is flattened inside admin upon saving
- How to get product count with respect to categories in WooComerce
- PHP Fatal error: Cannot use object of type WP_REST_Response as array in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Get woocommerce catogry
- How to know if it’s a child taxonomy?
- wp_dropdown_categories and custom taxonomy + custom post type
- Set post categories to include parents when setting child category
- Linking products to categories
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- Omit specific product categories from WooCommerce shortcode
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- One Specific Category To Permalink
- Hide woocommerce category name from specific pages
- need to add custom field in more products
- How to redefine the sorting of product categories by menu_order?
- Pagination is not working properly in Product Category/Tag pages
- Best way of getting WooCommerce category path
- How to recreate a copy of a product category in WooCommerce? [closed]
- Get parrent category name
- Sorting category products not working
- add_rewrite_endpoint returns 404 on archives
- Add category only if post has custom taxonomy category
- Woocommerce custom category page with pagination [closed]
- Add child category to parent on post creation and save
- Get Number of total Parent Categories for Custom Taxonomy
- Display custom taxonomy attached to the post on post single page
- Limit categories and it’s subcategories for specific group of users
- 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
- Question on using custom structures for categories
- add slug beside name in Admin Category Checklists
- Target a specific category from a custom taxonomy?
- 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
- why get_the_post_thumbnail( the_ID()) echos extra post id
- Filter WooCommerce archive pages by an additional category
- Custom tax_query filter not working for Woocommerce product categories
- How do order product categories – on a parent category page – in Woocommerce?
- Woocommerce filter function not updating
- Remove any product that is featured from regular display loop [WooCommerce]
- Two Sections on Woocommerce Catergory Page [closed]
- Woocommerce search form with category select
- Category link redirect to custom template page instead of index.php?
- Post to inherit custom category background image from parent
- 3.1 post formats and specific categories/custom taxonomies
- WooCommerce shared categories
- 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
- List of post categories only associated to another custom taxonomy
- Conditional label Woocommerce archive [unsolved]
- Automatically add custom taxonomy to posts in a category
- Show audio player only in specific post type category
- How to show given products only using product id array from specific category page in woocommerce
- Ordering terms whilst in loop
- 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?
- 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
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- How to assign Categories and tags inside the TinyMCE Editor for each Image?
- How to get WooCommerce Product Categories and its children’s children?
- set a parent category in a product woocommerce
- No results found for second level category
- Why use hierarchical taxonomies instead of many custom taxonomies?
- How to Manage and link certain custom taxonomy?
- woocommerce – products by category slug? [closed]
- How can I add a Categories page link to a menu? [closed]
- Most efficient use of custom taxonomies, categories, and pages
- Converting Categories (with ACF fields) to custom taxonomies
- WooCommerce category display in custom page
- Woocommerce custom taxonomy order
- Update wordpress menu with woocommerce products
- Get all categories
- Woocommerce Force the category choice before creating new product? [duplicate]
- Restricted category in Woocommerce [closed]