dreamingmind / bindery

CakePHP 1.3 Based Dreaming Mind Bindery Site
2 stars 2 forks source link

Handling quantity in Cart records #244

Closed dreamingmind closed 9 years ago

dreamingmind commented 9 years ago

Both the CartItem (OrderItem) record and the attached Supplement contain quantity data. This leaves the question open:

How will updateQuantity() requests be handled for Cart items? The options are:

  1. Each concrete utility works to keep both values updated
  2. The Supplement data is only for cart item creation, then its value is ignored and only the cart item record is kept up to date
  3. The Supplement datum is delete after cart item creation to avoid confusion and only the cart item record is kept up to date

One important factor to consider - Supplement data is the basis for the Edit Cart Item feature. The data stored there will repopulate the form and the form will have an input for quantity.