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)

DssCrazy 03-29-2008 09:50 PM

Quote:

Originally Posted by ringleader (Post 1477793)
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

Quote:

Originally Posted by 2guys1forum (Post 1477884)
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

Quote:

Originally Posted by DssCrazy (Post 1478389)
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

Quote:

Originally Posted by ringleader (Post 1478395)
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

Quote:

Originally Posted by ringleader (Post 1478395)
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

Quote:

Originally Posted by DssCrazy (Post 1478420)
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

Quote:

Originally Posted by ringleader (Post 1478435)
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

Quote:

Originally Posted by DssCrazy (Post 1478444)
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

Quote:

Originally Posted by ringleader (Post 1478458)
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

Quote:

Originally Posted by DssCrazy (Post 1478466)
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

Quote:

Originally Posted by DssCrazy (Post 1478474)
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

Quote:

Originally Posted by bada_bing (Post 1479017)
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.

Quote:

Originally Posted by bada_bing (Post 1479017)
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

Quote:

Originally Posted by bada_bing (Post 1479023)
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

Quote:

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?


All times are GMT. The time now is 02:02 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.01341 seconds
  • Memory Usage 1,830KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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