When I hit the remove button on a product it doesn't remove the product but duplicates the order.

eg.

product 1
product 2

on order

I click REMOVE on product 2

Now my order is:

product 1
product 2
product 1
product 2

I'm hoping this isn't going to mess up my stock.

Comments

javlinsharp’s picture

I am also facing this issue...
Just want to add, This only happens inside /admin/store/orders/xxxxx/edit
/cart is unaffected as products can be added and subtracted w/o issue.

tr’s picture

Sounds like #1013448: Unable to add and update product rows in the admin interface for an order. I can't reproduce that, it works fine for me (and I assume for most people, since this feature has been in Ubercart essentially unchanged for years). Might have something to do with jQuery Update - do you have that installed? Or some other JavaScript on your site. Use Firebug to check for JavaScript errors on the page.

jbarns’s picture

that may be, I'm the one administering the order though so I can't go into their cart.

Unless there is a different loophole.

I don't have JQuery Update installed. I'll review the case you posted.

javlinsharp’s picture

Like Jbarnes, I do not have jQuery Update installed. A hunt of hidden product fields returns nothing either.

I have found additional unintended behavior, perhaps related. Seems the Search Capabilities for Products in the Order page do not work. Yet they do work in other areas of the site.
Searches for known good Product Names and SKUs return no results while in the order form, but do return results from the generic Site Search.

If it helps, I have a publicly accessible dev env available for troubleshooting and error replication.

javlinsharp’s picture

My issue resolved with the patch posted by rhmtts at http://drupal.org/node/1013448#comment-4038392

Normally, I dont like to branch the GA code with patches, but this bug was too big to leave, it basically took out our ability to take order manually (on the phone) I hope this code gets merged into the UC release so I dont have to worry come upgrade time.

My offer stands to provide an environment by which this bug can be recreated. My profile contains email address.

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this either, but have a feeling it may be related to fetch_product_data() in uc_order.js which looks like it may cause trouble if you have rethemed or hook_form_alter()ed the order edit form in certain ways. You could try switching your admin theme to Garland and disabling any custom modules that affect order editing and see if the issue still occurs.

longwave’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Please reopen if you can reliably reproduce this issue, because I still have never seen this occur.

javlinsharp’s picture

Version: 6.x-2.4 » 6.x-2.6
Status: Closed (cannot reproduce) » Active

I have recently updated to Ubercart 6.x-2.6 and this problem has reared its ugly head again. The patch will probably not work on this newer version. I can provide a publicly addressable development site where the problem is easily reproduced.

Please contact me at javlinsharp(A-T)gmail(d-o-t)com

longwave’s picture

Can you reproduce it if you change your theme as suggested in #6? Do you have any custom or contributed modules which may alter the order edit page?

The patch in the linked issue still applies, have you tried that again?

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

Still need more info - preferably a site which demonstrates the problem - to be able to fix this.

longwave’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Still have not seen this in action, if this is still an issue please let me know a site that demonstrates the bug (in private if necessary) or reopen with exact steps to reproduce. I suspect this is theme or JavaScript related as this only seems to apply to two sites out of thousands of installs.

norgo’s picture

I have the same problem thinking it was a DB corruption of sorts...

>>> products in an order get duplicated on delete or add within the order.<<<

I first played with jQuery Update since I could not see products at all in Chrome Browser but could see them in Firefox, however the duplicates started so it was not a jQuery Update Issue it seems.

After stumbling upon this issue/post here today and moving the theme to Garland, all is fine.

If it helps, I was using SKY 6.x.3.11
JQuery Update 6.x-2.0-alpha1
Ubercart 6.x-2.7

I will report other themes that cause the same problem if I stumble upon them.

Thx

tr’s picture

Sky/Studio themes add an "attributes" property to every node, which conflicts with Ubercart attributes. This is a bug with those themes.