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

Quote Service - product attributes #46

Closed DavidAJohn closed 1 year ago

DavidAJohn commented 1 year ago

The Quote Service class in the Client project doesn't currently add product attributes when getting a quote for a list of basket items.

This will cause a 400 response from the Prodigi Print API for a product where attributes are required - such as canvas prints, where the edge wrap must be specified.

The attributes/options are now being added to the basket state from the PhotoDetails page, so it's just a case of extracting them from the basket items and adding them to each CreateQuoteItemDto object created.