WordPress.org

Ready to get started?Download WordPress

Forums

Woocommerce Compare Products
[resolved] Single post attributes (2 posts)

  1. latro666
    Member
    Posted 1 year ago #

    Hi there

    I'm also 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.

    http://wordpress.org/extend/plugins/woocommerce-compare-products/

  2. Steve Truman
    Member
    Plugin Author

    Posted 1 year ago #

    Hi latro666

    I think you have posted this here by mistake.

    I'm also 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:

    It has nothing to do with Compare Products that I can see?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.