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

USER STORY: Sort Products #27

Open
9 tasks done
MoniPar opened this issue May 3, 2023 · 1 comment
Open
9 tasks done

USER STORY: Sort Products #27

MoniPar opened this issue May 3, 2023 · 1 comment
Labels
5 Story points Should Have Add significant value but not vital

Comments

@MoniPar
Copy link
Owner

MoniPar commented May 3, 2023

As a Customer, I can sort the list of available products, so that I can easily identify the best rated and best priced categorically sorted products.

Acceptance Criteria

  1. User can sort all products as well as categories of products.
  2. User can sort products by price.
  3. User can sort products by rating.
  4. User can sort products by name.
  5. User can sort products by theme.
  6. User can sort all products by category.
  7. User can sort products by availability.

Tasks

  • Add the sort and direction get parameters to the template
  • Modify the shop view to handle the new get parameters - Check whether 'sort' is in request.GET
  • Set it equal to 'sort' and 'sortkey' and rename the latter to 'lower_name' to preserve 'name'
  • Annotate the current list of products with a new field and check which direction
  • Sort the products using the order_by method and return the sorting methodology to the context
  • Add and link the category to each product card in the shop and product_detail templates
  • Use Bootstrap badges for category links
  • Add the sort select box, the product count and search results
  • Use JavaScript to add interactivity with the sort select box
@MoniPar MoniPar added 5 Story points Should Have Add significant value but not vital labels May 3, 2023
@MoniPar MoniPar added this to the Product Viewing and Navigation milestone May 3, 2023
@MoniPar MoniPar moved this to Todo in Ecommerce Kanban May 4, 2023
@MoniPar MoniPar moved this from Todo to In Progress in Ecommerce Kanban May 7, 2023
@MoniPar
Copy link
Owner Author

MoniPar commented May 8, 2023

Testing sorting by rating descending: One new test product is displayed first with 'No rating'. This should be at the end with the rest of the not rated products. Refer to Bug #28

@MoniPar MoniPar moved this from In Progress to Done in Ecommerce Kanban May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 Story points Should Have Add significant value but not vital
Projects
Status: Done
Development

No branches or pull requests

1 participant