fix(core-flows): use product title for line item title (#12397)
* fix(core-flows): use prduct title for line item title * fix: module tests * fix: http tests * fix: display item subtitle instead of prod title as secondary text in line item * fix: claim/exchange items
This commit is contained in:
1 parent
9d29078b0d
commit
47700899ed
8 files changed
+29
-27
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ function ClaimOutboundItem({
|
||||
)}
|
||||
</div>
|
||||
<Text as="div" className="text-ui-fg-subtle txt-small">
|
||||
{previewItem.product_title}
|
||||
{previewItem.subtitle}
|
||||
</Text>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -137,7 +137,7 @@ function OrderEditItem({ item, currencyCode, orderId }: OrderEditItemProps) {
|
||||
{item.variant_sku && <span>({item.variant_sku})</span>}
|
||||
</div>
|
||||
<Text as="div" className="text-ui-fg-subtle txt-small">
|
||||
{item.product_title}
|
||||
{item.subtitle}
|
||||
</Text>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ function ExchangeOutboundItem({
|
||||
)}
|
||||
</div>
|
||||
<Text as="div" className="text-ui-fg-subtle txt-small">
|
||||
{previewItem.product_title}
|
||||
{previewItem.subtitle}
|
||||
</Text>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -127,8 +127,8 @@ export function prepareLineItemData(data: PrepareLineItemDataInput) {
|
||||
|
||||
let lineItem: any = {
|
||||
quantity: item?.quantity,
|
||||
title: variant?.title ?? item?.title,
|
||||
subtitle: variant?.product?.title ?? item?.subtitle,
|
||||
title: variant?.product?.title ?? item?.title,
|
||||
subtitle: variant?.title ?? item?.subtitle,
|
||||
thumbnail: variant?.product?.thumbnail ?? item?.thumbnail,
|
||||
|
||||
product_id: variant?.product?.id ?? item?.product_id,
|
||||
|
||||
Reference in new issue
Block a user