How to dynamically create a page with firebase and javascript?


I’m working on a e-commerce website for my diploma project. I don’t know how to implement such functionality: The user selects a subcategory => a list of products is displayed based on data from Firestore => the user selects a product from the list => the product page is displayed. I can’t figure out how to generate the list of products based on the selected subcategory. So, when the user selects the subcategory ‘graphics cards,’ there should be a transition to a page that displays a list of all products with the subcategory ‘graphics cards.’ How can I achieve this in the simplest way possible?

I didn’t tried anything.I’m aware of http request, but honestly i really don’t know how to utilize that and if that’s a optimal way of resolving that problem.



Source link

Leave a Comment