WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Insert Woocommerce Product Attributes Table in Product Short Description (2 posts)

  1. soubrette
    Member
    Posted 4 months ago #

    I've set up attributes such as approximate size, color, waist measurement, etc. for my clothing items. I sell one-of-a-kind items (vintage clothing), so each product generally only has one attribute term associated with each attribute name.

    I'd like to show a two-column table of the product's attributes/terms inside the short description area of the product page, similar to what is showing inside the "more info" tab lower on the page. I'd also like it to only list the attributes that are available for that product (for example, it won't show "bust measurement" for skirts).

    I've looked all around for the code to do this. I know it involves changing woocommerce templates, and I'm comfortable with that, but everything I've tried so far hasn't worked.

    Does anyone know what I can use to call the product's attributes (custom taxonomies) and corresponding terms?

    (The site is shoptest.soubrettevintage.com Contact me for the password.)

    https://wordpress.org/plugins/woocommerce/

  2. Thomas Schmall
    Member
    Posted 4 months ago #

    Did you try WordPress's custom fields? It is fairly easy to set them, and then read them out in code. They are specific for the product where you defined them.

    I assume there would then be a filter/hook to change the item's short description accordingly.

Reply

You must log in to post.

About this Plugin

About this Topic