feat: add metafields to variant options

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-05-03 12:28:37 +07:00
parent 2ad07c3682
commit e0cd6ac2bd
4 changed files with 152 additions and 122 deletions

View File

@@ -55,6 +55,15 @@ const productFragment = /* GraphQL */ `
coreVariantId: metafield(namespace: "custom", key: "coreVariant") {
value
}
estimatedDelivery: metafield(namespace: "custom", key: "delivery") {
value
}
mileage: metafield(namespace: "custom", key: "mileage") {
value
}
condition: metafield(namespace: "custom", key: "condition") {
value
}
}
}
}