I've patched uc_recurring with patches from here (http://drupal.org/node/454952) and here (http://drupal.org/node/483494)

Unless I've missed a patch or applied them in the wrong order, I think I have the most recent "setup" available (for testing).

I'm using the test_gateway to setup up a donation site using the uc_varprice module. Things are working terrific, except that I can't seem to get attributes working correctly. On checkout and looking at the user account, all recurring fees are being applied.

Specifically, I have "Monthly" "Quarterly" and "Annually" available as a "Donation Interval" attribute. The sku's are setup correctly and I have 3 features added correctly for each sku. The result on checkout is that all three recurring fees are added - instead of just the selected one.

Thoughts?

Aaron

CommentFileSizeAuthor
recurring_fees_attr.jpg11.52 KBavr

Comments

avr’s picture

Component: Miscellaneous » Code
Category: support » bug

Finally figured this out...

I'm not sure which patch, but the following was somehow dropped from the updated query in uc_recurring_find_applicable_fees_for_order.

rp.model IN ('". implode("', '", $models) ."') AND

Without this little bit, any product added to a cart did not have it's distinguishing "sku" or "model" that is associated with it's attribute/recurring fee. Not sure how it's worth it to make a ~50 character patch (plus, I don't really know how).

Thanks,
Aaron

univate’s picture

Status: Active » Closed (duplicate)

Thats an issue with the current patch for #454952: Get uc_authorizenet CIM working with version 2.x and should be posted over there.

That code is not in the current version of uc_recurring in cvs.