DarrachBarneveld / ci-swag

Project 5 for Code Institute - Diploma in Full Stack Software Development (E-commerce Applications)
0 stars 2 forks source link

Bug: Adding Generic Items To Cart #59

Closed DarrachBarneveld closed 8 months ago

DarrachBarneveld commented 8 months ago

Bug Description

  1. Error handling adding different item types to cart due to different properties

Steps to reproduce

  1. Add product to cart, works as expected
  2. Add program to cart, crashes on checkout due to order content type
  3. Add subscription to cart, crashes on checkout due to order content type

Desired result Users can add 3 different types of items to cart and the order line item will associated based on instance

DarrachBarneveld commented 8 months ago

Use of generic keys on content objects and handling of instances allows for multiple model types on orderlineitem model