includes/class-wc-stripe-payment-request.php 1 location
|
@@ 180-186 (lines=7) @@
|
| 177 |
|
$packages[0]['destination']['address'] = $address_1; |
| 178 |
|
$packages[0]['destination']['address_2'] = $address_2; |
| 179 |
|
|
| 180 |
|
foreach ( WC()->cart->get_cart() as $item ) { |
| 181 |
|
if ( $item['data']->needs_shipping() ) { |
| 182 |
|
if ( isset( $item['line_total'] ) ) { |
| 183 |
|
$packages[0]['contents_cost'] += $item['line_total']; |
| 184 |
|
} |
| 185 |
|
} |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
$packages = apply_filters( 'woocommerce_cart_shipping_packages', $packages ); |
| 189 |
|
|
includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 513-519 (lines=7) @@
|
| 510 |
|
$packages[0]['destination']['postcode'] = $postcode; |
| 511 |
|
$packages[0]['destination']['city'] = $city; |
| 512 |
|
|
| 513 |
|
foreach ( WC()->cart->get_cart() as $item ) { |
| 514 |
|
if ( $item['data']->needs_shipping() ) { |
| 515 |
|
if ( isset( $item['line_total'] ) ) { |
| 516 |
|
$packages[0]['contents_cost'] += $item['line_total']; |
| 517 |
|
} |
| 518 |
|
} |
| 519 |
|
} |
| 520 |
|
|
| 521 |
|
$packages = apply_filters( 'woocommerce_cart_shipping_packages', $packages ); |
| 522 |
|
|