You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a product has no variations and you add it to the cart, it has no link (slug) available on CartSidebar.
Expected behavior
All products, regardless of not having variations, should have a link to their detail page.
Current behavior
This is a screenshot of the items property that comes from the useCart hook:
As you can see, the product with variations comes with differents slugs for each variation, but the product that doesn't have variations, it doesn't have a slug in the object.
Additional context
Add any other context, screenshots, or comments about the problem.
The text was updated successfully, but these errors were encountered:
In the useCart hook, we should have access to either the Link or linkText along with the product itself. This will give us the flexibility that allows us to utilize slugs if the product has variants. Otherwise, we can use the default product link.
Describe the bug
Expected behavior
Current behavior
This is a screenshot of the items property that comes from the useCart hook:
As you can see, the product with variations comes with differents slugs for each variation, but the product that doesn't have variations, it doesn't have a slug in the object.
Additional context
Add any other context, screenshots, or comments about the problem.
The text was updated successfully, but these errors were encountered: