Skip to content

Commit 72a81a4

Browse files
wjrosadiegocurbelo
andauthored
Fix coupon usage and shipping amount for ECE shortcode checkout (#3494)
* Fix coupon usage and shipping amount for ECE shortcode checkout * Changelog and readme entries --------- Co-authored-by: Diego Curbelo <[email protected]>
1 parent d7d3127 commit 72a81a4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 8.8.0 - xxxx-xx-xx =
4+
* Fix - Fix the usage of coupons and the total shipping amount when using the Express Checkout Element on the shortcode checkout.
45
* Fix - Fixes some JS console errors when making a purchase with the Stripe Express Checkout Element on the shortcode checkout.
56
* Fix - Updates the display logic for the OAuth re-connect promotional surface to follow the latest changes made to the connection settings object.
67
* Fix - Remove unexpected HTML in error message for shortcode checkout.

includes/payment-methods/class-wc-stripe-express-checkout-helper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,13 +1164,15 @@ public function build_display_items( $itemized_display_items = false ) {
11641164

11651165
if ( WC()->cart->needs_shipping() ) {
11661166
$items[] = [
1167+
'key' => 'total_shipping',
11671168
'label' => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
11681169
'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
11691170
];
11701171
}
11711172

11721173
if ( WC()->cart->has_discount() ) {
11731174
$items[] = [
1175+
'key' => 'total_discount',
11741176
'label' => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
11751177
'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
11761178
];

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ If you get stuck, you can ask for help in the Plugin Forum.
129129
== Changelog ==
130130

131131
= 8.8.0 - xxxx-xx-xx =
132+
* Fix - Fix the usage of coupons and the total shipping amount when using the Express Checkout Element on the shortcode checkout.
132133
* Fix - Fixes some JS console errors when making a purchase with the Stripe Express Checkout Element on the shortcode checkout.
133134
* Fix - Updates the display logic for the OAuth re-connect promotional surface to follow the latest changes made to the connection settings object.
134135
* Fix - Remove unexpected HTML in error message for shortcode checkout.

0 commit comments

Comments
 (0)