Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCP-1082: Category List View, OCP-1055: [WIP] Order Confirmation Page, OCP-1043: Breadcrumbs, OCP-1050: show SalePrice in Product Detail #38

Open
wants to merge 13 commits into
base: development
Choose a base branch
from

Conversation

esitarz
Copy link
Contributor

@esitarz esitarz commented Sep 11, 2024

OCP-1082: Category Accordion View
OCP-1055: [WIP] Order Confirmation Page
OCP-1043: Breadcrumbs
OCP-1050: show SalePrice in Product Detail and Product Card


return partials.map((partial, index) => {
const partialPath = `/${partials.slice(0, index + 1).join("/")}${
partial === "orders" ? "/incoming" : ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments on breadcrumbs:

  1. we can get rid of the order direction logic from admin here
  2. can we format category names to display a little nicer? (e.g. dog-beds --> Dog Beds)
  3. We'll have to rethink either the routing conventions or the breadcrumb solution because the Shop and {category} breadcrumbs are routing to 404 pages

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about Shop routes to /products and {catalog} routes to /shop/{catalog}/products?

probably best done by refactoring our routes.tsx to use the "official" breadcrumb solution?
https://reactrouter.com/en/main/hooks/use-matches#breadcrumbs

@esitarz esitarz requested a review from robertsoniv September 13, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants