diff --git a/packages/core/core-flows/src/cart/utils/fields.ts b/packages/core/core-flows/src/cart/utils/fields.ts index bb804db7f76a6..e02909074d072 100644 --- a/packages/core/core-flows/src/cart/utils/fields.ts +++ b/packages/core/core-flows/src/cart/utils/fields.ts @@ -108,8 +108,8 @@ export const productVariantsFields = [ "product.description", "product.subtitle", "product.thumbnail", - "product.type", - "product.collection", + "product.type.value", + "product.collection.title", "product.handle", "product.discountable", "calculated_price.calculated_amount", diff --git a/packages/core/core-flows/src/cart/utils/prepare-line-item-data.ts b/packages/core/core-flows/src/cart/utils/prepare-line-item-data.ts index 291d8bbfc515f..a31e85279ee48 100644 --- a/packages/core/core-flows/src/cart/utils/prepare-line-item-data.ts +++ b/packages/core/core-flows/src/cart/utils/prepare-line-item-data.ts @@ -46,12 +46,9 @@ export function prepareLineItemData(data: Input) { product_description: variant.product.description ?? item?.product_description, product_subtitle: variant.product.subtitle ?? item?.product_subtitle, - product_type: - variant.product.type?.[0]?.value ?? item?.product_type ?? null, + product_type: variant.product.type?.value ?? item?.product_type ?? null, product_collection: - variant.product.collection?.[0]?.value ?? - item?.product_collection ?? - null, + variant.product.collection?.title ?? item?.product_collection ?? null, product_handle: variant.product.handle ?? item?.product_handle, variant_id: variant.id, diff --git a/packages/core/core-flows/src/order/utils/fields.ts b/packages/core/core-flows/src/order/utils/fields.ts index 5dfdc29b1743e..42f1e3a3a841b 100644 --- a/packages/core/core-flows/src/order/utils/fields.ts +++ b/packages/core/core-flows/src/order/utils/fields.ts @@ -10,8 +10,8 @@ export const productVariantsFields = [ "product.description", "product.subtitle", "product.thumbnail", - "product.type", - "product.collection", + "product.type.value", + "product.collection.title", "product.handle", "calculated_price.calculated_amount", "inventory_items.inventory_item_id",