1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Show child products in parent product meta
  1. Home
  2. Knowledge Base
  3. Products Fields
  4. Show child products in parent product meta
  1. Home
  2. Knowledge Base
  3. Cart
  4. Show child products in parent product meta
  1. Home
  2. Knowledge Base
  3. Orders
  4. Show child products in parent product meta

Show child products in parent product meta

When you receive an order, you might want to show the child products as meta within the parent product. This can help you link child products and parent products.

To do so, just add this snippet, which uses the pewc_display_child_product_meta filter:

<?php
/**
* Display child products in parent product line item
*/
add_filter( 'pewc_display_child_product_meta', '__return_true' );

Here’s how to add a snippet.

Was this article helpful?

Related Articles