parent
2019cdf108
commit
3ca95317fc
|
@ -272,8 +272,9 @@ class WC_Gateway_Paypal_Request {
|
|||
$calculated_total += $item_line_total;
|
||||
} else {
|
||||
$product = $order->get_product_from_item( $item );
|
||||
$sku = $product ? $product->get_sku() : '';
|
||||
$item_line_total = $this->number_format( $order->get_item_subtotal( $item, false ), $order );
|
||||
$line_item = $this->add_line_item( $this->get_order_item_name( $order, $item ), $item['qty'], $item_line_total, $product->get_sku() );
|
||||
$line_item = $this->add_line_item( $this->get_order_item_name( $order, $item ), $item['qty'], $item_line_total, $sku );
|
||||
$calculated_total += $item_line_total * $item['qty'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue