Greetings,
I am currently trying to rebuild my ocPortal powered web-site with Drupal. While I'd like to use Drupal 7, I also have a set-up for Drupal 6 just in case I can't achieve what I am trying to do do to lack of modules....
Anyways, here is what I am trying to do that I need help on:
I am trying to make a basic Point Store for my community forum-based RPG. In this Point Store (Which I intend to call Point Exchange), members would be able to use their user points to acquire Character Points (which are used for strengths) and Shillings (used for character goods). I do not intend to have an actual point exchange mind you (though that could be neat), more or less they simply spend their userpoints and they can keep track of the Character Points and Shillings they have and have used themselves.
In other words, they simply spend their userpoints and write down for themselves how many Character Points and Shillings this got them.
In this way they could easily choose strengths from an on-site table or equipment, and do the deductions and apply what they got themselves - without having to go through extra check out pages and the like for what is meant to be a simple exercise for the player.
I am interested in having it so they could also use real money for these abstract Character Points and Shillings, but the need is to allow the use of userpoints here. This is basically a method of rewarding activity by giving the member points that they can use to grow their characters. The Point Exchange Store allows for a method of keeping things in check.
In ocPortal this was simple because it has a Point Store built in. The problem there is that I could not allow real currency as a means of getting abstract points.
Ok, hopefully my "want" is well understood. But if not, please ask for clarification. Now I will tell what I have tried.
Drupal 7:
I have tried using UberCart. Unfortunately the UberCart Userpoints module is for Drupal 6 only. After tons of google searching, I found a zip of one where someone was working on porting it to Drupal 7. Unforuntately, that file did not work, giving me instead a White Page of Death on the Payment Methods configuration screen.
I then removed UberCart and tried the Drupal Commerce modules, including the Userpoints for Commerce. Of course the module maker does not want Userpoints to be a payment type, just a form of credit or discount, but yeah. I set it up and when I go to test it I keep getting about how use of such and such credit was not approved. I could find no way to set an approval for this, and being the site admin, found it odd that I'd need approval in the first place. But yeah, I still can't seem to get that to work.
I also have seen a page about making a simple point store. Only thing is, it seems to be directed towards Drupal 6. Its instructions call for using tokens, which while I have tokens module installed in my drupal 7 site, I don't have the tokens the instructions says to use....
The point exchange store is the only obstacle I have to finish my rebuild of my site in Drupal 7, so I am hoping that we can solve it here. But just incase, I have also tried doing the same in Drupal 6. My largest problems with Drupal 6 is that: (1) It is soon to be deprecated, (2) lack of avatar support in the user profile - which is crazy if you ask me.
Drupal 6:
In Drupal 6 I have only tried the UberCart method. The userpoints for ubercart module works in Drupal 6. I am only having one issue with getting the point exchange to work here:
I created a product called "Character Points". I set it up so it cost $ 0.01, which is also 1 userpoint. I went and tested this out by trying to purchase it myself. It all goes good until I confirm the order (after going past the Review screen). Here I get the warning:
[QUOTE]We're sorry. An error occurred while processing your order that prevents us from completing it at this time. Please contact us and we will resolve the issue as soon as possible.[/QUOTE]
I check my reports and see that it complained about processing an empty order. But how is the order empty? The shopping cart had an order in it...
So yeah, any help here? I greatly appreciate it. This thing is really driving me up the wall, but because it is a function that we've been using on our ocPortal website for years, it is really something I need to get working before I can complete my rebuild.
Thanks in advance!
Comments
sounds like you'll need
sounds like you'll need custom module to convert the purchased real money to user points, you can use user point as the base module to record user points and create a small module (maybe with rules?) to add the point everytime user complete the purchase a new points (create a product that says for example 10000 points for $10 in commerce).
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com - Premium Theme Club
skype id : duckzland
Wouldn't the Userpoints as
Wouldn't the Userpoints as credit for Drupal Commerce work there?
That was what I was trying to do anyways. But I got stuck with the credits not being approved for use issue...
Here is a small update.
Here is a small update. Regarding Drupal 6 and UberCart.
Before I was using the Aquai Prosper theme. I remembered reading about something in a theme causing the issues I had.
So I switched back to Garland theme and tried the Character Point purchase.
It worked. So obviously the issue there was theme related.
I still am hoping for a fix or a method that works in Drupal 7, but hey, I at least got past the hurdle in Drupal 6.
thanks
thanks for sharing this, enjoy your holiday.
SOLVED!
Greetings!
I am pleased to announce that I have solved my issue with Drupal Commerce + UserPoints in Drupal 7!
I had to leave the exchange rate alone. Reseting back to the default exhange rate for UserPoints allowed the transaction to go through. It is likely that before I had not understood how the exchange rate thing works and did it wrong....
But anyway, I got it working now! So I am past my last big hurdle... well except the slow speed of Drupal 7, but that is for another topic, plus there are so many posts and web articles about how to deal with it that I am sure I'll be able to figure something out.
So I mark this topic is solved. I don't know if there is a real way to do that here, but yeah.
Sorry to go a different route, but...
I would not try to purchase the items with money, but instead, allow users to purchase packages of points. Can you do that?
Oliver "Andrew" McCloud
http://queryblitz.com
Quick and easy feedback for your websites.
Drupal 7 Commerce doesn't
Drupal 7 Commerce doesn't like that. It doesn't want to treat userpoints as a currency source, only as a credit. I have yet to figure out how to force it take only points.
On the flip side though, I personally don't mind the use of both. I kind of like the idea of members being able to use real money to purchase in game items, if they want to, with the understanding and knowledge that they don't have to because they can simply use their userpoints. It allows the members to help fund the site if they want while still getting the stuff from the point store.
With all that said though, I am running into an issue again. This time the points are being used as credit (and able to use the points to deduct the entire cost), but still getting the error message about the negative points not being approved, then sent to the paypal page with an empty cart. Aggrivating...
I might have to look at ubercart again. Unless one of you drupal experts have a solution?
Ubercart seems to work better
Ubercart seems to work better now.
The only issue is with price showing. For example, I have a products set up like this:
1 Character Point costs $ 0.01 or 1 Ablution Point (user point).
On the product display page it shows the cost as $ 0.00 or 1 Ablution Point.
But when you check out it works fine, costing the $ 0.01 or 1 Ablution Point.
Like I said, it is a weird issue that started after I had to fix the site after a php upgrade, but it at least works.
With Ubercart and User Points, it looks like you can set it to accept only user points. However I purposely set it to accept both. In this way members can donate to the site if they want and still get stuff for that for their character.