[FEATURE] Link back to product from Mini-Cart and Cart-Page
Description
Currently, we do not have any link from the line item in the mini-cart or cart page back to the product page.
Use Case
Improve the usability for the user.
Proposed Solution
With the referencedId we already know the corresponding productId but we do not know the nice speaking URL for that product. So how do we solve this without additional requests? Is this possible? I could imagine that we use the payload of the line item during the add item to the cart action/event.
Alternatives Considered
Consider moving the function into a reusable composable.
Additional Context
The solution needed for the demo-store template.
@patzick, can I get more insights on this. I have attached the ss below. Please lemme know if this is correct
hey @khanSoliheen!
This is more about making products inside a mini cart to be linked back to the product page. In your screenshot example - clicking on the title LAVENDA Product Variants should redirect to that specific product page :)
@patzick , please confirm, it should navigate to https://frontends-demo.vercel.app/detail/312ac88a559e4ab384a284321da7a25b when we click on LAVENDA Product Variants title. Once navigated it should close the shopping cart drawer as well. Am I right? Thanks.
@khanSoliheen Yes, that would be the correct behaviour! :)
@patzick , It is done. You can find the PR here