Commit a2da8e59 authored by Zac_JH's avatar Zac_JH Committed by rszrama

Issue #2136441 by JorgenSandstrom, Zac_JH: change the way we identify shipping...

Issue #2136441 by JorgenSandstrom, Zac_JH: change the way we identify shipping line items when deleting them from an order in advance of applying them during recalculation.
parent b60c05db
......@@ -1023,7 +1023,7 @@ function commerce_shipping_delete_shipping_line_items($order, $skip_save = FALSE
foreach ($order_wrapper->commerce_line_items as $delta => $line_item_wrapper) {
// If this line item is a shipping line item...
if ($line_item_wrapper->type->value() == 'shipping') {
if ($line_item_wrapper->getBundle() == 'shipping') {
// Store its ID for later deletion and remove the reference from the line
// item reference field.
$line_item_ids[] = $line_item_wrapper->line_item_id->value();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment