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)

EeeZee 09-23-2008 06:58 PM

I just installed this mod and find the max value for a coupon is 99. I need three digits because we deal with larger ticket items. Is there a quick mod? Also, I can't get rid of the not accepted currencies in the subscription cost listing. I know this is somewhat unrelated but need advice.

Update: I tinkered and now it is accepting three digit reductions. Nice little mod. Now if I could get rid of the unwanted currencies that are showing in the subscription section :)

regitbull 10-13-2008 05:47 PM

uuhm i just discovered a bug.

If you put 2 options in 1 subscription

Like $15 for 1 month and $50 for 3 months then there wont be a discount on any of thoose 2.

Could you please fix this ringleader.

Or does any1 else know how to fix this?

abound 12-28-2008 03:57 PM

Ringleader,

I realize that this mod is currently limited to subtracting a discount from a subscription price, but adding just one piece of functionality outside that scope would make this mod perfect for me:

In payments.php, if you could add a check that when the cost is empty AND a coupon is used, then instead of issuing an error that the wrong currency was chosen, it simply skips payment, and goes to the next step, where the user is added to whatever group goes with the subscription.

Also, your latest posted version of vbcoupon was last April. You were hoping to get to several user requests at around the beginning of September. How's that coming? I want to install the mod, but will hold off if you're preparing for another release soon.

Cars2007 01-07-2009 06:37 PM

Quote:

Originally Posted by forumguy (Post 1596449)
Yes, I also have the same problem.

The problem is vbulletins system checks the paid amount against the amount you have set in your paid subscription to make sure they match (sort of a security check).

The coupon changes the value of the amount making them not match.

Has anyone found away around this yet?

We found a fix for this. Unfortunately, it is a script hack. But maybe it will do fine until the developer creates a more permanent fix.

We are using PayPal and made the following edits in includes/paymentapi/class_paypal.php:

Find:
PHP Code:

$this->paymentinfo $this->registry->db->query_first("
SELECT paymentinfo.*, user.username 


Add 'user.userid' to the select so that it now looks like this:
PHP Code:

$this->paymentinfo $this->registry->db->query_first("
SELECT paymentinfo.*, user.username, user.userid 


Find:
PHP Code:

if ($mc_gross == doubleval($cost["{$this->paymentinfo[subscriptionsubid]}"]['cost'][strtolower($this->registry->GPC['mc_currency'])])) 


Add this code right before it:
PHP Code:

$temp $this->registry->db->query_first("
SELECT couponid FROM " 
TABLE_PREFIX "user 
    WHERE userid = '" 
$this->paymentinfo['userid'] . "'
"
);
if(
$temp['couponid']!=''){
    
$mc_gross doubleval($cost["{$this->paymentinfo[subscriptionsubid]}"]['cost'][strtolower($this->registry->GPC['mc_currency'])]);



MadK 01-11-2009 07:33 PM

ringleader, any news?

LCN2007 01-19-2009 05:25 PM

Quote:

Originally Posted by tspore (Post 1524418)
A very nice hack, With 3.7, I found a issue though.
I made the security fix above, so the token works, but when I apply a coupon, the values of the subscription are not updated, can anyone give me some help for this to be fixed?

I have attached a photo of the test board.

I am having this same issue, can anyone help?

Also i have seen a few people say they have the pro version where is this located.

Im running 3.7.2

LCN2007 01-22-2009 06:31 PM

Anyone?

bwcbob 01-23-2009 02:21 AM

Can you make it so the coupon can only be used 1 time for only 1 certain paid subscription that will be unbuyable?

LCN2007 01-26-2009 10:51 PM

ringleader you still supporting this one?

valgar 01-28-2009 08:58 PM

Quote:

Originally Posted by abound (Post 1695584)
Ringleader,

I realize that this mod is currently limited to subtracting a discount from a subscription price, but adding just one piece of functionality outside that scope would make this mod perfect for me:

In payments.php, if you could add a check that when the cost is empty AND a coupon is used, then instead of issuing an error that the wrong currency was chosen, it simply skips payment, and goes to the next step, where the user is added to whatever group goes with the subscription.

Also, your latest posted version of vbcoupon was last April. You were hoping to get to several user requests at around the beginning of September. How's that coming? I want to install the mod, but will hold off if you're preparing for another release soon.


I would love to have this functionality also, as it would work perfectly with some free subscriptions I would look to put out, yet keep some paid subscriptions active also.


All times are GMT. The time now is 03:40 PM.

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.01533 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)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