silvershop / silvershop-core

SilverShop is an e-commerce shopping cart module for the SilverStripe CMS
http://silvershop.github.io
BSD 2-Clause "Simplified" License
113 stars 119 forks source link

Order item validation #90

Open jedateach opened 12 years ago

jedateach commented 12 years ago

It is easy to get items in the cart which shouldn't be in there.

When should items be validated

What should happen to invalid items

Examples

bummzack commented 8 years ago

There are several flaws with how the Shopping-Cart and Order-Items are updated:

bummzack commented 8 years ago

We need to think about:

The easiest way to implement rollbacks are probably DB transactions. Since we already use DB transactions in OrderProcessor::placeOrder, we could use them to roll-back an invalid cart. That would mean that SilverShop will only support Databases with transaction support.