PDA

View Full Version : Miscellaneous Hacks - Temporary discount subscription


jmpa
11-05-2009, 10:00 PM
Say you want to do a temporary/introductory/launching promotion like for instance:

First users who subscribe will have a lifetime discount!

Its not possible with current vb subscription settings, since you would have to put the subscription as "not active" and thus the recurring payments will not be processed.

Here's how to it on a very easy way:

Open payments.php

Find:

if ($subscription['active']) {


Replace:

if ($subscription['active']) {
if ($subscription['subscriptionid'] > 2) {




Find:

eval('$subscriptionbits .= "' . fetch_template('subscription_availablebit') . '";');
}


Replace:

eval('$subscriptionbits .= "' . fetch_template('subscription_availablebit') . '";');
}
}



Now make sure the promotional subscriptions id are < 2.

That's it, from now on those will not show up.

lawina
06-24-2011, 12:22 PM
The problem with this is that at the payment page (payments.php) it will still show the old subscriptions, which is very confusing.

MagicThemeParks
06-24-2011, 02:07 PM
Here's an option for allowing discounts to subscriptions that was already released: https://vborg.vbsupport.ru/showthread.php?t=211544&highlight=subscription

Manoel J?nior
06-24-2011, 02:54 PM
Neither of these does not work if you have:

https://vborg.vbsupport.ru/showthread.php?t=263521&page=7

:(