vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - vbCoupons - offer money-off coupons for paid subscriptions (https://vborg.vbsupport.ru/showthread.php?t=173778)

ringleader 03-28-2008 02:21 PM

Quote:

Originally Posted by DssCrazy (Post 1476738)
I was thinking the same thing. This mode is wicked and the thing that makes it even better is the coder is dedicated to his work.

Thanks guys :D

That someone wants to use it is reason enough to keep doing this!

Quote:

Originally Posted by 2guys1forum (Post 1476713)
The closest thing i can find is:
Code:

$string .= "<option value=\"{$key}_{$currency}\" >" . $subobj->_CURRENCYSYMBOLS["$currency"] . vb_number_format($value, 2) . "</option>\n";
If it add the code above that, nothing happens with the price when the coupon is added :/

That's the right line in payments.php alright :)

When the coupon is added by the user in the coupon form on their payments.php page, it should thank them and redirect you to the payments.php page again where the costs are updated.
Does this all happen this way for you?

It will not update anything if you just enter a coupon in the admincp - the user must use the coupon on their payments.php page.

2guys1forum 03-28-2008 04:31 PM

It thanks me for adding a coupon and takes me back to the payments.php page, but the prices haven't been updated :/

ringleader 03-28-2008 05:02 PM

Did you add a number ONLY for the value (and no % sign or anything) when making the coupon?
Because the file edit above just takes away YourValue% from the price of a normal subscription for a person.

DssCrazy 03-28-2008 05:12 PM

Just thought of somthing.

If you got 2 payment groups and you add the coupon it discounts both groups would their be a way to have it so it will only discounts the 1's you pick?

ringleader 03-28-2008 05:14 PM

Like a coupon that only works on a certain subscription?
Sure can do that!

I'll include it with the next generator version.

(See, I never think of these things because I've only got one subscription! ;) Thanks!)

bada_bing 03-28-2008 05:16 PM

I have a question. Currently I have 3 subscription options which are as follows

subscription 1 = $xxxx monthly
subscription 2 = $xxxx quarterly
subscription 3 = $xxxx yearly

I noticed that when you create a coupon code this take effect for all subscriptions that are available. I would like to see that when you create a vbcoupon that you can choose which subscription you want to apply it too. For example if I only want to give 30% off for the monthly subscription and not for the yearly subscription.

Also if someone uses this coupon for a % off your subscription and you have auto renew enabled for paypal does this take the % off everytime it renews or only once?

ringleader 03-28-2008 05:21 PM

Quote:

Originally Posted by bada_bing (Post 1476970)
I have a question. Currently I have 3 subscription options which are as follows

subscription 1 = $xxxx monthly
subscription 2 = $xxxx quarterly
subscription 3 = $xxxx yearly

I noticed that when you create a coupon code this take effect for all subscriptions that are available. I would like to see that when you create a vbcoupon that you can choose which subscription you want to apply it too. For example if I only want to give 30% off for the monthly subscription and not for the yearly subscription.

DssCrazy got there before you ;)
It will be in the next version (next week some time, or before).

Quote:

Also if someone uses this coupon for a % off your subscription and you have auto renew enabled for paypal does this take the % off everytime it renews or only once?
That would be PayPal - if you send a recurring payment through to paypal it will always charge at the initial price that was passed through.
If you discount a person once, they will always get it with a recurring subscription (or so my knowledge of it says; feel free to correct me if otherwise).

However, if you mean that the person renews their subscription by going through the payment system again (and sending the price again), then it can be changed, since the coupon will expire when you set it to.

In a nutshell: if the price is sent through your payments system on vbulletin to paypal (or any other) it will recalculate the price. If the coupon is no longer valid, the discount will no longer be applied.

DssCrazy 03-29-2008 02:33 PM

If a member has 2 coupon codes will it allow him to type them both in?

ringleader 03-29-2008 06:04 PM

Quote:

Originally Posted by DssCrazy (Post 1477631)
If a member has 2 coupon codes will it allow him to type them both in?

No it won't.
A user can only hold one coupon at a time. If a new coupon is entered, it overwrites any previous one they had.

And therefore only get one discount at a time; that way, it prevents accumulation of discounts for one subscription.

I'd prefer to keep it that way as well, as it would be difficult to monitor many coupons in one person's account.

2guys1forum 03-29-2008 08:42 PM

Quote:

Originally Posted by ringleader (Post 1476955)
Did you add a number ONLY for the value (and no % sign or anything) when making the coupon?
Because the file edit above just takes away YourValue% from the price of a normal subscription for a person.

I tried with and without %, nothing both times :/


All times are GMT. The time now is 08:06 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.01422 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete