Closed (duplicate)
Project:
UC Recurring Payments and Subscriptions
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2009 at 12:34 UTC
Updated:
5 Apr 2012 at 17:14 UTC
The uid field in uc_recurring_users table is saving the uid of the user that created the order and not the user that owns the fee.
That means that recurring fees will not show up in a user account if the order was purchased anonymously or created by an admin.
Comments
Comment #1
univate commentedThis is the fix which I've committed.
Comment #2
vitis commentedthank you
Comment #4
fortis commentedsorry for my english.
It doesn't work for me, when anonymous purchase product then reccuring tab is not visible in profile after authorization. Because fee creates with uid == 0.
In univate patch:
And in uc_recurring_order.module i see that in function uc_recurring_order_process_order $order->uid == 0
How can I force it work?
ps: i tried last version - 2.x
i think it's need to update uc_recurring_users with uid=0 by order_id when user creates in ubercart... now i know only uc_cart patch method ^^)
Comment #5
univate commentedThis is issue was closed committed over a year ago, if you have a question or issue it would be best to create a new issue.
What you are seeing is absolutely correct, when the recurring fee is first created it will have a uid of 0 as there is no user in the system yet. When the order completes and the user has been created the ubercart hook in uc_recurring hook_uc_checkout_complete() is called and corrects this uid value.
Comment #6
shaundychkoJust a note that $fees in #1 is always NULL on anonymous checkout since uc_recurring hasn't yet saved the recurring fee for the $order at the time this function is called. I posted a patch here http://drupal.org/node/1423482#comment-5829842 to get the uid for anonymous checkout into the uc_recurring_users table.