Hi guys,
Just discovered this and am investigating. While the site is not live, uberpos is being used to track stock at the moment
drupal 6.16, latest dev build of uberpos.
Will update if I find out more.
Thanks
Jon
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | uberpos-752692-8.patch | 1.05 KB | slip |
Comments
Comment #1
jon_stewart commentedUpdate: Behaviour is same whether using an attributed product, or an attributed product from a subclass (we are discontinuing subclasses for various reasons)
Comment #2
slip commentedOK, I'll take a look when I get a chance. If anybody wants to take a shot at making a patch that would be great. I think I'll fix this one and the VAT bug and make an alpha release so we can have a true dev branch.
Comment #3
jon_stewart commentedBy looking at a pending order, I can see that the base SKU has been used, not the SKU of the option
Two associated error reports:-
-------------1---------------------------------------------------------
Type php
Date Thursday, March 25, 2010 - 12:52
User jon
Location http://192.168.16.2/?q=admin/store/pos/ajax
Referrer http://192.168.16.2/admin/store/pos
Message in_array() [function.in-array]: Wrong datatype for second argument in /mnt.../uberpos/includes/uberpos.ca.inc on line 100.
Severity error
Hostname 192.168.16.56
Operations
------------end 1---------------------------------------------------
------------2--------------------------------------------------
Type php
Date Thursday, March 25, 2010 - 12:52
User jon
Location http://192.168.16.2/?q=admin/store/pos/ajax
Referrer http://192.168.16.2/admin/store/pos
Message array_keys() [function.array-keys]: The first argument should be an array in /mnt/...uberpos/includes/uberpos.ca.inc on line 100.
Severity error
Hostname 192.168.16.56
Operations
----------end 2--------------------------------
Comment #4
jon_stewart commentedThanks, slip, I'm going to see if I can pick where it's going wrong, by way of trying to help.
Comment #5
jon_stewart commentedProblem is in this function, but as you can see, is because of a call to module_invoke_all
from the log:
user 03/25/2010 - 15:19 post module invoke all product->model is:nmLheaXX jon Note - 'XX' indicates the base sku
user 03/25/2010 - 15:19 pre module invoke all product->model is:nmLheatulp jon Note - This value is the correct sku
Hope this helps
I think this is about as far as I can take it, not being privy to the overall design!
Jon
Comment #6
jon_stewart commentedComment #7
slip commentedMarked #620188: Attributes not working? as a duplicate.
Comment #8
slip commentedTry this out... seems like they're changing the api around but I haven't had/don't have enough time to look into it.
Comment #9
jon_stewart commentedThanks for the patch.
Informally tested against
1. Attributed items as type product
2. Attributed items as a product subclass
3. Non attributed items
4. Random combinations of the above.
Both decrementation, and incrementation of database appears to be correctly functioning
(I'd not use the word 'appear' except my testing *was* informal!)
Many thanks for the quick fix, Silas
Jon
Comment #10
slip commentedHmm, ok, tested on ubercart 2.1 and it worked there too. Not sure when it stopped working but that's good enough for me. If stock and everything else attribute-related works, I guess we're good to go.
Comment #11
slip commentedThanks for helping out with this Jon Stewart!
http://drupal.org/cvs?commit=347974
Comment #12
jon_stewart commentedHappy to help, and hey, that's my first credit for helping fix something. I've a big smile right now!
Todo:
1. Monetary contribution to Uberpos dev overdue :-(
2. Write some useful modules for the community, just like Uberpos.
Comment #14
cjd400 commentedI've applied this patch still seem to have a problem with it only showing the base price :( the patch didn't work to start with - but i've replaced the module with old version of the dev version - and it seems to have patched without errors but alas problem not resolved - anyone got any ideas?
chars
chris
Comment #15
cjd400 commentedI've tried the new dev version doesn't seem to work in that either
Comment #16
left-click commentedAttribute skus do not work at all in the dev branch, mostly I think due to complications with multi-store support.
Comment #17
last call media commentedSorry, that last post was me.
Comment #18
deggertsen commentedIf this isn't working in the dev version, shouldn't this be open? There are some great additions in the dev version that we need in UberPOS, but this issue negates all of that. We do not however, need multi-store support. So if that is the issue could you give an idea of what needs to be changed in order to get attributes working again?
Thanks.
Comment #19
deggertsen commentedI need to have this issue fixed. If somebody can do it at a price, name it and I'll let you know if I can pay you to do it. I would expect the fix to be no more than $300.
Comment #20
deggertsen commentedI just updated to the most recent dev version and it appears to have fixed the problem. Awesome!