PDA

View Full Version : Paid subscriptions with special price for selected usergroups


luroca
05-27-2005, 10:00 PM
Please, excuse my poor English.
This hack allows to assign to paid subscriptions a special price for selected primary usergroups.
This hack has been requested several times, included me, and I was tired to wait that somebody writes it. Thanks very much to amykhar for her help with the pay system files.
This hack is totally compatible with another hack of mine: Paid subscriptions only available for some usergroups, at https://vborg.vbsupport.ru/showthread.php?t=81854

ATENTION: It?s only tested with paypal but I think all this files are similar and they must work.

The hack works OK for me but I don?t accept any liability; use at your own risk.

2 queries to run
2 new phrases
3 files to edit (or 6 if you use all paysystems)
/admincp/subscriptions.php
/forum/subscriptions.php
/subscriptions/paypal.php (wordpay.php - nochex.php - authorize.php)

As always, first, backup of files and database :)

nexialys
05-28-2005, 01:26 PM
this is a great idea... but i think it's not logical... would be better to have a text field for each usergroup and set the amount for each specific, so we can very focus on each usergroup...

and logically, this becomes are real mess when you have users with multiple usergroups... is the primary group used for identification, or all usergroups... because if i'm member of the group X, Y and Z, and one of your subscription have rebates for group X and have a higher fee for Y, you will have strange behaviors....

luroca
05-28-2005, 01:51 PM
this is a great idea... but i think it's not logical... would be better to have a text field for each usergroup and set the amount for each specific, so we can very focus on each usergroup...

and logically, this becomes are real mess when you have users with multiple usergroups... is the primary group used for identification, or all usergroups... because if i'm member of the group X, Y and Z, and one of your subscription have rebates for group X and have a higher fee for Y, you will have strange behaviors....
Probably you are right but this is a very simple hack that only offers the possibility of a minor price in several subscriptions to some usergroups. I edit the first post to add that only works for primary usergroups.

Thanks for your interest.

Marco van Herwaarden
05-28-2005, 02:11 PM
Amy is a 'she' ;)

luroca
05-28-2005, 02:18 PM
Thanks, MarcoH64, edited.
Amykhar, my excuses.