includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 581-587 (lines=7) @@
|
| 578 |
|
$packages[0]['destination']['postcode'] = $postcode; |
| 579 |
|
$packages[0]['destination']['city'] = $city; |
| 580 |
|
|
| 581 |
|
foreach ( WC()->cart->get_cart() as $item ) { |
| 582 |
|
if ( $item['data']->needs_shipping() ) { |
| 583 |
|
if ( isset( $item['line_total'] ) ) { |
| 584 |
|
$packages[0]['contents_cost'] += $item['line_total']; |
| 585 |
|
} |
| 586 |
|
} |
| 587 |
|
} |
| 588 |
|
|
| 589 |
|
$packages = apply_filters( 'woocommerce_cart_shipping_packages', $packages ); |
| 590 |
|
|
includes/class-wc-stripe-payment-request.php 1 location
|
@@ 198-204 (lines=7) @@
|
| 195 |
|
$packages[0]['destination']['address'] = $address_1; |
| 196 |
|
$packages[0]['destination']['address_2'] = $address_2; |
| 197 |
|
|
| 198 |
|
foreach ( WC()->cart->get_cart() as $item ) { |
| 199 |
|
if ( $item['data']->needs_shipping() ) { |
| 200 |
|
if ( isset( $item['line_total'] ) ) { |
| 201 |
|
$packages[0]['contents_cost'] += $item['line_total']; |
| 202 |
|
} |
| 203 |
|
} |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
$packages = apply_filters( 'woocommerce_cart_shipping_packages', $packages ); |
| 207 |
|
|