Posted by gemini on October 6, 2007 at 9:43pm
Jump to:
| Project: | PayPal Node |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
I set it all up and after creating a second content type I realized that this module only supports single content type to be paid for.
Would be cool to add another fieldset "Site Content 2" and have one more added automatically every time the previous one gets filled out. Just like the location module does for multiple addresses or image_cache for multiple presets.
I wouldn't worry too much about the email notifications content at this point since all it does - notifies people that specific content that they sponsored has expired. So, we just need to add one more variable that represents content type name and it will work for all of them.
Comments
#1
I too could really use this module if I could have it set be used for different content types and not catagories...any ideas of how difficult this would be?
Seems to me that Gemini and I are looking for the same thing...
#2
umm.... not really, I actually think that categories would be more flexible since I can assign multiple categories to the same content type (i.e. different levels of sponsorship). At the same time I would like to be able to set up multiple content types to be paid for with different categories.
#3
If anybody is interested in sponsoring the development of multiple content type support drop me a mail. It's not something i intended to do with v1.0 and not requested by the original sponsor.
#4
Hi Buddha,
I sent you a message about paypal subscriptions with updated code to make it possible, but I would also like to have multiple content type available. If you reply to the original message regarding the paypal subscriptions, let me know how much it will be for the multiple content type also.
#5
Yes .. I too would be interested in the multiple pay-per-node paypal functionality. How much $$ is necessary to contribute to make this happen? Many thanks John
#6
The alternative way right now is to duplicate the module. You will have to go into each of the folder, module files, .inc, and .inc files and change paypalnode to paypalnode2 and also nodepromocode to nodepromocode2. Then also look for some area that has fees/ and change those to fees2 and report to report2. You'll have to do this carefully and make sure all that needs to be change has been changed...otherwise, it "may" affect your original one. I've tried it and it seem to work just fine...but I haven't tried it too thoroughly... So you can really make as many duplicates for as many different content type as you need.
and as for subscription, it would be nice to have this built in to the module as selections, but I have not figured out how to do that since I can't code but these are the things that should be added. If someone else know how to put this into admin as selection for t2 days, months, year, that would be awesome. But the following will work just fine if you have one content type for one type of subscription:
$form['a3'] = array('#type' => 'hidden',
'#value' => $amount,
'#name' => 'a3',
);
$form['p3'] = array(
'#type' => 'hidden',
'#value' => 1,
'#name' => 'p3',
);
$form['t3'] = array(
'#type' => 'hidden',
'#value' => M,
'#name' => 't3',
);
$form['src'] = array(
'#type' => 'hidden',
'#value' => 1,
'#name' => 'src',
);
$form['sra'] = array(
'#type' => 'hidden',
'#value' => 1,
'#name' => 'sra',
);
and this changed from _xclick to _xclick-subscriptions:
$form['cmd'] = array('#type' => 'hidden',
'#value' => '_xclick-subscriptions',
'#name' => 'cmd',
);
I do not know how this will play out for the admin side, but since paypal will notify you when subscription is cancelled, you can specify the days to end only when that happens. Since subscription is easier to manage, I prefer this method.
You can read up on more variables for paypal subscriptions to control the subscriptions:
https://www.paypal.com/IntegrationCenter/ic_std-variable-reference.html#...
Enjoy and do tell if something is wrong with this method...