I posted this in the regular drupal forums and ubercart's forums and Ryan suggested I post on the issue tracker (hopefully this is it :))

They are basically the same but here are the links:

Drupal: http://drupal.org/node/327343
Ubercart: http://www.ubercart.org/forum/support/7234/userpoints_only_payment_method

As you can see in my update on the posts, I can add points fine to users and they can put up an item for sale fine and it can be bought by a different user fine but it does not add the points spent to the seller's point balance. Also, and I am sure this is not related, but how do i remove the item for sale from the store once it is purchased?

I looked into Workflow_NG and was also trying to see if there were other modules out there that I may need to accomplish the actual transaction of subtracting and awarding the points to the seller.

Thanks in advance for any suggestions.

Comments

bmagistro’s picture

Assigned: Unassigned » bmagistro

Hello,

Have you gone in and set how many points the seller should receive? Also you have enabled ubercart seller points correct?

cincy_kid’s picture

Hello bmagistro, thank you for the questions.

Yes I have seller points enabled (although it was only just a little while ago). The points they receive should be how many ever points they sold their item for. In the point settings, I set it equal to 1 (which multiplies it by the sell price so I should be good there). After messing with it I was able to buy a product and it awarded the points! BUT, it awarded them to my admin account user/1 instead of to the actual account that put the item up for sale (seller). I think I remember seeing another thread where someone had a similar problem but I cant find it now or remember the solution. What am I doing wrong there?

I still cant configure workflow_ng to unpublish the node after checkout (doesnt give me the right options under actions) - but thats another problem and out of scope here :)

Thanks again!

bmagistro’s picture

glad to hear it is partially working. I do not know why it would award to user/1 instead of the actual. can you assign all users create product privileges and then login as a different user create a product and purchase it with yet another account (or user/1)? just to test that portion? I am just trying to rule out the product created by user/1 because I know i made that mistake due to cookies once...

cincy_kid’s picture

I do not know either, but I went into the Access Control section to make sure I had authenticated user check marked for "create product" and "edit own product". Would there be anything else I need checked?

I created a new user, gave them points and then logged out and logged in as them and created a new product and logged off and logged on to another user (other than the seller and other than the admin), bought the item and again it deducted the points but gave the points to the admin's account. I tried a couple more times with different users buying from other users and all points went to admin.

I am sure there is something silly I missing but cant seem to find it.

Thanks again ~

bmagistro’s picture

Category: support » bug

This sounds like a bug as well. I am marking it as such and hope to have time this weekend to catch up on the backlog of web related things to do.

cincy_kid’s picture

I made one more change, I selected YES for the option "Show seller points awarded" just to see and not that it changed the outcome, but it clearly shows at completed checkout in the "system text":

* User C lost 25 points! Total now is 50 points.
* User A earned 25 points! Total now is 422 points.

(A = Admin Account)

So it needs to be User B that earns the points since he is the one that put the product up for sale.

cincy_kid’s picture

Thanks again bmagistro

I will keep experimenting and will keep you posted if I have any success and I look forward to your findings ;)

cincy_kid’s picture

I wanted to add another piece of info that may help in figuring this out.

The email I get to my admin account for receiving the points says:

Congratulations! You have 25 new points. Date : 10/31/08 Operation : insert Description : Someone purchased a product belonging to 1, awarding points (Ubercart Order ID 13)

".....belonging to 1??"

Is that referring to user/1 or maybe part of my product categories? Who knows, but if its user/1, I thought this info may help

When I looked in the settings part for the email, it says that description is: !points_description. I have searched for any notation of that variable in the code to see what in holds but no luck.

bmagistro’s picture

I am trying to trace this one down a little bit more, can you look at your node table and look at the uid column. the uc_products and node tables are related on the VID column. On the products you are having issues with uid should not be 1 correct?

cincy_kid’s picture

Thanks for looking into this bmagistro.

You are correct. In the node table, the products in question do NOT have a 1 in the uid column. There are some products with 1's that I submitted early on, but the ones in questions are 2, 3 and 4.

Hope that helps...

bmagistro’s picture

Status: Active » Postponed (maintainer needs more info)

Unable to duplicate issue on a test server, contacting poster for additional details that I would prefer not be made public such as software/code versions.

bmagistro’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking as fixed. Source of problem appears to be in workflow-ng configuration.

cincy_kid’s picture

Thanks again for working on this bmagistro!

Not only did you help my problem get solved but its a great contrib module!

Status: Fixed » Closed (fixed)

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

mike_gie12’s picture

Hi! I was having the same problem. Seller points get awarded to admin instead of the actual seller. How was it fixed? thanks