6 replies [Last post]
jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
Was this information Helpful?

Hoping someone can point me to the right documentation. I have added multiple SKUs/attributes to a product and the stock isn't reducing after user completes checkout.

Was looking at http://www.ubercart.org/docs/user/5181/out_stock_solutions and not sure if there was just a simple workflow-ng method I should be using to make sure stock reduces. Seems to work fine in products that have a single SKU and no attributes, using I assume the "Decrement stock upon order submission" workflow.

Any pointers to the right documentation would be greatly appreciated. Workflow UI confuses me a little.

Thanks.

jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
Re: Stock not reducing: Multiple SKUs/attributes for a product

Found this: http://drupal.org/project/uc_multi_stock

Will try this out in the morning. Hopefully on the right track.

jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
Re: Re: Stock not reducing: Multiple SKUs/attributes for a produ

Decided against installing uc_multi_stock for now and just using uc_out_of_stock-5.x-1.3. Am primarily concerned with making sure stock levels decrement when order is complete.

My question is... why does the stock level not decrement using normal workflow for uc_stock. See the attached for what I have.

AttachmentSize
Decrement stock upon order submission | Konigi.png 23.56 KB
jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
Re: Stock not reducing: Multiple SKUs/attributes for a product

I noticed that the "Decrement stock upon order submission" default workflow for uc_stock is in the inactive rules section on my workflow-ng. Guessing that has something to do with my problems, but not sure how and if it should be moved to active rules.

jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
Re: Stock not reducing: Multiple SKUs/attributes for a product

I added 2 rules to check if payment status changed to "pending" for 2checkout or "payment received" for paypal. I just tried to create an order and updated status to payment received, but the stock didn't decrement. Am really lost now.

SeanK's picture
Offline
Joined: 03/29/2009
Juice: 63
Re: Re: Stock not reducing: Multiple SKUs/attributes for a produ

I'm at work so I can't really ump in and try as well, but I'm highly interested in your solution.

hanoii's picture
Offline
Joined: 07/30/2008
Juice: 103
Re: Re: Re: Stock not reducing: Multiple SKUs/attributes for a p

Some time ago I found the cause four this was a bug on uc_multi_stock which was wrongly setting something in the order object, thus, making the workflow-ng rule to fail.

I contributed to uc_multi_stock and that is fixed in the new version for D5 and also on the D6-dev branch. However, on D6, you may want to look at uc_out_of_stock which also validates addition to cart on different parts of the site similiar to what uc_multi_stock does.