mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
feat: add activate warranty to order details page
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import customerAddress from './customer-address';
|
||||
import orderCard from './order-card';
|
||||
import orderCard from './order';
|
||||
|
||||
const customerDetailsFragment = /* GraphQL */ `
|
||||
${customerAddress}
|
||||
|
@@ -28,4 +28,19 @@ const orderCard = /* GraphQL */ `
|
||||
${lineItemFragment}
|
||||
`;
|
||||
|
||||
export const orderMetafields = /* GraphQL */ `
|
||||
fragment OrderMetafield on Order {
|
||||
id
|
||||
warrantyStatus: metafield(namespace: "custom", key: "warranty_status") {
|
||||
value
|
||||
}
|
||||
warrantyActivationDeadline: metafield(
|
||||
namespace: "custom"
|
||||
key: "warranty_activation_deadline"
|
||||
) {
|
||||
value
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default orderCard;
|
Reference in New Issue
Block a user