From 32331b95eeb964af413ac25b852532b7a34926ea Mon Sep 17 00:00:00 2001 From: Josh Heald Date: Fri, 4 Jul 2025 15:45:01 +0100 Subject: [PATCH 1/2] Start a new cart when scanning on success screen --- .../Reader Messages/PointOfSalePaymentSuccessView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift index 7b0893d3a0e..c297644add8 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift @@ -4,6 +4,7 @@ import SwiftUI struct PointOfSalePaymentSuccessView: View { let viewModel: PointOfSalePaymentSuccessViewModel @Environment(\.dynamicTypeSize) var dynamicTypeSize + @Environment(PointOfSaleAggregateModel.self) private var posModel @State private var isShowingSendReceiptView: Bool = false @State private var isShowingReceiptNotEligibleBanner: Bool = false @@ -24,6 +25,10 @@ struct PointOfSalePaymentSuccessView: View { } .padding([.leading, .trailing], dynamicTypeSize.isAccessibilitySize ? nil : POSPadding.small) .background(Color.posSurfaceBright) + .barcodeScanning { barcode in + posModel.startNewCart() + posModel.barcodeScanned(barcode) + } } } .onAppear { From 3c04fc1601a5fcbeceef2d34986cffab7502705c Mon Sep 17 00:00:00 2001 From: Josh Heald Date: Fri, 4 Jul 2025 15:52:56 +0100 Subject: [PATCH 2/2] Add scan to start a new cart to 22.8 release notes --- RELEASE-NOTES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index ba93be880e6..2218c2326d2 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -7,6 +7,7 @@ - [*] POS: icon button with confirmation step used for clearing the cart [https://github.com/woocommerce/woocommerce-ios/pull/15829] - [*] Shipping Labels: Fixed a portion of layout issues caused by bigger accessibility content size categories. [https://github.com/woocommerce/woocommerce-ios/pull/15844] - [*] Shipping Labels: Enable the confirm button on the payment method sheet even when there are no changes. [https://github.com/woocommerce/woocommerce-ios/pull/15856] +- [*] POS: start a new cart by scanning a barcode on the payment success screen [https://github.com/woocommerce/woocommerce-ios/pull/15870] 22.7 -----