My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 111: Items in an order doesn't get the quantity changed after the first checkout (related with issue 61)
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2008


 
Reported by edmundo...@gmail.com, Jul 23, 2008
What steps will reproduce the problem?
1. Add one item to the cart.
2. Checkout (there it shows the cart contents)
3. Select shipping (there it shows the order contents, that now is the same)
4. Go back and add another same item.
5. Checkout (there it shows the cart contents, now it shows two in the
quantity)
6. Select shipping (there it shows the order contents, that now is one in
the quantity again). The order is not updating its order_line_items
collection of already existing items from the cart.
 
What is the expected output? What do you see instead?
It should show two units in the select shipping page, the second time.
Instead it shows only one.

What version of the product are you using? On what operating system?
trunk. Ubuntu 7.10

Please provide any additional information below.
It doesn't just drop off one, it doesn't update que quantity of what is
already there, if you add a new item that wasnt there it will be included.

@order.order_line_items = @items

This is not happening as expected.

I don't know why yet, appears to be that crazy problem of assigning objects
by id and things stop working and dont gave errors. (take a look at  issue 104 )

As in the title, it was discussed in  issue 61 , and closed without being
completelly fixed.

Probably to fix that I will need to start to make some integration tests,
as all the rest of the system was tested and this problem deppends of the
flow of various controllers.

This is the craziest error that I saw until now.
Jul 24, 2008
#1 edmundo...@gmail.com
Follows a patch. Im just clearing the collection and reacreating its objects taking
care of it NOT being the same as the cart objects. Instead of link, I clone it.

Regards.
update_quantity_of_already_created_order_line_items.patch
755 bytes   View   Download
Aug 11, 2008
Project Member #2 subim...@gmail.com
Patch solves this problem, but it appears you can still remove all items from your
cart and it doesn't update that page. Perhaps not the same bug, but a related one.

I'll be fixing both...
Status: Started
Labels: -Priority-Medium Priority-Critical
Aug 15, 2008
Project Member #3 subim...@gmail.com
Fixed in r117
Status: Fixed

Powered by Google Project Hosting