Skip to content

Commit 38eaede

Browse files
rename variable
1 parent 64495f6 commit 38eaede

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/template-retail-react-app/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Integrate Order Details page to display orders data from OMS [#3573](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3573)
66
- Integrate Order History page to display data from OMS [#3581](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3581)
77
- Add shipping display support for OMS [#3588](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3588)
8+
- BOPIS multishipment with OMS [#3613] (https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3613)
89

910
## v8.3.0 (Dec 17, 2025)
1011
- [Bugfix] Fix Forgot Password link not working from Account Profile password update form [#3493](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3493)

packages/template-retail-react-app/app/pages/account/order-detail.jsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const AccountOrderDetail = () => {
138138
const isOmsOrder = useMemo(() => !!order?.omsData, [order?.omsData])
139139

140140
// Check if order is OMS multi-shipment order
141-
const isOmsMultiShipment = useMemo(
141+
const isMultiShipmentOrder = useMemo(
142142
() =>
143143
isOmsOrder &&
144144
((order?.omsData?.shipments?.length ?? 0) > 1 || (order?.shipments?.length ?? 0) > 1),
@@ -397,8 +397,8 @@ const AccountOrderDetail = () => {
397397
</Stack>
398398
)
399399
})}
400-
{/* Delivery Shipments */}
401-
{!isOmsMultiShipment &&
400+
{/* Any type of Non-OMS or any type of single shipment order: show DeliveryMethods and Shipments info*/}
401+
{(!isOmsOrder || !isMultiShipmentOrder) &&
402402
deliveryShipments.map((shipment, index) => {
403403
const omsShipment = isOmsOrder
404404
? order.omsData.shipments?.[index]
@@ -458,8 +458,9 @@ const AccountOrderDetail = () => {
458458
)
459459
})}
460460

461-
{/* OMS multi-shipment: show OMS shipment info only;*/}
462-
{isOmsMultiShipment &&
461+
{/* Any OMS multi-shipment: Only show OMS Shipments info;*/}
462+
{isOmsOrder &&
463+
isMultiShipmentOrder &&
463464
order?.omsData?.shipments?.map((shipment, index) => (
464465
<React.Fragment key={`oms-shipment-${index}`}>
465466
{renderShippingMethod(

0 commit comments

Comments
 (0)