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)

jasculs 05-03-2008 11:09 PM

Quote:

Originally Posted by regitbull (Post 1505730)
nice updates on the mod.
i havend check this mod for 3 weeks and i must say that its 10 times better now with all the extra features.
But i have 1 req.
Could you give us the option to or select a discount PERCENTAGE or a MONETARY VALUE.
Because the problem with monetary values is that it use the same discount on all money values.
So when you fill in 10,00 in the discount then it gives 10,00 usd discount but also 10,00 euro discount.
So it will use the same value for all money types.

Would be cool if you could give us the option to choose between PERCENTAGE or MONETARY VALUE.

Anway great job with the updates :D

Very good request...would be great to see this.

DssCrazy 05-08-2008 01:02 AM

Ringleader, can you please update this to work with 3.7.0?

Thanks

tspore 05-19-2008 05:50 AM

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.

stamos2003 05-29-2008 06:57 PM

I applied the token-fix but it still says that the token is missmatched, what did I wrong?!

edit: i edited the wrong template :D

JackThomson120 06-01-2008 02:57 AM

Just say I wanted to make a subscription free, so I took the full price of the subscription off. It now says ?0.

But when you complete your owner, It says:
Quote:

An invalid currency was selected.
Is there any way around this?

ringleader 06-01-2008 04:59 PM

Quote:

Originally Posted by JackThomson120 (Post 1537512)
Just say I wanted to make a subscription free, so I took the full price of the subscription off. It now says ?0.

But when you complete your owner, It says:


Is there any way around this?

There is currently no way to make the subscription free when using the payment API's.
You can do this is using the promotions system.

I'm off work in a week, so i'll get on to the problems listed here then. Hope that's okay with folks :)

izam 06-20-2008 07:45 AM

there's any tutorial on how to use VBCoupon?

raagaswaram 06-23-2008 12:08 AM

thanks nice product

raagaswaram 06-23-2008 12:33 AM

i entered the coupon code and stuff in the box then it says check your updated prices but the prices didnt change then when i check the adminpanel the value for Number of uses each coupon has goes to 0 and when i set it to 1 again the prices updates any idea why?

stamos2003 06-24-2008 03:07 PM

I use the % system and I try to give 30% discount which works so far ok, but when it goes to paypal payment paypal gives an error and says that the ammount for the payment is not right.
what is this?!

edit: i installed everything from the scratch but version 1.3 wont work with paypal, paypal always complains that the amount is not right. what's going wrong?

edit2: the version 1.4 does the same, paypal wont accept the payment:
The link you have used to enter the PayPal system contains an incorrectly formatted item amount

edit3: as I see at the source the form contains
<input type="hidden" name="amount" value="7,00" />
put it must be a "." instead of a ",":
<input type="hidden" name="amount" value="7.00" />

how can I change this?!

stamos2003 06-27-2008 02:35 PM

seems like the problem is bigger.
thx. for the support :-(

redg8r 06-28-2008 04:18 PM

Anyone using this successfully with VB 3.7.x??

tspore 06-28-2008 05:43 PM

I got it working just make sure that the security token is in place, and be careful, of the phrasings.
Link to security token post 152.

winpro19 07-15-2008 01:23 PM

I am having a slight problem with this...the payment goes through and everything, but I have setup so that upon purchasing a subscription, a user's usergroup changes to "Paid Members" instead of "Registered". But the thing is, the subscriptions are not going through successfully. I get the payment in Paypal, however the user does not get updated.
I checked transaction log, and this is what it states:

HTML Code:

vb_error_code          invalid_payment_amount
GET
method        paypal
POST
payment_date        17:44:23 Jul 14, 2008 PDT
txn_type        web_accept
last_name        blabla
residence_country        US
item_name        1 Month Subscription
payment_gross        8.75
mc_currency        USD
business        [email]blabla@yahoo.com[/email]
payment_type        instant
verify_sign        AoS.E.blabla
payer_status        verified
tax        0.00
payer_email        [email]blabla@hotmail.com[/email]
txn_id        blabla
quantity        1
receiver_email        [email]blabla@yahoo.com[/email]
first_name        blabla
payer_id        blabla
receiver_id        blabla
item_number        blabla
payment_status        Completed
payment_fee        0.55
mc_fee        0.55
shipping        0.00
mc_gross        8.75
custom        username
charset        windows-1252
notify_version        2.4

Any fix? This is urgent for me...as I mass-emailed everyone and gave them the coupon code, but now noticed this problem =O

redg8r 07-15-2008 07:31 PM

Hi,

I had pretty much the same issue, but found out it wasnt the coupon mod, but a mis-setting in the paypal subscription API.

This thread helped me:
http://www.vbulletin.com/forum/showthread.php?t=255511

I had inadvertently changed my paypal primary email & didnt update it thru the VB subscription options.

BTW, this mod is working fine on 3.7
Thank you!

winpro19 07-16-2008 02:50 AM

Really appreciate your reply redg8r, and I read that forum - it seems as if I'm abiding by all those rules.

Thing is that payments that a coupon wasn't used on are working fine, but when a coupon is used - it doesn't go through. Says invalid amount as I pasted above. (I receive the payment, however Vbulletin does not activate the user).

Any help would be greatly appreciated.

Thanks

tspore 07-16-2008 03:03 AM

Quote:

Originally Posted by winpro19 (Post 1576477)
Really appreciate your reply redg8r, and I read that forum - it seems as if I'm abiding by all those rules.

Thing is that payments that a coupon wasn't used on are working fine, but when a coupon is used - it doesn't go through. Says invalid amount as I pasted above. (I receive the payment, however Vbulletin does not activate the user).

Any help would be greatly appreciated.

Thanks

I am in the same boat as you. With a regular paid subscription things are fine, with a coupon it doesn't activate the subscription in the ADMINCP

forumguy 08-11-2008 07:25 PM

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?

ringleader 08-13-2008 08:10 PM

Hey guys, I've been reading the posts and keeping up with the bug reports on this thread, but I've been snowed under with work for the past while (new job and all that jazz).

I will be free in about 2 weeks to begin working on this again immediately. Thanks for supporting the mod! Apologies for not getting the time to respond earlier.

MadK 09-16-2008 06:31 PM

Quote:

Originally Posted by ringleader (Post 1598011)
Hey guys, I've been reading the posts and keeping up with the bug reports on this thread, but I've been snowed under with work for the past while (new job and all that jazz).

I will be free in about 2 weeks to begin working on this again immediately. Thanks for supporting the mod! Apologies for not getting the time to respond earlier.

Hey, any news on the development? :)

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.

LCN2007 02-01-2009 10:23 PM

:( walks around head down awaiting support

thelulz 02-03-2009 08:07 PM

I got this error;

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Tilly 02-15-2009 01:57 PM

too bad this would be a great add on

andeelym 02-25-2009 02:02 AM

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.

Personally, I do not think the problems lies with the mod. The mod is doing its job well enough. But anyone knows how to go about skipping the invalid currency error when the amount becomes 0?

I also discover a bug when i tried to set a coupon for a one-time only use. Apparently, if I set the coupon use to 1, the coupon will not work. But if I want it to be used for only one time, I have to set the value to 2. Anyone face this same issue?

820Media 03-02-2009 01:48 PM

this looks like a great mod, any chance of making one for vbulletin 3.8?

benstillman 03-06-2009 12:34 AM

Quote:

Originally Posted by jetgaming (Post 1758504)
this looks like a great mod, any chance of making one for vbulletin 3.8?

ditto

Mondi 03-22-2009 07:52 AM

Quote:

this looks like a great mod, any chance of making one for vbulletin 3.8?
And again: Ditto.

Looks promising. Would like to take a look at it.

However, seems Ringleader has gone AWOL - which should be an invite to someone else to take this over?

I wish I could... Would love to get this Mod up-and-running...

Sunray2 04-03-2009 06:59 PM

Ditto, Ditto!! for 3.8.x:D

820Media 04-16-2009 08:38 PM

It Works With 3.8.2!

Download it and read all the instructions and do what it says then:

Fine Template vbcoupons Templates > Expand > vbCoupons_couponbit > Edit >

Find The First Form:

Code:

</form>
Add Above:

Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
2nd form:

Code:

</form>
Add Above:

Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
-----

This should now work if you followed these steps and the steps in the installation file.

Test Board: http://forums.jetgaming.org

Pics:

http://i233.photobucket.com/albums/e...ler/coupon.jpg

http://i233.photobucket.com/albums/e.../couponadd.jpg

LCN2007 04-16-2009 10:08 PM

1.4 version?

Are you sure its actually working have you tried to use it to see if it deduct when you actually have to make the payment thru paypal or which ever service. thats where i ran into issues it looked as if it was working but it wouldn't recalculate when it went through the payment api.

I cant see the pics im at work photobucket is blocked, so ill look when i get home.

I wish ringleader would port this to 3.8 or any coder for that matter.


All times are GMT. The time now is 07:41 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.01524 seconds
  • Memory Usage 1,855KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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