vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Temporary discount subscription (https://vborg.vbsupport.ru/showthread.php?t=227512)

jmpa 11-05-2009 10:00 PM

Temporary discount subscription
 
1 Attachment(s)
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:
PHP Code:

if ($subscription['active']) { 

Replace:
PHP Code:

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



Find:
PHP Code:

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

Replace:
PHP Code:

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/showthrea...t=subscription

Manoel J?nior 06-24-2011 02:54 PM

Neither of these does not work if you have:

https://vborg.vbsupport.ru/showthrea...=263521&page=7

:(


All times are GMT. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00970 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete