I'm using Drupal 6.x and Ubercart 2.x. I have installed the uc_store_credit module 6.x-1.x-dev. The module's description states "Allows customers to purchase or accumulate store credit and use that credit to pay for products in the store." This is exactly what I would like to set up, but how can I enable the purchase of store credit?
Any help would be greatly appreciated.
I am completely unfamiliar with the store credit module, but know that others have had success via user points. Would a user points system work as well?
Thank you for the tip on that. I was reading through several other forum posts with a similar question as mine and often they were referred to "User Points" or "Userpoints", however those posts never come to a helpful conclusion for my case.
From what I can tell, there is a Drupal module called Userpoints that, independent from Ubercart, allows users to accumulate points on a website for being an active contributor to the site. Separately and independently from that, there is the Store Credit module which, according to its module description: "Allows customers to purchase or accumulate store credit and use that credit to pay for products in the store." This module depends on: "Cart (enabled), Payment (enabled), Credit Card (enabled), Conditional Actions (enabled), Order (enabled), Product (enabled), Token (enabled), Store (enabled)" which I have enabled. I would like to do exactly what it states "purchase or accumulate store credit and use that credit to pay for products" whithout adding more complexity in the form of Userpoints.
Now, going back to Userpoints, there is a third module called Userpoints Ubercart which, according to its module description: "Interfaces userpoints with ubercart, so users can get points for purchases.". And further, within Store Credits, there is a module called Store Credit: User Points. There are many modules with no clear picture on how they use each other. I would simply like to use the Store Credit module as it advertises without mixing it up with Userpoints, but I haven't found a Forum topic that has addressed this problem. If anyone knows of one, please point me to it. 
Thanks!
1. If you are going the userpoints route, you need the following modules:
http://drupal.org/project/userpoints_ubercart
http://drupal.org/project/userpoints
Once both are installed, you should create a product in ubercart called for instance "Buy x Userpoints" - and attach points to it via Product "Feature" - since after installation, every product in ubercart will have the ability (optional) to attach a points value to them via the Product "Feature", in addition to normal price. This is setup as a normal product for the purpose of selling points. Once purchased and paid for by a user, the user is credited with the amount of points bought.
Also via admin/settings/userpoints, in "Ubercart Payment Options", you can setup a conversion rate for points to cash in Ubercart. This gives the ability to pay using points.
So that this way user can pay for good using other methods (credit card, cash, etc) or userpoints which now appears as a payment method.
Note that you do not have to credit users with points for posting to forums, etc.
2. I think uc_store_credit builds on userpoints by enabling global settings. Not used it myself though, but you still need to install:
http://drupal.org/project/uc_store_credit
http://drupal.org/project/userpoints
So I would say its a customised usage of approach (1)
I think the best approach is to try both ways out and then decide what suits you best.
Also remember to check for bug fixes...
e.g.
http://www.ubercart.org/forum/support/4558/balance_not_checked_order#com...
http://drupal.org/project/issues/userpoints_ubercart?categories=All
Zeezhao,
Thank you! By the Store Credit module's description, it sounded like it did not need userpoints and sounded like a nice simple solution. I will try your option 1 which does not use the Store Credit module. Is there a balance of accumulated userpoints that is displayed somewhere so that the user can check his balance?
Regards,
Mark
Yes. Please read the userpoints homepage for more info.
Zeezhao,
I have it working except for one problem. In admin/settings/userpoints I set "Points used in payment (for every dollar)" to 100, so one dollar equals 100 points and one point equals 1 cent. However, if , for example, a product is $2.09 and I pay by points, 200 points are deducted from the user's balance, not 209 points. Any ideas about this?
I think its because uc_userpoints_payment.module rounds to integer using intval() and round(). So if you want something different, you'll have to change it yourself or check if any patch exists.
Just happened to see this... fwiw, UC Store Credit was my replacement for the buggy Ubercart Userpoints module. The rounding error you turned up is just one of several errors that we'd tried to have fixed in the past. So, instead I created the store credit module which works through a plugin system to interface with any method of tracking a user's store credit. It ships with a module that uses the User Points module as the method of tracking a user's store credit. The API would allow you to craft any other system to use instead if you so chose.
The only thing I didn't get around to adding was support to purchase / grant store credit during checkout... which unfortunately is what you're looking to do.
I am not expert on this issue. But it sounded like it did not need userpoints and sounded like a nice simple solution. I will try your option 1 which does not use the Store Credit module.
I have Userpoints installed and it works perfectly for users / members to buy points and use those to purchase products
But...
We have a need for an Admin to create Orders for members (customers), add a product and pay for it with the customer's userpoints. The Admin processes the payment, but the points are not being deducted from the customer's points balance.
Am I missing something? Is this even possible?
Thanks much!
-Todd
Excellent read, I just passed this onto a colleague who was doing a little research on this topic.
For more detail info visit:dollhouses
Excellent read, I just passed this onto a colleague who was doing a little research on this topic.
For more detail info visit:Dollhouse Miniatures
