From a11287d4ad9431ba8f1e694a006ea7967e07208b Mon Sep 17 00:00:00 2001 From: Chloe Date: Mon, 17 Jun 2024 11:04:43 +0700 Subject: [PATCH] fix: update PDP layout Signed-off-by: Chloe --- app/product/[handle]/page.tsx | 14 ++- components/cart/add-to-cart.tsx | 2 +- components/price.tsx | 5 +- components/product/core-charge.tsx | 4 +- components/product/delivery.tsx | 114 +++++++++++++++++++++ components/product/price-summary.tsx | 73 +++++++++++++ components/product/product-description.tsx | 15 ++- components/product/product-details.tsx | 51 +++++++++ components/product/special-offer.tsx | 85 +++++++++++---- components/product/vairant-details.tsx | 19 ++-- lib/constants.ts | 2 + lib/shopify/fragments/product.ts | 15 +++ lib/shopify/index.ts | 15 ++- lib/shopify/types.ts | 22 +++- 14 files changed, 390 insertions(+), 46 deletions(-) create mode 100644 components/product/delivery.tsx create mode 100644 components/product/price-summary.tsx create mode 100644 components/product/product-details.tsx diff --git a/app/product/[handle]/page.tsx b/app/product/[handle]/page.tsx index 8a9ef69b5..b162cb0c1 100644 --- a/app/product/[handle]/page.tsx +++ b/app/product/[handle]/page.tsx @@ -85,8 +85,12 @@ export default async function ProductPage({ params }: { params: { handle: string
-
+
+ +
+ +
@@ -100,18 +104,12 @@ export default async function ProductPage({ params }: { params: { handle: string />
- -
- -
- -