blablageeks / open-shop

A simple open-source project using HTML, CSS, and Alpine.js to manage dummy ecommerce products.
MIT License
0 stars 3 forks source link

Add product search an filtering system #3

Open denisakp opened 5 months ago

denisakp commented 5 months ago

Is your feature request related to a problem? Please describe

As the number of products on our platform increases, it becomes increasingly difficult for users to find specific products they are looking for. Currently, users have to manually browse through a long list of products, which can be time-consuming and inefficient.

Describe the solution you'd like

We need a comprehensive search and filtering system. This system would include a search form where users can enter a product name and a filtering form where users can filter products by price range, likes count range, and categories. Products may belong to none, one, or multiple categories.

Use Case and Benefits

Potential Challenges

Implementing a search and filtering system may require significant hack into the product.js file to handle complex queries efficiently. Additionally, ensuring that the UI remains intuitive and user-friendly while adding these new features can be challenging. There might also be a need for database optimization to handle increased query loads effectively.

Suggested Implementation

The search functionality could be implemented using native vanilla JavaScript. For filtering, we still need to add more hacks to our product.js file to support dynamic queries based on user-selected criteria. The HTML part can include a dedicated search bar and drop down menus or sliders for filtering criteria such as price range, likes count, and categories.

Impact on Existing Features

This feature should integrate seamlessly with existing features.

Describe alternatives you've considered

An alternative would be to use a simpler search system without extensive filtering capabilities. However, this does not entirely meet the expectations of our users, who require more detailed search capabilities to easily browse our growing store catalog.

Additional context

N/A

Abhishekb3666 commented 5 months ago

I would like to work on the issue, may i fork the repo

denisakp commented 5 months ago

I would like to work on the issue, may i fork the repo

Absolutely @Abhishekb3666 , feel free to fork the repo and start working on the issue! I appreciate your initiative and am looking forward to seeing your contributions. If you need any guidance or have any questions as you go along, please don't hesitate to ask. Happy coding!