I'm using the 5.x version of Affiliate with Ubercart. I had a default commission of 50% in the Affiliate configuration. I have two products, and they were configured as follows: product A with a commission of 50%, and product B with an explicit commission of zero (0) -- i.e., no commission for that product.

The product A commission has been working fine. However, with product B created recently, it was just hit with a 50% commission.

Problem #1: If product B's affiliate commission is set to zero, and the default commission is 50, it looks like the default commission took precedent. I would expect product B's config of "0" to mask the default.

Problem #2: How can I "undo" or reset the improper commission. Right now, a site member has a 50% commission credited to his account for product B, and I need to remove it. How?

Thanks for your help!

Comments

bojanz’s picture

I am aware of problem #1, should be fixed soon(ish).

As for problem #2, find the offending row in the uc_affiliate2_commission table and delete it. It contains the user id (column: aid) and order id (column: order id), so it shouldn't be hard

mgenovese’s picture

Thanks re: problem #1.

Re: #2, would it make sense to have a function to modify or delete a commission with certain access controls in place? That would be much easier (down the road) than manually deleting the table row.

Thanks for your reply. Cheers.

bojanz’s picture

Yes, I'll keep that in mind.

Bojan

bojanz’s picture

Status: Active » Fixed

Problem fixed in CVS. Setting the Product Commission to 0 excludes it from the calculations (and from the generated links).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.