mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
feat: add activate warranty form
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
25
lib/shopify/fragments/line-item.ts
Normal file
25
lib/shopify/fragments/line-item.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
const lineItemFragment = /* GraphQL */ `
|
||||
fragment LineItem on LineItem {
|
||||
title
|
||||
image {
|
||||
altText
|
||||
height
|
||||
url
|
||||
width
|
||||
}
|
||||
price {
|
||||
amount
|
||||
currencyCode
|
||||
}
|
||||
quantity
|
||||
sku
|
||||
totalPrice {
|
||||
amount
|
||||
currencyCode
|
||||
}
|
||||
variantTitle
|
||||
id
|
||||
}
|
||||
`;
|
||||
|
||||
export default lineItemFragment;
|
@@ -1,9 +1,12 @@
|
||||
import lineItemFragment from './line-item';
|
||||
|
||||
const orderCard = /* GraphQL */ `
|
||||
fragment OrderCard on Order {
|
||||
id
|
||||
number
|
||||
name
|
||||
processedAt
|
||||
createdAt
|
||||
financialStatus
|
||||
fulfillments(first: 1) {
|
||||
edges {
|
||||
@@ -17,20 +20,12 @@ const orderCard = /* GraphQL */ `
|
||||
currencyCode
|
||||
}
|
||||
lineItems(first: 20) {
|
||||
edges {
|
||||
node {
|
||||
title
|
||||
quantity
|
||||
image {
|
||||
altText
|
||||
height
|
||||
url
|
||||
width
|
||||
}
|
||||
}
|
||||
nodes {
|
||||
...LineItem
|
||||
}
|
||||
}
|
||||
}
|
||||
${lineItemFragment}
|
||||
`;
|
||||
|
||||
export default orderCard;
|
||||
|
Reference in New Issue
Block a user