Klaviyo Site Banner | Q4 2025

Product Icon

Product Add-Ons for WooCommerce

Trending
Offer add-ons like gift wrapping, special messages or other special options for your products.

Show add-ons in shipping line items

In shipping line items (display_meta, where “Items:” is shown), like in Edit Orders or certain emails, only product and variation are shown. It would be useful to show add-ons as well.

For example, if the product is a box, and the variation is the size of the box, and the add-ons are the colors that go into that box. When doing multiple shipping, it’s important to know which add-ons go with which shipment.

Author

eja2025

Current Status

Open

Last updated: October 31, 2025

1 comment

Log in to comment on this feature request.

  1. eja2025 says:

    In abstract-wc-shipping-method.php:add_rate(), we changed this line:

    $items_in_package[] = $product->get_name() . ‘ × ‘ . $item[‘quantity’];

    to these lines:

    $item_line = $product->get_name() . ‘ × ‘ . $item[‘quantity’];
    if ( is_array($item[‘addons’]) ) {
    $item_line .= ‘ ;’;
    foreach ( $item[‘addons’] as $addon ) {
    $item_line .= ‘ ‘ . $addon[‘name’] . ‘: ‘ . $addon[‘value’] . ‘ ;’;
    }
    }
    $items_in_package[] = $item_line;

    And in the multiple shipping plugin that we’re using, we did str_replace(‘ ;’, ”, …) in order to format it nicer. (The multiple shipping plugin was also stripping off package[‘addons’] before some calls to add_rate() were done, so we had to make sure that was preserved. This was in addition to patching another plugin that was stripping package from the rate completely.)