SHANKARA-CODERS / NestONDC

https://e-commerce-website-rho-six.vercel.app
0 stars 5 forks source link

Problem with Routing Path #17

Closed MAVRICK-1 closed 8 months ago

MAVRICK-1 commented 8 months ago

Describe the bug There is an issue with the routing path. Currently, when products are listed, the path appears as '/cat/groceries/dal-and-pulses', which corresponds to the category of the product. However, when clicking on an item, the routing changes to 'product/2', which leads to the wrong page.

Our main objective is to update the routing path to '/cat/groceries/dal-and-pulses/1', where '1' represents the product ID of 'dal-and-pulses'. This change is crucial because it allows us to easily track new products through their cart_item and ID when they are added to the system.

Screenshot 2024-02-05 184750 Screenshot 2024-02-05 184904

So make the changes accordingly https://github.com/SHANKARA-CODERS/e-commerce_website/blob/main/src/pages/Details/index.js This dynamic routing created in the above file

change the useParams according https://github.com/SHANKARA-CODERS/e-commerce_website/blob/main/src/pages/Details/index.js#L65C30

make changes to rectify it and also add the sufficient screenshots

This is bug must be resloved

MAVRICK-1 commented 8 months ago

@RickDeb2004 this must be solved our frontent is almost complete this is buggest bug .

MAVRICK-1 commented 8 months ago

@RickDeb2004 code base maay kuc change hoga then you can update and start

MAVRICK-1 commented 8 months ago

@RickDeb2004 aj ei complete kar Dena

RickDeb2004 commented 8 months ago

are you sure we have to change this file only?

MAVRICK-1 commented 8 months ago

We have to change the Details page. Coz in previous dataset every category items has a unique ID But In new dataset only the subcategory products has unique ID

MAVRICK-1 commented 8 months ago

@RickDeb2004 If u can solve it go head or we have to switch to previous dataset coz their is not enough time

MAVRICK-1 commented 8 months ago

closed by #21