Pay Per Node

Posts: 13
Joined: 01/30/2008

I have scanned the forum and I have found some similar postings to what I am trying to accomplish but figure I would post a cry for help anyway.

Here is what I would like to accomplish with ubercart and I would think it is such a simple integration that it already exist and I just missed it.

1. User comes to my site (anonymous/registered doesn't matter) and wants to buy a comparable house value report
2. They select the comparable report from my product
3. Add it to the cart and upon doing that they get pushed to the content type that I created to collect their information
4. They fill out the information and upon submitting it they get taken to the cart page again where they can select to check out or continue shopping
5. Upon selecting to check out and go through the payment the post is only posted to my internal site but not published when the payment has been received.

Is there anything in Ubercart that can do this or are you simply locked into the product page content and thats the start and end of it?

/Chris

Posts: 1139
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

I'm still working on something similar to this, I will try to post something more generic in a few days, if that's something you can wait for. Haven't had much time lately to continue working on it, and some of it is specific to my site, but I can try to clean it up and make it more generic, so others can at least glean some code from it for their own stores Smiling

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 13
Joined: 01/30/2008

torgosPizza:
Sure I can wait for the right solution, I'm even willing to put a bounty on it if you can make it work as I described; I'm not Trump but I can contribute $100 for a working module.

I am currently looking at the PayPal Node and it seems to do what I'm looking to do and I was wondering if there is a way to port it over to Ubercart? I would hate having to go back to ec when I finally cleaned up my drupal db from it in order to clear the way for Ubercart so I am hoping for this to work soon because I already have clients ready to buy reports from me as soon as I have it up and ready.

/Chris

Posts: 48
Joined: 01/31/2008

Hi torgosPizza, wow, that sounds great. Here's the bounty thread, so if you can make a module like that, we'd be happy to pay you for the work!

http://www.ubercart.org/forum/bounties/3073/quote_finishing_pay_node_mod...

Posts: 1139
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Actually I should clarify that right now, the module is going to work off of roles. So, not everyone can create the custom product node, only members of the special user role. It would take a little bit of refactoring to make it so that a user has to pay before they can make the content. It's more like "I have permission to create a product, which can then be sold." I think what you want is "I need to buy the node that I'm creating before it is sold."

That's probably better suited for the module that JuliaKM is creating - pay per node, or uc_nodetype. I'll have to think about it more to figure out what those changes to the workflow would entail.

Let me know what you think.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 48
Joined: 01/31/2008

I think JuliaKM is stuck and can't get the thing to work completely though and ended up using e-commerce. I think it's more for paying to publish content...which will work for things like if a user want to submit listings, articles or images, then they will have to pay before it is published. I don't think they necessarily need to pay first - then create, but they can create first and then go pay. Once payment is received, then it's marked to be published/approved by admin (admin will receive a payment notice). Create first then pay will need a notice on each type of node creation page that tells the users they needs to pay before the content will get published though...

I guess this is different since it creating content/product to be sold...

Posts: 1139
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

I think the best solution is to use uc_roles... user purchases "Product creator" role > checks out > On successful checkout, user can now create content to be purchased.

One question on the logistics of this, upon successful payment, should the node/product be available immediately to other customers?

Should the user who is able to create content need to purchase the role each time they want to submit a new product, or should they be allowed a certain number of nodes they can create? (This is how ec_paypernode works - which I'm looking at to see if there's any code I can recycle).

It wouldn't be too hard, I think, to give a certain number of allowances, and attach the role to the permission, and only allow users with that permission to create products. One thing it looks like ec_paypernode doesn't do is attach the user's created products with their transactions. (Not sure if that means their transaction which allowed them to create products, or the subsequent purchases from other users). Fortunately with Ubercart that would almost take no effort whatsoever.

Let me know your thoughts and I can perhaps start tinkering!

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 13
Joined: 01/30/2008

I think the ideal module would be one that allowed you to just select the content, fill it out like I described (anonymous or registered) hit submit and it takes you to the cart and shows you whats there currently with the price tag.

Once they select to pay, the content type will only be posted upon successful payment. This would be the absolute ideal solution.

/Chris

Posts: 48
Joined: 01/31/2008

Thanks for saying that in a non confusing way...and that's what I imagine it would do also, without having to deal with different roles.

Posts: 1
Joined: 02/23/2008

I'm also looking at a similar problem. In this case the user pays for the privilege of uploading content. According to the documentation I've read on basic product creation, the only required permission is 'create products'.

However when I try to access the url ?q=node/add/product, 'Access denied' is displayed.

Do I need to add additional permissions or something else?

Posts: 1139
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Create content maybe? Not sure.. seems like that'd be the only one you'd need. Create content and edit own content.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 8
Joined: 04/18/2008

Which way did you decied to go with this?

I think I have reviewed every Pay-Per-node module and every Upgrade Role via paypal.

I'm working on a very simple classifieds.

I can go either way, node or role. but which ever way I go, I'll need to autoexpire either the node or the role with advanced email notification.

It appears there are several modules that can handle the node expire and email.

you have a deeper understanding, which path looks best for this with UC - role or node

thanks