DavidAJohn / PhotoPortfolio

Personal photo portfolio .NET web application which implements a Blazor and Tailwind CSS user interface with a MongoDb database, and includes integration with Stripe Checkout and Prodigi Print API
0 stars 0 forks source link

Basket Dropdown & product options #59

Closed DavidAJohn closed 11 months ago

DavidAJohn commented 11 months ago

If multiple products are added to the basket, product options are appearing next to each one, even if a particular product doesn't have any.

As an example, I added a fine art print, then an eco-canvas with the Mirror Wrap option.

The basket dropdown displayed both of them with a product option of Mirror Wrap, when the fine art print shouldn't display anything.

I had just changed the PhotoDetails page (fab066a8f9297348ba12ca9b57042d6d7e6c90ad) to remove the need for the options to be stored in session storage, so perhaps the problem is related to that and I've missed something.

It's just going to need debugging to try to find out if the PhotoDetails page is adding options to the new selectedProductOptions variable incorrectly, or if the BasketDropdown is doing something unexpected when iterating over each item.