Paypal and uc_stock: stock not updated

Posts: 11
Joined: 11/08/2007

uc_stock is working fine with inventory to follow stock (tested OK with Check/Other).

But stock is not updated when payed with Paypal: which concern 95% of my orders Sad

I use Beta 2: do you believe this is corrected with Beta 4?

Thank you for your help.

Alexandre

Posts: 40
Joined: 07/23/2008

i've just set up a sandbox with drupal 5.10 and ubercart 1.4. stock levels update without paypal, but when i set up paypal then stock levels no longer update

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

My hunch is that the proper order statuses aren't being hit. I'd review the order status you're using to decrement stock and make sure your orders from PayPal are passing through that status when they get processed.

Posts: 40
Joined: 07/23/2008

i kept whatever defaults are set OOTB for workflow-ng rules and paypal.

one strange behaviour which may or may not be relevent:

workflow-ng shows the "Decrement stock upon order submission" rule in the INACTIVE list.
however, when i edit the rule, i can see that the ACTIVE tickbox is TICKED. probably just a display issue with workflow-ng? if i untick the "enable rule" tickbox, submit and then edit again and retick it and submit, the rule then moves to the top ACTIVE list where it should've been all along.

I'm using workflow-ng 5.x-2.1.

Posts: 40
Joined: 07/23/2008

my bad. i was completing the order by adding a payment entry to the order manually and then cycling the order through ALL available statuses with no luck. i thought this was equivalent to actually paying on paypal. i just did a REAL payment on paypal, and the stock level DID decrement correctly.

so just a question now: is there a way to simulate a real payment so that all the relevent workflow rules are triggered correctly?

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hmm... I don't have a process easily on hand, but my recommendation would be to simply look at the default configurations, see what the conditions on them are, and then perform actions that will activate the triggers with the right conditions. Sorry if that's a little vague... it's just not a question we've fielded before. Laughing out loud