• titsmaker

    (@titsmaker)


    While searching for some stuff in database I found that post_content stored in wp_posts table for product_variation post_type is not used as variation description on frontend instead meta_value of meta_key _variation_description from wp_postmeta table is used instead. This raises a couple of questions:
    – what’s the logic behind this?
    – is there any place where post_content of variations is used. It looks like whatever I enter into this field it’s not used anywhere?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 3 Sons Development

    (@3sonsdevelopment)

    Hey @titsmaker,

    With a WooCommerce product, the post_content is the main content area’s text. In the editor, that would be the large text area just below the title.

    Variable products have a short description option, but they aren’t given an input for entering in post_content for each of them. The post_content would be considered what’s entered for the parent product. The idea is the main product description applies to all variations and the short description gives a bit of extra content for each variation if it’s required.

    Does that make sense?

    Thread Starter titsmaker

    (@titsmaker)

    But there’s a post_excerpt in wp_posts for storing short description?
    I just don’t get the need to use extra table joins in queries while these fields are epmty in wp_posts.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Why variation description is stored in postmeta table?’ is closed to new replies.