Closed (duplicate)
Project:
Ubercart
Version:
6.x-2.4
Component:
Stock
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2010 at 11:02 UTC
Updated:
8 Aug 2013 at 17:53 UTC
Jump to comment: Most recent file
Comments
Comment #1
giorgoskThe patch updates stock table when product is updated
at the end of "uc_product_update" function
Comment #2
giorgoskthis might be a better title
Comment #3
Exploratus commentedI tried it and it ubercart still resets the stock.... Doesnt work...
Comment #4
giorgoskyou tried it with what version
the patch was for 2.2
please make your report as helpful as possible
Comment #5
Exploratus commentedYour right, I tried it with 2.3. I didnt realize the version just changed, I used to have 2.2. Is there a port to 2.3?
Comment #6
giorgoskthe patch still applies without change
if you can't make it apply, apply it by hand
after line 661 uc_product.module paste
and test
Comment #7
tr commentedYour patch has the same problem with database integrity that I mentioned in http://drupal.org/node/737790#comment-3345606 in response to a similar issue. You're fixing one thing at the expense of breaking other things. IMO the only proper way to handle this is to modify Ubercart so SKUs are not only unique but immutable.
Comment #8
casey_2000 commentedSorry for my English, I'm from Russia.
I had the problem:
Changing SKU in some product makes Stock create new record with new SKU and it doesn't delete the old one.
The patch published by GiorgosK helped me a lot. It updates SKU in stock when changing in product.
Big thanks.
Comment #9
giorgoskPlease keep the title to something descriptive of the problem
Comment #10
TimelessDomain commentedduplicatecomplimentary issue #1011068: Changing SKU on a node to a previously used SKU on a different node leads to bogus stock information (wrong reports)Comment #11
hanoiiI don't think #1011068: Changing SKU on a node to a previously used SKU on a different node leads to bogus stock information (wrong reports) it's a duplicate, but rather a complementary issue, they address different things and the patch here won't fix what I have mentioned on that issue.
Comment #12
jlporter commentedputtin my sub skates on
Comment #13
mirocow commentedsubscribe
Comment #14
giorgoskI know this is not going to be included in ubercart
but just for the people that want a quick fix I updated the patch for 2.4
Comment #15
ratinakage commentedAnyone know why this patch got ignored?
Comment #16
giorgoskbecause its just a quick work around which might work in your use case
but its not something that would be of general use
make thorough testing before putting in your live site
Comment #17
longwaveDuplicate of #1398448: stock sku consistency on node update/delete