View Full Version : Mini Mods - vbCoupons - offer money-off coupons for paid subscriptions
ringleader
03-21-2008, 10:00 PM
vbCoupons v1.4
About this mod:
This hack allows the user to input a coupon code that deducts the value of it from the subscription costs before they go to pay for a subscription.
For example:
1. You advertise for new members and have and advert saying 'Join before the end of April and get 40% off the first month! Just register and enter coupon code OFFER1"
2. In Admincp -> vbCoupons you configure a coupon called OFFER1 with value of 40, and set a date for the validity of the coupon.
3. User registers, and enters coupon code OFFER1 on the payments.php page. The page updates the normal subscription prices to reflect the offer. Then they go to pay for it.
Notes:
1. Since the offer code expires when you set it to, the users will not be able to renew with that coupon unless the subscription runs out before the coupon validity does; thus it's better to use short-validity coupons and constantly change them.
2. The value of the coupon in the Admin Panel is given as a monetary value, e.g. a coupon with value 3.50 will give $3.50 (?3.50; ?3.50, depending on currencies activated) off paid subscription before the user goes to pay for it.
Features:
* Manage Coupons: Singly Add/Edit/Delete; Mass-delete.
* Set coupon valid for particular subscription ID's.
* Limit use by date or times it can be used.
* Mass-Generate coupons for distribution.
* Generate coupon discount codes and post to a new thread in a specified forum. A message may be sent with the codes. You can decide the thread title too.
* Input on features you would like to see for this hack is very welcome, but may not be possible to implement.
Time to install: 5 mins
UPGRADING: Do NOT choose 'yes' to overwrite an old xml or you will get an error!
Updates:
Version 1.0 (22nd March 2008):
* Release of this hack for vBulletin version 3.6.8
* This version should work on all vBulletin versions from 3.5.4 and up
Version 1.1 (25th March 2008):
* Fixed missing phrase
* Fixed non-functioning template call
Version 1.2 +1.3 (30th March 2008):
* Added coupon generator to this version
* Added ability to limit coupons to only be valid for a particular paid subscription.
Version 1.4 (14th April 2008):
* Generate coupons and post to thread
* Coupons can be limited to one or more subscriptionids
* MONETARY VALUES RATHER THAN PERCENTAGES ARE USED FROM NOW ON
MAKE SURE YOU CLICK INSTALL! (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=173778)
If you like this hack and use it then https://vborg.vbsupport.ru/external/2008/03/6.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=frances%2esmyth%40gmail%2ecom&item_name=vbCoupons&no_shipping=0&no_note=1&tax=0¤cy_code=EUR&lc=IE&bn=PP%2dDonationsBF&charset=UTF%2d8)
Pictures (attached):
1. User (payments.php): Normal view before user adds a coupon that you configured in the admincp.
2. User (payments.php): View after the user adds a coupon to their account, with the new prices reflecting it.
3. Admin: Manage Existing Coupons
4. Admin: Add a single coupon discount code
5. Admin: Mass-generate coupons
6. Admin: Mass-generate coupons and post to a new thread
7. User: Thread view of mass-generated and posted coupon discount codes
ringleader
03-22-2008, 02:18 AM
***** First post reserved, in case of need ****
neonneon
03-22-2008, 02:27 AM
Where is the Subscription template?
I dont see it in my templates list...
ringleader
03-22-2008, 02:29 AM
Apologies, it's in the Paid Subscription Templates >> subscription
neonneon
03-22-2008, 02:31 AM
Thank you very much
:)
bwilky
03-22-2008, 02:33 AM
Sweet. Thank you sooo much :)
neonneon
03-22-2008, 02:50 AM
I feel like a retard, but how do you add new coupons?
ringleader
03-22-2008, 03:02 AM
I feel like a retard, but how do you add new coupons?
edit: uh oh. Maybe not in your one.
Si?cra (expletive).
The damn updated xml wasn't packaged with it.
Upload the one attached to this post to your ./includes/xml/ directory and it will show for you when you refresh your admincp.
Sorry about that - obviously I'm the thick one around here :)
I have updated the original zip with this xml file.
Lionel
03-22-2008, 03:36 AM
Suggestions: Can you auto generate (md5) the coupons names with a prefix that we set, e.g. Easter-1x54uy6yzt
Can you add an option to generate multiple coupons at once?
ringleader
03-22-2008, 03:44 AM
Suggestions: Can you auto generate (md5) the coupons names with a prefix that we set, e.g. Easter-1x54uy6yzt
Can you add an option to generate multiple coupons at once?
Like bulk-add some coupons that you can then use to distribute and track in various places?
That's entirely possible with some simple options.
Explain the use of this more so I don't get it wrong, please :)
Lionel
03-22-2008, 03:52 AM
You've got it right: bulk adding them so you could mass mail them. Tracking will be nice
codershark
03-22-2008, 07:31 AM
I cant see the settings in ACP on vbulletin 3.7 RC1
ringleader
03-22-2008, 07:32 AM
Actually, I went off and had a think about what you said Lionel, and I don't think your suggestion is needed for this hack (not in the way I'm thinking about it anyway).
For example: if you create a single coupon, it's valid to be used by anyone who has the code.
So if you create the coupon 'Easter' and email it to certain people for a 50% off offer, they can all use that code. The hack only takes the value of a particular coupon off a persons potential payments; it doesn't discriminate about who owns the code.
Unless you mean to add person-specific coupons to people, in which case they could post theirs all over the internet (the same way as if there was only one code in existence) and everyone who had it could still use it.
It would defeat the purpose of anything if a single code were assigned to a single person, creating a great many queries for your board with little comparative return.
Unless, of course, you mean something entirely different in the first place ;)
ringleader
03-22-2008, 07:59 AM
I cant see the settings in ACP on vbulletin 3.7 RC1
Do you have admin permissions 'Can Admin Users'?
I would presume anyone installing or using this would.
Go to Usergroups -> Administrator Permissions and check yours, just to be sure.
Force a refresh of your admincp, i.e. the whole page, so that the panels on the left are regenerated.
The ./includes/xml/cpnav_vbcoupons.xml is what makes the link in the admincp, so if you have that file, you should have the menu too.
I even downloaded v3.7RC1 to check, and there's nothing in this mod that shouldn't work on it, and it should even work on 3.5.4 as well.
ringleader
03-22-2008, 09:43 AM
Minor Update for those who have installed this mod at this time:
Go to Plugin Manager -> Find Fetch Coupon Template -> Edit.
Change hook location from paidsub_list_available to paidsub_complete or the coupons bit will show multiple times on the payments.php page.
Everyone else: never mind this if you're just downloading the mod after this post :)
stamos2003
03-22-2008, 11:38 AM
look promissing, i will give it a try :)
edit: the coupon enter field is not showing up in the subscriptions?! (vb 3.6.8)
ringleader
03-22-2008, 12:50 PM
look promissing, i will give it a try :)
edit: the coupon enter field is not showing up in the subscriptions?! (vb 3.6.8)
This should do the trick:
uninstall the old product, and install this one attached to this post.
stamos2003
03-22-2008, 02:04 PM
still nothing....
weird?!
I even added the template manually but nothing.....
regitbull
03-22-2008, 02:15 PM
nice to see this released.
I just paid for this mod + some other functions.
Anyway nice release :)
ringleader
03-22-2008, 02:49 PM
still nothing....
weird?!
I even added the template manually but nothing.....
DId you follow the instruction to add the word $couponbit after </form> in your Paid Subscription Templates -> subscription, perhaps :confused:
And check the plugin called Fetch Coupon Template is active?
That's the only 2 other reasons it wouldn't be working for you.
nice to see this released.
I just paid for this mod + some other functions.
Anyway nice release :)
Thanks. I'm a big believer in the free exchange and discussion of other peoples ideas ;)
That, and I couldn't be bothered setting up a way to charge people for such things... :D
bada_bing
03-22-2008, 05:12 PM
This sounds pretty cool.... I will concider this soon
KeyStalker
03-22-2008, 07:26 PM
I installed this, and just like the other guys the coupon thing isn't showing up. But everything in admincp looks fine.
DssCrazy
03-22-2008, 07:45 PM
Same for me installed everything all looks good in admincp but does not show up on board
DssCrazy
03-22-2008, 08:09 PM
I will be the first to donate if you can get this mod working.
member007
03-22-2008, 08:14 PM
I notice that there're 2 duplicate vbcouponsv1.0 files...which one to use?
ChurchMedia
03-22-2008, 10:39 PM
Nice! I've been waiting for this forever! I'll send you a donation for it soon.
Thanks! :)
DssCrazy
03-22-2008, 10:59 PM
ChurchMedia, did you get it to work? if so please xplain what you did
thanks bro
ChurchMedia
03-22-2008, 11:04 PM
I haven't tried it yet. Easter is a busy weekend for us, so I'll give it a go next week and let you know!
DssCrazy
03-22-2008, 11:08 PM
ok cool
thanks
Skyline_GT
03-23-2008, 10:23 AM
Very nice mod. Will install this
stamos2003
03-23-2008, 10:44 AM
DId you follow the instruction to add the word $couponbit after </form> in your Paid Subscription Templates -> subscription, perhaps :confused:
And check the plugin called Fetch Coupon Template is active?
That's the only 2 other reasons it wouldn't be working for you.
yes, plugins are active and the templates are there, still not showing up.
As I see I am not the only one.
Which Version do you have?
ringleader
03-23-2008, 02:41 PM
Sorry for the last time. I made a typo in the call to the couponbit template when I packaged the last one.
A new one is uploaded that calls everything correctly now.
Just overwrite everything (files and product) with the files in this new zip.
stamos2003
03-23-2008, 04:07 PM
it's still not working?! :D
I replaced everything and redid everything....
ringleader
03-23-2008, 04:28 PM
it's still not working?! :D
I replaced everything and redid everything....
Do you have a template called vbcoupons Templates >> vbCoupons_couponbit
when you install the product?
And a Plugin under hook called paidsub_complete with the content:
$user_coupon_name = get_coupon();
eval('$couponbit .= "' . fetch_template('vbCoupons_couponbit') . '";');
And $couponbit at the bottom of your Paid Subscription Templates >> subscription template
And have a subscription set in your Paid Subscriptions - Subscription Manager.
Because if you have those four things there's absolutely no reason the template would not show on your payments.php page.
Since you didn't mention getting a white screen on your payments.php after doing the file edit, the rest of the code besides the couponbit is fine.
ringleader
03-23-2008, 04:30 PM
Wait a second, sven/stamos2003, I just checked your profile and it says you have version 3.5.3
If that's right, this might not work on your board since the hooks it uses wouldn't have been invented until at least 3.5.4 :mad:
stamos2003
03-23-2008, 04:46 PM
no worries, I just did not update my profile, I have 3.6.8
I have the template vbCoupons_couponbit
and I have following plug ins:
Add, Delete, Deduct Coupon For User Hookpoint: paidsub_start
Cache Coupon Template Hookpoint: cache_templates
Create Template Group Hookpoint: template_groups
Fetch Coupon Template Hookpoint: paidsub_complete
ringleader
03-23-2008, 04:54 PM
Okay then, there's just two more things to check:
1. Does the hook under paidsub_complete say what's quoted above?
2. Do you have any subscriptions for people to pay for? The coupon template won't be called, otherwise.
EDIT: Oh, and most importantly, did you edit the template Paid Subscriptions Templates >> subscription and place the word $couponbit AFTER </form>
DssCrazy
03-23-2008, 05:08 PM
i have uploaded everything and i still can't see it also.
ringleader
03-23-2008, 05:11 PM
I know it's a lot to ask, but could one of you give me access to your admincp to see the difference between your set up and mine for this mod?
DssCrazy
03-23-2008, 05:12 PM
i have checked everything and i can't see what went wrong.
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
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
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
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
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
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
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
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
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
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 $string .= "<option value=\"{$key}_{$currency}\" >" . $subobj->_CURRENCYSYMBOLS["$currency"] . $value ."</option>\n"; it doesn't find anything. The closest thing i can find is: $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
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
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
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!
The closest thing i can find is: $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
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).
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
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
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 :/
DssCrazy
03-29-2008, 09:50 PM
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.Ok cool just making sure it does not because people could just gather coupons lol.
Is the Update still on track for tomorrow?
Thanks
ringleader
03-30-2008, 01:52 PM
I tried with and without %, nothing both times :/
If the coupon date is not valid (i.e. it has passed/expired) it will show as having been added to the user, but will not deduct any value from the subscription cost.
I have updated the mod to include the coupon generator as well now.
2guys1forum
03-30-2008, 02:22 PM
Everything is working now :D I don't really know what did the trick, but it works.
Thanks for the fast support and a great mod ;)
DssCrazy
03-30-2008, 02:31 PM
New update crashes get a database error when uploadaing xml file.
here is what i did reuploaded everything.
then tried to up load the xml threw the admin cp and got this database error
DssCrazy
03-30-2008, 02:36 PM
Fixed: Do Not Try And Overwrite Other Wise You Will Get A Database Error. Uninstall the old vb coupons XML and reinstall the NEW
Thanks
ringleader
03-30-2008, 03:20 PM
Guys you are way too fast for me! I hadn't even sent an update yet.
The reason being there's other bits in the new update.
version 1.3 allows the coupons only to be used on particular paid subscriptions, so you can offer them on a per-subscription basis (as requested by bada_bing and DssCrazy).
This changes the way the files process things, so please re-do the file edits in the Install Guide again if you had an earlier version installed.
I also fixed the xml install so that there should not be any errors on upgrade.
Hope it's all okay for you all! :D
DssCrazy
03-30-2008, 03:28 PM
I'll test it now.
DssCrazy
03-30-2008, 03:31 PM
Question do i need to do the payment.php edits again? if i don't need to then tell me REALLY don't feel like doing them lol
ringleader
03-30-2008, 03:34 PM
Question do i need to do the payment.php edits again? if i don't need to then tell me REALLY don't feel like doing them lol
Yeah you do, unfortunately.
The function that checks the cost of the subscription and updates it now also checks the subscriptionid that it's valid for as well. The only way I could find to do it was to change that :(
bada_bing
03-30-2008, 03:40 PM
Yeah you do, unfortunately.
The function that checks the cost of the subscription and updates it now also checks the subscriptionid that it's valid for as well. The only way I could find to do it was to change that :(
So basically revert the edits in payment.php from the prior version and add the new edits correct? Thanks for adding the addition features.
DssCrazy
03-30-2008, 03:48 PM
Yeah you do, unfortunately.
The function that checks the cost of the subscription and updates it now also checks the subscriptionid that it's valid for as well. The only way I could find to do it was to change that :(Ok all good just did not want to do it if i did not need to. i found a problem look at the pic. it shows all the currencies can you please fix?
Thanks still testing
DssCrazy
03-30-2008, 03:53 PM
added coupon does not discount the price but does say coupon added.
DssCrazy
03-30-2008, 04:07 PM
NOTE: 1.2 does not work also. nither updates will discount the price.
ringleader
03-30-2008, 04:15 PM
NOTE: 1.2 does not work also. nither updates will discount the price.
Did you activate the coupon for a particular subscription id? It will only deduct from the price of that subscription id.
Also, I cannot replicate the error you're getting with the 0.00 prices showing at all.
DssCrazy
03-30-2008, 04:17 PM
yes i am. and with both version it will not update the price can this be fixed?
Thanks
DssCrazy
03-30-2008, 04:21 PM
can you please upload the 1.0.0 version also so i can give it a try and see if it is just these 2 versions? because i know when i had 1.0.0 it worked
ringleader
03-30-2008, 04:26 PM
Dsscrazy: double check that the coupon you added for whatever user has a subscription id for it.
Edit the coupon in the admincp and check the values you have entered for it.
It now requires you to add the number of uses it has, and the subscriptionid's that it's valid for.
It will not deduct any value if the coupon does not have these set, since they're set to '0' by default and I doubt any of your subscriptions have the id of zero. Zero uses set for the coupon will also make it not deduct.
And double check the edits you did in your payments.php file if these do not work.
That zero price thing showing up is more than likely a bad file edit somewhere.
DssCrazy
03-30-2008, 04:39 PM
Dsscrazy: double check that the coupon you added for whatever user has a subscription id for it.
Edit the coupon in the admincp and check the values you have entered for it.
It now requires you to add the number of uses it has, and the subscriptionid's that it's valid for.
It will not deduct any value if the coupon does not have these set, since they're set to '0' by default and I doubt any of your subscriptions have the id of zero. Zero uses set for the coupon will also make it not deduct.
And double check the edits you did in your payments.php file if these do not work.
That zero price thing showing up is more than likely a bad file edit somewhere.here is all the screen shots take a look.
DssCrazy
03-30-2008, 04:41 PM
both version will not work. i am testing the 1.2 because i have tested the 1.3 and it did not work so if i can get the 1.2 to work then the 1.3 should work when the problem as be fig out.
DssCrazy
03-30-2008, 04:51 PM
can you please post the 1.0.0 version?
Thanks
ringleader
03-30-2008, 04:52 PM
here is all the screen shots take a look.
There's nothing set there for subscription id's.
The file edits are to be done for version 1.3
Update to 1.3 files, add the subcription id to the coupon, and it will all be sorted.
Edit: it's only that the file edits are wrong for your version, and that's it.
DssCrazy
03-30-2008, 05:06 PM
There's nothing set there for subscription id's.
The file edits are to be done for version 1.3
Update to 1.3 files, add the subcription id to the coupon, and it will all be sorted.
Edit: it's only that the file edits are wrong for your version, and that's it.Can't be i updated back to 1.3 same thing. screen shot below
ringleader
03-30-2008, 05:12 PM
Can't be i updated back to 1.3 same thing. screen shot below
You need to set a number of uses the coupon has.
If unlimited, just set it to an unlikely number.
DssCrazy
03-30-2008, 05:14 PM
Problem FOUND
DssCrazy
03-30-2008, 05:15 PM
yes i did i added it then click edit and then it said 0 lol that is when a took the screen shot
ringleader
03-30-2008, 05:16 PM
yes i did i added it then click edit and then it said 0 lol that is when a took the screen shot
Ya big eejit you ;)
I uploaded previous versions in case anyone ever wants to roll back to a previous one, anyway.
DssCrazy
03-30-2008, 05:17 PM
Thanks for not giving up hear is the problem i was typing in the user id int=stead of the paid id lol. i almost lost my mind hehe. anyways thankd for not giving up on me.
DssCrazy
03-30-2008, 05:19 PM
is their anyway when adding in a coupon it tells the member what it is good for like what paid group?
Thanks
DssCrazy
03-30-2008, 05:22 PM
Dam this made my day lol so happy now that all is good. Thanks for the great work.
DssCrazy
03-30-2008, 09:42 PM
Ok i got an idea and i know for a fact EVERYONE will like.
Give the option to have a scriped gen coupon codes once a month and have it post in a thread of choice.
Could this work?
Thanks
bada_bing
03-31-2008, 12:34 PM
Question.. I just upgraded to version 1.3 and trying to figure our what this means in the coupon generator
Number of uses each coupon has= Does this mean how many times this coupon can be used?
What do you enter for Prefix?
&
Length of code ?
Sorry for all the questions.
bada_bing
03-31-2008, 12:45 PM
Never mind I figured out what all that means BUT there is a bug with this code..
The issue I found is that the member has to first choose the correct subscription and then apply the code. If you apply the code then choose your subscription then the discount is not applied, this does not seem correct. Can you fix this so that when the coupon is applies before or after the subscription is choosen the coupon discount is applied to the correct subscription id.
Example I have 3 subscriptions as follows
Monthly (id=1)
Quarterly(id=2)
Yearly(id=3)
If I create a coupon code for example id=1 then when a members enters the coupon prior to choosing the monthly subscription then the coupon should already be applied to id=1 after the coupon is applied, the way it works now this does not work in this manner as the subscription had to be chosen first then after the coupon gets applied the discount applies.
ringleader
03-31-2008, 12:49 PM
Question.. I just upgraded to version 1.3 and trying to figure our what this means in the coupon generator
Number of uses each coupon has= Does this mean how many times this coupon can be used?
Yes, that's to limit the number of times it can be used, to prevent it being spread around the internet, etc.
What do you enter for Prefix?
Length of code ?
You don't have to enter anything (I guess I should have made that clear).
It's handy if you want to track which coupons are which, e.g. the prefix Xmas for a christmas promotion will generate coupons that look like this: Xmas-TDGDWR
The length of the code is how long you want the code to be.
It will generate random sequences of letters a certain length long.
If you want your members to be able to remember the code, a shorter one would be better than one that looks like: Xmas-JNJSNDFNSDFNNDFJJNJNDJFIIWIWO
;)
ringleader
03-31-2008, 12:52 PM
If I create a coupon code for example id=1 then when a members enters the coupon prior to choosing the monthly subscription then the coupon should already be applied to id=1 after the coupon is applied, the way it works now this does not work in this manner as the subscription had to be chosen first then after the coupon gets applied the discount applies.
That's not right.
If a member has a coupon code in their payments.php page it will apply the discount to the correct subscription when the page is refreshed.
Normally the page is refreshed when the coupon is added (and thus the subscription discount is applied), so this is never an issue.
bada_bing
03-31-2008, 01:24 PM
Normally the page is refreshed when the coupon is added (and thus the subscription discount is applied), so this is never an issue.
Yes but this is not happening. Unless you first choose the subscription first then apply the code it does not apply this coupon code even though the page refreshes after entering the coupon code.
If you choose the subscription first then enter the coupon code then it works good
ringleader
03-31-2008, 01:48 PM
Can you check that your file edits are the same as those given in the install guide for version 1.3 please?
They have changed slightly between version 1.1 and 1.3
bada_bing
03-31-2008, 02:13 PM
Yes I have made the new files edits
DssCrazy
03-31-2008, 11:24 PM
problems found. when you gen a key if use is set to 1 it will not work. idk why that is.
also can you add a future to 1 click del all coupon codes this will come in handy.
Thanks
Rickeo
04-06-2008, 08:04 PM
Not working for me I did everything the install instructions said but when I import the product I can't find vbcoupons anywhere in the admincp and when I manually go to the file in admincp it just shows a table with no options or anything to add coupons please fix this my whole forum opening is kind of relying on this mod lol
Rick
bada_bing
04-07-2008, 12:06 PM
ringleader,
Great Mod.. I have this installed on one of my sites bus hesitant to install on my other site unless the bug I and someone else mentioned, any updates?
ringleader
04-07-2008, 12:22 PM
Not working for me I did everything the install instructions said but when I import the product I can't find vbcoupons anywhere in the admincp and when I manually go to the file in admincp it just shows a table with no options or anything to add coupons please fix this my whole forum opening is kind of relying on this mod lol
Refresh your admincp and it should show the menu on the left.
problems found. when you gen a key if use is set to 1 it will not work. idk why that is.
I think it's just because of a conditional I have checking it's > than 1 that should be checking if it's greater than or equal to 1 :o
also can you add a future to 1 click del all coupon codes this will come in handy.
Sure. I actually only thought of that when I had finished the last update!
Great Mod.. I have this installed on one of my sites bus hesitant to install on my other site unless the bug I and someone else mentioned, any updates?
I have no idea what is going on there bada_bing. The way this works, your error should not even be able to occur.
I will be re-writing this during the week to clean it up a lot and remove any possible errors.
Hopefully any of you who have errors with the current version will have them resolved in the next.
ChurchMedia
04-09-2008, 02:54 PM
A couple of things suggestions:
EDIT: 1) Found the problem -- conflict with a mod I made.
2) It would be ideal to be able to assign more than one subscription ID to a coupon. You could code this pretty easily using "explode" for commas.
3) When you assign a coupon code, the code is changed to lower case ($coupon_name = strtolower($coupon_name);). That isn't good for me because I'd like to use all-caps in my codes. I can just comment out the line, but you might want to make it optional or something.
Thanks again for this mod! It's something I've been waiting for forever. :)
ringleader
04-10-2008, 07:09 AM
2) It would be ideal to be able to assign more than one subscription ID to a coupon. You could code this pretty easily using "explode" for commas.
It was simply because I would have no use for that that I didn't think of it before :)
I'll add it in this weekend to the new, hopefully much cleaner, version.
3) When you assign a coupon code, the code is changed to lower case ($coupon_name = strtolower($coupon_name);). That isn't good for me because I'd like to use all-caps in my codes. I can just comment out the line, but you might want to make it optional or something.
Pure laziness made me do that!
The check when the person inputs a coupon in their payments.php (in any case, upper or lower) will convert it to lower and check it against the lowercase version in the DB. It's just easier for all. The reasoning was that people don't notice case-sensitivity when inputting stuff like this.
So you can use upper or lowercase for your coupons - it's independent.
gonkowonko
04-10-2008, 10:05 AM
is there anyway to have a percent like 16.6 off rather than a whole number, reason being im trying to deduct £2 but i cant get to exactly as i need to enter 16.6
or change it so that you define how much they can have off the price ie £2
**scrap that i have edited the php files to allow me to deducted actual amounts rather than percentages
Thanks this is a GREAT HACK!
ringleader
04-10-2008, 11:19 AM
is there anyway to have a percent like 16.6 off rather than a whole number, reason being im trying to deduct ?2 but i cant get to exactly as i need to enter 16.6
I was (rather stupidly) working with integers only when making this :o
I'll see what I can do about this in future.
Probably could incorporate it somehow.
Glad you like the hack!
Martin-TMGRS
04-10-2008, 11:48 AM
I've added all the file edits and uploaded all the files. I can see where you add the coupon code in the usercp but I can't see anything in my admincp:confused: any ideas please.
ringleader
04-10-2008, 12:06 PM
I've added all the file edits and uploaded all the files. I can see where you add the coupon code in the usercp but I can't see anything in my admincp:confused: any ideas please.
Refresh the admincp - the menus are only built once the first time you enter the admincp ;)
Martin-TMGRS
04-10-2008, 12:17 PM
Refresh the admincp - the menus are only built once the first time you enter the admincp ;)
I have done that many time. I've even logged out hoping that would have done the trick. but still nothing!!!!
ringleader
04-10-2008, 12:20 PM
I have done that many time. I've even logged out hoping that would have done the trick. but still nothing!!!!
Do you have the file /includes/xml/cpnav_vbcoupons.xml?
Because if you have that, then there is absolutely no reason why it would not show.
Martin-TMGRS
04-10-2008, 12:23 PM
Do you have the file /includes/xml/cpnav_vbcoupons.xml?
Because if you have that, then there is absolutely no reason why it would not show.
Yep that file is there :confused:
ringleader
04-10-2008, 12:41 PM
Yep that file is there :confused:
Try the xml attached to this post.
Upload it to /includes/xml/cpnav_vbcoupons.xml
Refresh the admincp.
Does it show now?
Martin-TMGRS
04-10-2008, 12:54 PM
Try the xml attached to this post.
Upload it to /includes/xml/cpnav_vbcoupons.xml
Refresh the admincp.
Does it show now?
Yes thats done the trick....Thanks :)
ringleader
04-10-2008, 01:05 PM
Yes thats done the trick....Thanks :)
Phew!
Thanks for asking - it's better for me to have you solve the problem than not use the mod at all!
Enjoy :D
ringleader
04-14-2008, 08:23 PM
Version 1.4 is out now.
This changes the percentages preveiously used as discounts to monetary values, e.g. $3.50 instead of 20% as previously used.
You can also now mass-generate coupon codes and post them to a thread in a forum of your choice.
Coupons can now be restricted to one or more subscriptionids.
It is recommended that you upgrade to this version.
DssCrazy
04-14-2008, 09:26 PM
NICE FREAKIN WORK!!!! This is a Wicked update i tested and does work on 3.6.8
I found 1 problem with this tho when clicking over write for the XML you get a database error.
Thanks for adding the idea to post coupon codes
ringleader
04-14-2008, 09:30 PM
I found 1 problem with this tho when clicking over write for the XML you get a database error.
Dammit, I even tried overwrote my own and tested that like 10 times and it seemed fine.
Bloody SQL :mad:
I'll try to fix it in the morning - i've to be up for my day job in about 6 hours!
Thanks though, man :D
Glad you like it.
PyroNET
04-15-2008, 12:08 AM
Installed :) Thank you very much for this.
ringleader
04-15-2008, 06:33 AM
Installed :) Thank you very much for this.
Glad you like it :)
If UPGRADING this product, choose 'No' for 'Allow Overwrite' when importing the new product in the adminCP. You will get an error if you choose to overwrite.
bada_bing
04-15-2008, 05:49 PM
Just tried to upgrade to version 1.4 with no override and reveived this error
Database error in vBulletin 3.6.9:
Invalid SQL:
ALTER TABLE `vb_user` ADD (couponid int(10) UNSIGNED NOT NULL DEFAULT '0');
MySQL Error : Duplicate column name 'couponid'
Error Number : 1060
Date : Tuesday, April 15th 2008 @ 01:47:39 PM
Script : http://www.mysite.com/forums/admincp/plugin.php?do=productimport
Referrer : http://www.mysite.com/forums/admincp/plugin.php?do=productadd
IP Address : x.x.x.x
Username : myusername
Classname : vb_database
DssCrazy
04-15-2008, 08:01 PM
Just tried to upgrade to version 1.4 with no override and reveived this error
Database error in vBulletin 3.6.9:
Invalid SQL:
ALTER TABLE `vb_user` ADD (couponid int(10) UNSIGNED NOT NULL DEFAULT '0');
MySQL Error : Duplicate column name 'couponid'
Error Number : 1060
Date : Tuesday, April 15th 2008 @ 01:47:39 PM
Script : http://www.mysite.com/forums/admincp/plugin.php?do=productimport
Referrer : http://www.mysite.com/forums/admincp/plugin.php?do=productadd
IP Address : x.x.x.x
Username : myusername
Classname : vb_databaseYes, please uninstall the old version on your vb board and reup the new.
Dannyloski
04-15-2008, 08:52 PM
Wow, I'm installing this Mod because I think its just great. I dont need it now, but maybe later on I might decide to start offering discounts via Coupon Codes for Advertisers (As that's what I use the Subscriptions for), so this will come in handy.
DssCrazy
04-16-2008, 05:30 AM
Problem found.
when making coupon codes uses must be set to 2 min to use. if set to 1 it will not work
ringleader
04-16-2008, 07:04 AM
when making coupon codes uses must be set to 2 min to use. if set to 1 it will not work
I remember you mentioning that before, but I couldn't find where in the code the problem was being caused. I will look again soon - I'm sure it'll get found.
bada_bing
04-16-2008, 12:09 PM
Yes, please uninstall the old version on your vb board and reup the new.
I have just uninstalled the 1.3 version and uploaded the new files and installed the 1.4 plugin and it installed ok but when I generate a coupon and tell it to apply it to my subscription example (1) and I apply the coupon this amount is not deducted? I have tried over and over , getting ready to remove this hack until the bugs are worked out, my opinion 1.3 ran smoother
bada_bing
04-16-2008, 12:41 PM
I want to apoligize as I found my issue, when I upgraded to 1.4 I did not redo the file edits in payment.php as I thought it would retain this from the previous version once I did the edits it now works.. Thank You...
ringleader
04-16-2008, 12:44 PM
I want to apoligize as I found my issue, when I upgraded to 1.4 I did not redo the file edits in payment.php as I thought it would retain this from the previous version once I did the edits it now works.. Thank You...
Ah excellent stuff!
I was so worried wondering where such a unique problem could have come from - I really hadn't a clue how to solve your issue.
Did you upgrade to 3.6.9 recently as well?
I think the payments.php file is overwritten during the upgrade. Bad timing! :(
DssCrazy
04-20-2008, 05:59 AM
Some ideas.
when making coupons add the option to mass edit coupons instead of needing to edit 1 at a time.
add the option so when a members trys to type in a exp coupon code it says coupon exp instead of (invaild)
add the option to add a green txt to the paid id so that the members know which id thing they are getting a discount on
Thanks
bada_bing
04-23-2008, 06:42 PM
I have tried to install this on my other site which is VB 3.5.x and received database errors. Can someone tell me know I can get this working on my 3.5.x site would love to be compadible wit that version please.
ringleader
04-24-2008, 06:27 AM
I have tried to install this on my other site which is VB 3.5.x and received database errors. Can someone tell me know I can get this working on my 3.5.x site would love to be compadible wit that version please.
It's probably database incompatibility.
I'll download vb3.5 this weekend and see if I can make it work for that :)
DssCrazy
04-24-2008, 06:47 AM
Some ideas.
when making coupons add the option to mass edit coupons instead of needing to edit 1 at a time.
add the option so when a members trys to type in a exp coupon code it says coupon exp instead of (invaild)
add the option to add a green txt to the paid id so that the members know which id thing they are getting a discount on
ThanksRingLeader can you add these ideas in?
ringleader
04-24-2008, 07:30 AM
RingLeader can you add these ideas in?
I'm sure I can.
I actually just thought of a way to mass-edit them just there, but it would be based on a prefix you set for the coupons (otherwise there's no telling which coupons are related).
I'm actually looking to launch a local dating site of mine here in the print media in Ireland, so I expect to be extremely busy with that over this coming weekend, but I will get around to doing this in between.
Should be an update to it before the first weekend in May then.
Dannyloski
04-24-2008, 03:24 PM
ringleader, Just a heads up that this is in fact affected by the new Security Token on 3.6.10 and 3.7.0 RC4 ... Its a really easy fix though (see below) ...
In the vbCoupons_couponbit template FIND:
<form action="payments.php?do=addcoupon" method="post">
BELOW that line add:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
In the same template (vbCoupons_couponbit) FIND:
<form action="payments.php?do=deletecoupon" method="post">
BELOW that line add:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
That's it! I did that and now its working like a charm again. So for those who need this Quick Fix until the New Version is released, there it is ...
Hornstar
04-25-2008, 05:12 AM
cant believe I only just saw this hack now o_O This is something I have been long awaiting for ^^
Thanks heaps!
ringleader
04-25-2008, 06:59 AM
<snip>
That's excellent stuff, Dannyloski.
I haven't actually even had the time to look at 3.6.10 yet so who knows when this would have been done.
I will include it in the update that's coming soon.
Dannyloski
04-25-2008, 02:17 PM
ringleader, no problem just glad to help out ...
bada_bing
04-25-2008, 07:06 PM
It's probably database incompatibility.
I'll download vb3.5 this weekend and see if I can make it work for that :)
Awesome please please let me know if you can get this to work on 3.5.x
thank you
mrkhm
04-26-2008, 07:00 PM
many thanks for this works fine on vb 3.6.8.
any idea on how to make the redirect for the user to be to the payments page, for instance after adding a coupon or deleting a coupon, it should perhaps redirect to payment.php as supposed to index.php in the case of not so advanced users who might just wonder what went on and have to find the payments page all over again?
bada_bing
04-27-2008, 03:10 AM
It's probably database incompatibility.
I'll download vb3.5 this weekend and see if I can make it work for that :)
Hey ringleader
Just wanted to see if you will get a chance to take a look this weekend..
Thank you
regitbull
05-02-2008, 01:07 PM
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
Julie
05-03-2008, 08:54 PM
Hi!
Will this work for 3.7? It not, any chance it may be re-written for it? Thanks in advance :)
jasculs
05-03-2008, 11:09 PM
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:
An invalid currency was selected.
Is there any way around this?
ringleader
06-01-2008, 04:59 PM
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 :)
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 (https://vborg.vbsupport.ru/showpost.php?p=1498254&postcount=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:
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 blabla@yahoo.com
payment_type instant
verify_sign AoS.E.blabla
payer_status verified
tax 0.00
payer_email blabla@hotmail.com
txn_id blabla
quantity 1
receiver_email blabla@yahoo.com
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
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.
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
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:
$this->paymentinfo = $this->registry->db->query_first("
SELECT paymentinfo.*, user.username
Add 'user.userid' to the select so that it now looks like this:
$this->paymentinfo = $this->registry->db->query_first("
SELECT paymentinfo.*, user.username, user.userid
Find:
if ($mc_gross == doubleval($cost["{$this->paymentinfo[subscriptionsubid]}"]['cost'][strtolower($this->registry->GPC['mc_currency'])]))
Add this code right before it:
$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'])]);
}
LCN2007
01-19-2009, 05:25 PM
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
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
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
this looks like a great mod, any chance of making one for vbulletin 3.8?
ditto
Mondi
03-22-2009, 07:52 AM
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:
</form>
Add Above:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
2nd form:
</form>
Add Above:
<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/ee118/tech_killer/coupon.jpg
http://i233.photobucket.com/albums/ee118/tech_killer/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.
820Media
04-16-2009, 11:03 PM
Yes i did fully test as in selecting from the drop down menu, entering the coupon and then looking at the prices again, they did change so i went on to order one and it did change through paypal.
Hornstar
04-17-2009, 12:16 AM
I just thought of a feature that could enhance this modification alot! ^^
Is it possible to have a coupon that changes the length of the subscription?
eg. I have a subscription that goes for 1 year. I set up a coupon, and when the user enters in the coupon they end up getting the subscription for 2 years. or 10 years. etc.
Mondi
04-21-2009, 10:58 AM
Great - been waiting for this.
One issue - one question:
Issue: Refer to attached pic. The coupon code field appears twice which ain't that good. Followed the instructions. Any suggestion(s) on what may go wrong here and how to solve it?
Question: Just checking in on this -- say I offer a tier I subscription a free, one month tier II subscription [more expensive than Tier I] and use coupons to wave the fee to make the offer 'free' as promised.
Tier I members accept, enter the code and convert themselves temporarily into Tier II subscribers until their free subscription terminates, say, after one month. So, what happens then? Do these 'original' Tier I members fall automatically back into their Tier I membership after their trial expires and they choose to discontinue Tier II subscription?
I guess the question is: Can existing members be offered free temporary subscription upgrades through coupons without compromising their original membership/subscription.
Hope that's clear enough....
Look forward to receiving answers on both matters as I am planning to roll-out a fairly substantial email campaign which will use coupon-like arrangements.
Cheers!
sunnycher
05-01-2009, 02:41 AM
I'm getting this when I test it out.
3.8.1 here
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.
any help on this?
Thank you!
sunnycher
05-01-2009, 02:50 AM
ok got it to working.
Problem, I put in the ID for the subscription ID, 1 for premium member.
But it's discounting my vendor subscriptions too and they aren't anywhere near the ID of 1.
any suggestions?
Thank you for creating this! It's AWESOME!
pacobob
05-12-2009, 08:47 PM
Is there any way to tell who has used the coupon? Just for reporting numbers.. So we know how many users signed up with a coupon verses without??
Does anyone know if you can give a free subscription with a coupon? If I set the coupon to $30 and a one year subscription is $30, does the user get a subscription without having to go through the paymen processor?
Thanks,
-Rich
jkeasy
07-07-2009, 04:44 PM
Thank you soooo Much!!!! ringleader this is exactly what I needed and thank you Danny for providing the security token fix (i was pulling my hair out)!
Again great job and thank you! :)
bada_bing
08-07-2009, 07:11 PM
Anyone tested this with vb 3.8.3
the following problem use of coupons:
The link about which you have called the PayPal system contains a wrongly formatted amount for the article.is there already a solution for it?
nAsH
AftahFX
09-07-2009, 02:18 PM
does this pluggin work with the awc_Subscription system if so how do i attach it to what page in settings. now it is attached to "paidsub_start" anyone have any info please advise
brettxw
11-20-2009, 05:54 AM
anyone still providing help?
I get a "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."
Error when trying to add a coupon code to the subscription page to get discount. I select the subscription I want and then add the coupon code and then hit "add coupon". That is when I get the error..
anyone still providing help?
I get a "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."
Someone posted a fix to that here: https://vborg.vbsupport.ru/showpost.php?p=1792814&postcount=199
pharmacist
01-25-2010, 12:57 PM
always searching for Mod like this
Is it work good with 3.8.4?
or any new updates?
Bouncer222
06-19-2010, 11:08 PM
Please Update To Vb 4.0.4???
voclain
07-29-2010, 01:53 AM
PLEASE...please...PLEASE update this to VB 4.0.5???!!!!
Kirk
voclain
08-18-2010, 05:05 PM
I would make such a big donation for this if it worked on 4.x
angeljs
10-24-2010, 08:45 AM
Hi, when I add a coupon and go to pay via Paypal, I receive the following error from the Paypal site:
You have entered an invalid amount. Please make sure that all punctuation marks are in the correct places and that you only include the number
This only happens when I add a coupon, not when I just use the normal subscription. :(
Hornstar
04-02-2011, 11:08 PM
Just installed and it's working perfect on 3.8.7! (with the few extra edits found in this thread).
MONETARY VALUES RATHER THAN PERCENTAGES ARE USED FROM NOW ON
Anyone know how to make both work?
For 1 subscription I may want to make it a % discount and another I may want to make it a monetary discount.
jnealie
04-05-2012, 09:36 PM
Does this modification work for the 4.0 and up vbulletin software? I am in desperate need of getting a coupon into my subscriptions without going through a 3rd party.
If anyone has any info, I would *really* appreciate it!
Thanks!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.