frontends icon indicating copy to clipboard operation
frontends copied to clipboard

[FEATURE] Link back to product from Mini-Cart and Cart-Page

Open BrocksiNet opened this issue 1 year ago • 5 comments

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.

BrocksiNet avatar Feb 02 '24 08:02 BrocksiNet

@patzick, can I get more insights on this. I have attached the ss below. Please lemme know if this is correct Screenshot 2024-04-21 at 18 09 02

khanSoliheen avatar Apr 21 '24 12:04 khanSoliheen

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 avatar May 06 '24 08:05 patzick

@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 avatar May 28 '24 16:05 khanSoliheen

@khanSoliheen Yes, that would be the correct behaviour! :)

patzick avatar Jun 03 '24 14:06 patzick

@patzick , It is done. You can find the PR here

khanSoliheen avatar Jun 05 '24 23:06 khanSoliheen