After a customer visits an affiliate link and completes a purchase, the visit is properly recorded on the "Unique Click Count" page of the affiliate's "Affiliate Center" page, and the order is properly recorded in Ubercart. But the commission is not automatically recorded on the "Commissions" page. At first I suspected that the commissions might be updated by some sort of scheduled cron job, so I ran cron, but that made no difference.
One apparently has to apply each commission manually, by going to the Ubercart order page, and in the "Affiliate Commissions" section near the bottom of the page, set the Operation list box to "Re-apply affiliate commission", and click the Update button. This is not intuitive, and would be a major problem for any online store with many affiliate sales.
Is there a patch to fix this, or at least a workaround within Drupal?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uc_affiliate2-apply-remove-commission-order-update-1754452-2.patch | 2.88 KB | moxojo |
Comments
Comment #1
dgtlmoon commentedActually, this also occured in the 6 version, I never thought about it!
Comment #2
moxojo commentedWe encountered the same problem. The issue was that the check would only work when an order was created. i.e. if you applied a commission on order creation it would work, but if you applied a commission on a status that came after the initial order, such as "shipped" the check would fail.
I have created a patch that seems to fix the problem for us. It correctly adds and removes commissions on order update. Would love to hear if it works for you.
Comment #3
Neo13 commentedWorks fine for me!