How to add display Woocommerce product category on the order edit page

TIPS

Nov 26, 2020 | WooCommerce Tips | 0 comments

Add the following PHP code to your child theme functions.php file. [php] get_id(), ‘product_cat’ ); if(!empty($termsp)){ foreach ($termsp as $term) { $_categoryid = $term->term_id; if( $term = get_term_by( ‘id’, $_categoryid, ‘product_cat’ ) ){ echo $term->name .’, ‘; } } } ?> [/php]

0 Comments

Submit a Comment

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

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields