Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce php get product attributes

global $product;
$koostis = array_shift( wc_get_product_terms( $product->id, 'pa_koostis', array( 'fields' => 'names' ) ) );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #php #product #attributes
ADD COMMENT
Topic
Name
2+6 =