[Plugin: WooCommerce – excelling eCommerce] Outputting custom attributes
-
Hi there
I’m trying to output a product’s custom attributes in the description area e.g. just after the excerpt. I worked out how to do it with:
$attributes = $product->get_attributes(); $schart = $attributes['kpfitting']['value'];
in single-product.php
But it errors if put in short-description.php, think its because the product object isn’t set at that point or something. I started to try and figure out the template system etc but got very confused very quickly as its pretty complex.any help appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: WooCommerce – excelling eCommerce] Outputting custom attributes’ is closed to new replies.