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-23-2008 05:22 PM

But that makes no sense.
If paidsub_complete plugin is active, $couponbit is in subscription template, and vbCoupons_couponbit exists, there should be no problem.

DssCrazy 03-23-2008 05:45 PM

dam i wish this would wor this is such a cool mod

ringleader 03-23-2008 05:46 PM

Quote:

Originally Posted by DssCrazy (Post 1472632)
dam i wish this would wor this is such a cool mod

No worries, am going to install it on a vanilla board locally now and get this sorted.

ringleader 03-23-2008 05:58 PM

Man, I don't know what kind of setup you guys have, but it installs absolutely without error on a vanilla 3.6.8PL2 board.

DssCrazy 03-23-2008 06:07 PM

vb 3.6.8 pack2

ringleader 03-23-2008 06:18 PM

It might just be your style. Do you see if the default style will show it?

You could try changing the hook locations from paidsub_start and paidsub_complete to forumhome_start and forumhome_complete, then put $coupon bit just below $footer in the FORUMHOME template.

If it shows there then we just have to work out where to put $couponbit in yours to make it show up.

stamos2003 03-24-2008 09:31 AM

well you now what I did and it's working now, I just added the whole cuponbit template to the paid subscriptions template instead of only the $couponbits, this seems to work.
So for some reason the template seems not to be called.
Maybe you should not have CAPS in the templatenames but only lowercase names?

edit: another small error is showing up when you delete an added coupon again, it says phrase coupon deleted could not be found

ChurchMedia 03-24-2008 04:09 PM

I just installed and the $couponbits section isn't showing up for me either. I haven't looked at the code yet to see if I can spot the problem.

ringleader 03-25-2008 09:03 AM

If found it :D :D

The $couponbits is supposed to be $couponbit (without the 's').

The one place I wasn't looking was in the instructions file :oops:

The product version1.1 fixes this, and includes a missing phrase when the coupon is deleted.

DssCrazy 03-25-2008 04:48 PM

Pro bud works perfect you will be getting a donation from me. 1 question, where do i gen the serial code? or where do i get it to hand how how does that work?

Thanks

ringleader 03-25-2008 07:43 PM

Quote:

Originally Posted by DssCrazy (Post 1474321)
Pro bud works perfect you will be getting a donation from me. 1 question, where do i gen the serial code? or where do i get it to hand how how does that work?

Thanks

You don't generate the codes - just add them manually for the moment under the vbCoupons menu on the left of the admincp.
To my thinking, you would just distribute this one code to everyone, and all would have the same discount value.

I don't really get what you guys mean by generating codes for vouchers/coupons.
I wouldn't have a use for it, I guess.

Could you explain that further to me (it's functioning and application) and I will certainly code it in there for the next release.

DssCrazy 03-25-2008 08:14 PM

Ok here is my example.

Now the way it is setup now is to my understanding you can get a groups of guys/gals and share that same key. The problem with this is you only wanted 5 people in and now you got 50.

Now say you got a gen this will make more then 1 key you can make as many as you wish. so if you wanted tho's 5 members and 5 members only gen 5 different keys then once thay use them thay are no good, this will stop people from taking advantage of the system.

if you still don't understand then i will try and explain better am not the greatest at it.

If you can add this would be smoking cool. do you think you can?

Thanks

ringleader 03-25-2008 08:27 PM

Quote:

Originally Posted by DssCrazy (Post 1474463)
Ok here is my example.

Now the way it is setup now is to my understanding you can get a groups of guys/gals and share that same key. The problem with this is you only wanted 5 people in and now you got 50.

Now say you got a gen this will make more then 1 key you can make as many as you wish. so if you wanted tho's 5 members and 5 members only gen 5 different keys then once thay use them thay are no good, this will stop people from taking advantage of the system.

if you still don't understand then i will try and explain better am not the greatest at it.


If you can add this would be smoking cool. do you think you can?

Thanks

Sure, why not!
Give me about a week to work it out and code it in (work gets in the way of the fun stuff!), and I'll update the version with this modification included ;)

Thanks for taking the time to explain that to me - I wouldn't have a clue what uses other people could put this to at all!
And especially thanks for sticking around while I was figuring out that problem with the template (bloody typos!).

DssCrazy 03-25-2008 08:34 PM

anytime. thank you for the GREAT release and for fixing our problems with the mod. I appreciate you willing to take some of our ideas and place them in mod.

Great work
Thanks

DssCrazy 03-25-2008 11:43 PM

Can someone please take a screen shot of where the coupon code is and then put a line under it so i know where it is?

Thanks

ringleader 03-26-2008 07:11 AM

Is this the bit you're looking for DssCrazy? [see attached pic]

The bit where to add a coupon for people to use?

DssCrazy 03-26-2008 07:28 PM

Nope i seen that part, i know how to do everything but am wondering where i can see the coupon code to hand out to members.

ringleader 03-26-2008 08:04 PM

Quote:

Originally Posted by DssCrazy (Post 1475267)
Nope i seen that part, i know how to do everything but am wondering where i can see the coupon code to hand out to members.

Ah, you Add a Coupon in the AdminCP and the name of it is the coupon code that you give out to members. They can then add it on the payments.php page, and the subscription prices will update with the coupon discount.

DssCrazy 03-26-2008 08:06 PM

OOOOOOOO ok cool.

Thanks

Benjamin-P 03-27-2008 01:54 PM

Ok everything is showing but I have noticed a big error.

My paypal account accepts payments automatically so the memer will gain it's new udergroup directly after payment. This only works when you do NOT use a coupon code. When you USE a coupon code... you pay, you return to website and you have not been upgraded to the new usergroup.

Any reason why?

ringleader 03-27-2008 02:57 PM

Quote:

Originally Posted by Benjamin-P (Post 1475875)
My paypal account accepts payments automatically so the memer will gain it's new udergroup directly after payment. This only works when you do NOT use a coupon code. When you USE a coupon code... you pay, you return to website and you have not been upgraded to the new usergroup.

That's not this hack doing that.
This only modifies the cost before it even goes to the payment processor, and has nothing to do with the callbacks, etc.

You won't change subscriptions in vbulletin if you are an undeletable user, however.
Are you set in your includes/config file as undeletable?

Unless this is happening to others?
Mine upgrades for several users, both with and without coupons.
I'm using the payPal sandbox for testing, not the live paypal server.
Still, I doubt it has anything to do with this.

ringleader 03-27-2008 03:04 PM

Hey DssCrazy,

Is this the kind of coupon code generator you're looking for? [see attached screenshots]

The coupons can be limited either until a particular date, by number of uses, or by both of these factors together.

The first pic is the particulars you want for your coupons: a prefix (if you want one), number of coupons to generate with this prefix, number of uses the coupons then are limited to (each), the dates they are valid from and until, the length you want the coupon code to be, and the value the coupons are to have (%).

Let me know if there's anything I'm missing.

Benjamin-P 03-27-2008 03:20 PM

I have changed the config and I am not set as UNDELETABLE.

Is there a way to test payment systems without having to test with real money? I'm losing out with all these transaction charges. :D

The generator would be great!!! I'm interested.

ringleader 03-27-2008 03:29 PM

Quote:

Originally Posted by Benjamin-P (Post 1475945)
Is there a way to test payment systems without having to test with real money? I'm losing out with all these transaction charges. :D

Yeah, there is (for paypal, at least).
Your board will NOT be able to accept payments while you are testing, though.

Get a login for testing purposes at http://developer.paypal.com
Create a business account (this is equivalent to the email address you normally use) and a personal account (like a customer would use).
Put the testing email address that paypal generates for your developer Business account into your payment api for paypal instead of your regular one.
Turn on IPN for your testing Business account.

Change every occurrence in includes/class_paypal.php of
www.paypal.com
to
www.sandbox.paypal.com

Now when you go to payments.php on your board it will use the testing business email from the api to connect to the sandbox.paypal.com testing server.
To pay for a payment use the login for the personal testing account that was generated for you on the paypal developers site.

DssCrazy 03-27-2008 06:09 PM

Quote:

Originally Posted by ringleader (Post 1475930)
Hey DssCrazy,

Is this the kind of coupon code generator you're looking for? [see attached screenshots]

The coupons can be limited either until a particular date, by number of uses, or by both of these factors together.

The first pic is the particulars you want for your coupons: a prefix (if you want one), number of coupons to generate with this prefix, number of uses the coupons then are limited to (each), the dates they are valid from and until, the length you want the coupon code to be, and the value the coupons are to have (%).

Let me know if there's anything I'm missing.

This is looking REALLY GOOD. Question tho. When using the gen keys when you use it will it no longer be able to be used? because if you can still use it after the first time thay can hand out and then everyone will have it. where is if it auto del that coupon code after first use it will be PERFECT.

That was quick

Thanks

ringleader 03-28-2008 08:09 AM

Quote:

Originally Posted by DssCrazy (Post 1476074)
This is looking REALLY GOOD. Question tho. When using the gen keys when you use it will it no longer be able to be used? because if you can still use it after the first time thay can hand out and then everyone will have it. where is if it auto del that coupon code after first use it will be PERFECT.

Yeah, there's a bit where you enter how many times each coupon can be used, so if it's used once then it can't be used again.
That way, you can do a 'Bring a friend for the same discount' or a 'two for one'.
It can also be set to expire by time, so if it isn't used by them it'll expire when you set it to.

Should be done completely by Sunday or early next week at the latest ;)

regitbull 03-28-2008 11:54 AM

Quote:

Originally Posted by ringleader (Post 1476578)
Yeah, there's a bit where you enter how many times each coupon can be used, so if it's used once then it can't be used again.
That way, you can do a 'Bring a friend for the same discount' or a 'two for one'.
It can also be set to expire by time, so if it isn't used by them it'll expire when you set it to.

Should be done completely by Sunday or early next week at the latest ;)

Good job with continu updating your mod.
This forum needs more people like you :)

2guys1forum 03-28-2008 12:44 PM

I just downloaded this great mod. I have a problem thoug :/

I have uploaded files, installed the xml file and done the template edits, but when i get to the file edit step i get a problem. When i search for
Code:

$string .= "<option value=\"{$key}_{$currency}\" >" . $subobj->_CURRENCYSYMBOLS["$currency"] . $value ."</option>\n";
it doesn't find anything. 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 :/

- Jacob

DssCrazy 03-28-2008 01:15 PM

Quote:

Originally Posted by ringleader (Post 1476578)
Yeah, there's a bit where you enter how many times each coupon can be used, so if it's used once then it can't be used again.
That way, you can do a 'Bring a friend for the same discount' or a 'two for one'.
It can also be set to expire by time, so if it isn't used by them it'll expire when you set it to.

Should be done completely by Sunday or early next week at the latest ;)

PERFECT!

Thanks

DssCrazy 03-28-2008 01:17 PM

Quote:

Originally Posted by regitbull (Post 1476684)
Good job with continu updating your mod.
This forum needs more people like you :)

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.

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 05:57 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.01385 seconds
  • Memory Usage 1,848KB
  • 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
  • (3)bbcode_code_printable
  • (17)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