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

@@ -14,7 +14,8 @@ const cleanHTML = (html) => {
const CategoryHero = ({ params }) => {
const { category } = useContext(ProductContext);
const selectedCategory = category?.find((cat) => cat.id == params.id);
const selectedCategory = category?.find((cat) => cat.category_name.toLowerCase() ===
decodeURIComponent(params.name).toLowerCase());
console.log(selectedCategory);