Cdodge/shopping cart rewrite

This was to cater for a scenario where the user adds a course, updates the qty to 2, then goes back, adds another one and proceeds to checkout, this would make the cart a mixed type, containing both registeration, and code items (since we move the items from registeration to code at qty change only). This is just to handle that scenario. I think it is still valid. The user can no longer add the same course, but a different course can still be added.

Sent from my ASUS MeMO Pad

chrisndodge <notifications@github.com> wrote:

>In lms/djangoapps/shoppingcart/models.py:
>
>> @@ -200,29 +348,44 @@ def purchase(self, first='', last='', street1='', street2='', city='', state='', > # this should return all of the objects with the correct types of the > # subclasses > orderitems = OrderItem.objects.filter(order=self).select_subclasses() > + site_name = microsite.get_value('SITE_NAME', settings.SITE_NAME) > + > + if self.order_type == OrderTypes.BUSINESS: > + self.update_order_type() 
>
>Sorry, meant to write back. Not sure how to answer your question. 
>
>@asadiqbal08 @muhhshoaib is this 'update' required?
>
>—
>Reply to this email directly or view it on GitHub.￼
>
>{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Pull Request on GitHub","action":{"@type":"ViewAction","url":"https://github.com/edx/edx-platform/pull/5235/files#r19067274","name":"View Pull Request"}}