category , subcategory, product url changes

This commit is contained in:
2025-09-01 13:13:39 +05:30
parent 7336ad10c4
commit 5168f630b3
14 changed files with 2084 additions and 1856 deletions

View File

@@ -1,22 +1,24 @@
import AddToCardLeftSection from "@/components/products/AddToCardLeftSection";
import AddToCardRightSection from "@/components/products/AddToCardRightSection";
import RelatedProductCards from "@/components/products/RelatedProductCards";
import RelatedVideos from "@/components/products/RelatedVideos";
// import RelatedVideos from "@/components/products/RelatedVideos";
import React from "react";
const page = ({ params }) => {
const slug = params.name;
const productId = slug.split("-").pop();
return (
<div className="min-h-screen bg-white">
<div className="flex gap-3 min-h-screen sm:flex-row flex-col">
<AddToCardLeftSection productId={params.name} />
<AddToCardRightSection productId={params.name}/>
<AddToCardLeftSection productId={productId} />
<AddToCardRightSection productId={productId} />
</div>
<RelatedProductCards productId={params.name}/>
<RelatedProductCards productId={productId} />
{/* <RelatedVideos /> */}
</div>
);
};
export default page;
export default page;