Merge remote-tracking branch 'origin' into CPP-153

This commit is contained in:
tedraykov
2024-06-20 14:52:30 +03:00
39 changed files with 1035 additions and 149 deletions

View File

@@ -1,9 +1,13 @@
import productFragment from './product';
import imageFragment from './image';
const cartFragment = /* GraphQL */ `
fragment cart on Cart {
id
checkoutUrl
attributes {
key
value
}
cost {
subtotalAmount {
amount
@@ -38,11 +42,22 @@ const cartFragment = /* GraphQL */ `
value
}
product {
...product
featuredImage {
...image
}
handle
title
productType
}
coreVariantId: metafield(key: "coreVariant", namespace: "custom") {
value
}
addOnQuantity: metafield(namespace: "custom", key: "add_on_quantity") {
value
}
addOnProductId: metafield(namespace: "custom", key: "add_on") {
value
}
}
}
}
@@ -50,7 +65,7 @@ const cartFragment = /* GraphQL */ `
}
totalQuantity
}
${productFragment}
${imageFragment}
`;
export default cartFragment;

View File

@@ -64,6 +64,12 @@ const productFragment = /* GraphQL */ `
condition: metafield(namespace: "custom", key: "condition") {
value
}
addOnQuantity: metafield(namespace: "custom", key: "add_on_quantity") {
value
}
addOnProductId: metafield(namespace: "custom", key: "add_on") {
value
}
}
}
}
@@ -76,6 +82,21 @@ const productFragment = /* GraphQL */ `
fuelType: metafield(namespace: "custom", key: "fuel") {
value
}
transmissionType: metafield(namespace: "custom", key: "transmission_type") {
value
}
transmissionSpeeds: metafield(namespace: "custom", key: "transmission_speeds") {
value
}
driveType: metafield(namespace: "custom", key: "drive_type") {
value
}
transmissionCode: metafield(namespace: "custom", key: "transmission_code") {
value
}
transmissionTag: metafield(namespace: "custom", key: "transmission_tag") {
value
}
images(first: 20) {
edges {
node {