feat: core charge shouldn't be treated as a separate product

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-05-31 15:32:00 +07:00
parent e2ba024761
commit 1a0d183681
8 changed files with 262 additions and 110 deletions

View File

@@ -35,3 +35,21 @@ export const getProductRecommendationsQuery = /* GraphQL */ `
}
${productFragment}
`;
export const getProductVariantQuery = /* GraphQL */ `
query getProductVariant($id: ID!) {
node(id: $id) {
... on ProductVariant {
id
title
selectedOptions {
name
value
}
coreVariantId: metafield(namespace: "custom", key: "coreVariant") {
value
}
}
}
}
`;