feat: adding more information warranty, part number, sku, speciall offers

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-04-25 14:14:20 +07:00
parent e3f564ca77
commit 59c3f07beb
14 changed files with 215 additions and 85 deletions

View File

@@ -193,12 +193,12 @@ const reshapeProduct = (product: ShopifyProduct, filterHiddenProducts: boolean =
return undefined;
}
const { images, variants, ...rest } = product;
const { images, variants, productType, ...rest } = product;
return {
...rest,
images: reshapeImages(images, product.title),
variants: reshapeVariants(removeEdgesAndNodes(variants))
variants: reshapeVariants(removeEdgesAndNodes(variants)),
productType: productType?.value ?? null
};
};