Skip to content

Commit

Permalink
Merge pull request woocommerce#12646 from franticpsyx/add-shipping-pa…
Browse files Browse the repository at this point in the history
…ckage-details-filter

Missing commit in woocommerce#12632 - index package item names by cart item id
  • Loading branch information
mikejolley authored Dec 19, 2016
2 parents 9617030 + 62ed6ee commit 81f4cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wc-cart-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function wc_cart_totals_shipping_html() {

if ( sizeof( $packages ) > 1 ) {
foreach ( $package['contents'] as $item_id => $values ) {
$product_names[] = $values['data']->get_name() . ' ×' . $values['quantity'];
$product_names[ $item_id ] = $values['data']->get_name() . ' ×' . $values['quantity'];
}
$product_names = apply_filters( 'woocommerce_shipping_package_details_array', $product_names, $package );
}
Expand Down

0 comments on commit 81f4cad

Please sign in to comment.