Osclass forums
Development => Plugins => Topic started by: trains58554 on July 26, 2011, 12:05:37 am
-
Hi
Update 3-27-13
Made this plugin compatible with 3.1.+
Update 2-23-13
Fixed issue with email templates not being added.
Update 2-21-13
Fixed the send promo code via email.
Update 8-20-12
Fixed problem when a new user signs up they now get credited the sign up amount if you have that feature enabled.
update 8-19-12
Fixed bug when a user that does not have an amount in there paypal wallet it now adds the promo amount to there account.
Fixed bug that would have allowed users to uses a single letter to guess your promo codes. Please download the updated zip.
No need to uninstall the plugin just copy in the files in the zip.
update 6-27-12
Fixed bug with promo value not being applied.
Update 6-25-12
Upgraded plugin to version 2.0 with a bunch of great new changes.
* compatible with Paypal and Paypalplus plugin
* can upgrade from previus version without losing data
* can use Paypalplus bonus system
* can allow bonus expiration time
* can allow signuo bonus expiration time
* can choose an expiration time for each promotion code
* can send an email to user with the promotion code (from Manage Promotion Code)
* can view how many times the code is sent
* Automatically send an email to new user if signup bonus is enabled
* added language folder, en_US, it_IT
All the above changes are thanks to Cris.
I did upgrade the plugin to use the new dao method which means this plugin is only compatible with 2.3 and above.
To use the upgrade function just copy the files from the zip over your existing files and then go in the admin panel and go to the promo codes menu and click upgrade and then your plugin will be up to date.
Update 6-4-12
Added support for the paypal+ plugin
**Update 1-25-12
Fixed bug with user menu not showing up. In newer versions of osclass.
**Update 8-2-11
Fixed bug now allowing admin to change signup bonus value.
**Update 8-1-11
Error fixed in sql so now tables should be add correctly
fixed bug that allowed one user to use the promo code more then once
.
**Update 7-29-11
Keny brought to my attention a minor bug in the manage promo codes that has been fixed in this updated version. I found a small error with the log page that I fixed so this updated version will require you to uninstall and reinstall the plugin.
**Update 7-29-11
I am releasing the promo codes plugin today. Please note that for this plugin to work you need to have the paypal plugin or paypal plus plugin installed. Feel free to leave feedback and suggestions for future versions and please let me know if you found a bug as this is just the first version there may be some bugs that I have not found.
Jay
(http://img694.imageshack.us/img694/5866/screenshotsiouxfallscla.png)
(http://img809.imageshack.us/img809/5866/screenshotsiouxfallscla.png)
More sneak peek pictures
(http://img135.imageshack.us/img135/1128/createpromo.png)
(http://img820.imageshack.us/img820/3360/promolisting.png)
*** Update
Hi Guys and Gals
I wanted to give you an update if everything goes as planned I should be releasing the plugin Friday. There are just a few bits of code left to do. So get ready for an awesome plugin.
Jay
-
wow, that looks great... i cant wait :)
-
Great pluggin !!
-
How do you create the promotional codes form? Do you set a number of promotional codes?
-
How do you create the promotional codes form?
Are you asking how I create the code? If so I am planning to allow the admin to create the code or randomly generate the code
Do you set a number of promotional codes?
There will be as many promotional codes as the admin wants to create they can also specify how many uses a code can be used.
Jay
-
How do you create the promotional codes form?
Are you asking how I create the code? If so I am planning to allow the admin to create the code or randomly generate the code
Do you set a number of promotional codes?
There will be as many promotional codes as the admin wants to create they can also specify how many uses a code can be used.
Jay
Great! I can't wait to try the plugin
-
hi Juan
It won't be long I am almost done just need to add an option for the admin to edit and delete the promo codes. Then it should be ready for testing.
Jay
-
Hey, will the user only be able to enter a promo code when checking out or whenever he/she wants because if you make a promo code unlimited then the user will just keep on using it getting tons of free credits which wouldn't be good business?
-
I understand that the promo code get expired once it's used, am I right?
-
Hi usclassifieds.org, Juan
Hey, will the user only be able to enter a promo code when checking out or whenever he/she wants because if you make a promo code unlimited then the user will just keep on using it getting tons of free credits which wouldn't be good business?
A user will be able to enter a code whenever they want. What I meant by unlimited is that that code never expires but say user A can only use that code once all promo codes are a onetime use to every user. So lets say instead of unlimited you put in 5 uses so user A uses the code then user B, C, D, and E. Then when user F comes and tries the code he gets a message this code is no longer valid.
I understand that the promo code get expired once it's used, am I right?
Yep the promo code gets expired for the user that uses the code but if there are still uses the other users can use that code.
-
oh, okay sounds good
-
Jay if you want in future release you can add condition to coupon code
exemple :
code is only valid for this user or a group of user
code is only valid until this date
code is only valid if a user have already buy a pack before (don'y know if this is possible we have to check if paypal pluggin keep all transaction in back office)
ect ...
I know is alot of code to do so that why i suggest you in future release.
I should be back to OSClass coding and translating next week i have to finished a project now
-
Jay if you want in future release you can add condition to coupon code
exemple :
code is only valid for this user or a group of user
Thats a great idea but I think this will be in a later version.
code is only valid until this date
I have thought about that and I may still release that in this version I have not decided yet.
code is only valid if a user have already buy a pack before (don'y know if this is possible we have to check if paypal pluggin keep all transaction in back office)
ect ...
I have not thought about doing something like that I think it should be doable just have to check if the users id exists in the paypal wallet table. This may make it in the first release if not in the next version.
I know is alot of code to do so that why i suggest you in future release.
I should be back to OSClass coding and translating next week i have to finished a project now
Keny Thanks for the suggestions and ideas.
Jay
-
Hi all
Promo codes plugin is now released you can download the zip in the first post.
-
Hi Jay,
I have take 5 min to test your pluggin and i just have to say : congradulation !
Anyway i found a very minor bug :
In admin if we set a value for number of use for a code and the code is all use the colum use left show unlimited in place of 0 or none.
This is because in your code you take value 0 to be unlimited so i suggest you to add a new value in the db and set this value true or false for unlimited.
But again very usefull pluggin !
-
Hi Jay,
I have take 5 min to test your pluggin and i just have to say : congradulation !
Anyway i found a very minor bug :
In admin if we set a value for number of use for a code and the code is all use the colum use left show unlimited in place of 0 or none.
This is because in your code you take value 0 to be unlimited so i suggest you to add a new value in the db and set this value true or false for unlimited.
But again very usefull pluggin !
Thank you Keny for trying out the plugin I am glad you find it useful.
As for the small bug I think I understand I will fix that.
Jay
-
hey, for some reason there isnt a limit anymore when i made a promo code, i can use it unlimited amount of times on the same account.
-
Hi
Is the promo code log showing that you used the code?
Are you useing 2.2 stable or 2.2 rc?
Jay
-
no, the log isnt showing anything and im using 2.2 stable
-
I am just upgrading to 2.2 right now I will see if I get the same problem.
Jay
-
Hi usclassifieds.org
Just finished my upgrade and the promo codes works fine on my site. How do you have the prpmo code set? Is it set for a set amount of uses or unlimited?
Jay
-
unlimited
-
After you enter the promo code you can then hit redeem again and it credits you account? It should be displaying you have already redeemed this promo code. Can you check in your mysql database to make sure that both table got created promo_code and promo_codes_redeemed.
Jay
-
sure, how do i check my mysql database?
-
In your web hosting control panel there should be a button labelled phpmyadmin after clicking there it should show you your database tables.
-
i found it only promo_code got created
-
Ok I think I have got the problem sorted out.
-
okay, now the redeemed database thing has been created and the log works, but still i can keep on redeeming it how many times i want.
-
okay, now the redeemed database thing has been created and the log works, but still i can keep on redeeming it how many times i want.
Is that with the same user or different users?
If it is the same user it should not be possible to redeem the code more then once. I will look over the code and see if I can see how that might happen.
Jay
-
its all for the same user
-
Hey, Jay did u figure anything out yet?
-
I think I figured it out. Here is a new zip of the plugin to try.
I just checked it again and now there is another error I will check it out.
Ok now it is working right again. This zip should work and fix the multiple uses.
Jay
-
yes, thank you it works awesome now, THANK YOU SO MUCH FOR ALL THE TIME YOU'VE SPENT ON HELPING ME WITH THIS!!!
-
Not a problem Glad I was able to get the problems fixed :)
-
Hey, is there any way that you can have cents in a promocode?? for example you recieve $0.99 in a promo code?? because most of the premium ads on my site cost .99 and i would like each new user to recieve $0.50 with his/her new account which would urge them to buy another credit for the ad to be premium.
-
Hey, is there any way that you can have cents in a promocode?? for example you recieve $0.99 in a promo code?? because most of the premium ads on my site cost .99 and i would like each new user to recieve $0.50 with his/her new account which would urge them to buy another credit for the ad to be premium.
Hi
It is now possible to change the default signup bonus after I found my error. You can set it for any value you want. So you can set it for .50 cents.
I will upload the new zip here you just have to copy over user_reward.php and that will allow you to change the signup bonus.
One more change I reread what you wanted and noticed that you wanted the regular promo codes to also accept change. I thought they did but I did some testing and did not so I fixed the problem. You have to reinstall the plugin. As there is a change to the database.
Jay
-
Thanks :)
-
Hey, do u possibly know the solution to this http://forums.osclass.org/index.php/topic,3460.0.html because from prior knowledge i know your good with this stuff ;)
-
Hey, do u possibly know the solution to this http://forums.osclass.org/index.php/topic,3460.0.html because from prior knowledge i know your good with this stuff ;)
I will take a look and see if I can figure something out.
Jay
-
thanks
-
Hi
**Update 8-2-11
Fixed bug now allowing admin to change signup bonus value.
**Update 8-1-11
Error fixed in sql so now tables should be add correctly
fixed bug that allowed one user to use the promo code more then once
.
**Update 7-29-11
Keny brought to my attention a minor bug in the manage promo codes that has been fixed in this updated version. I found a small error with the log page that I fixed so this updated version will require you to uninstall and reinstall the plugin.
**Update 7-29-11
I am releasing the promo codes plugin today. Please note that for this plugin to work you need to have the paypal plugin installed. Feel free to leave feedback and suggestions for future versions and please let me know if you found a bug as this is just the first version there may be some bugs that I have not found.
Jay
(http://img694.imageshack.us/img694/5866/screenshotsiouxfallscla.png)
(http://img809.imageshack.us/img809/5866/screenshotsiouxfallscla.png)
More sneak peek pictures
(http://img135.imageshack.us/img135/1128/createpromo.png)
(http://img820.imageshack.us/img820/3360/promolisting.png)
*** Update
Hi Guys and Gals
I wanted to give you an update if everything goes as planned I should be releasing the plugin Friday. There are just a few bits of code left to do. So get ready for an awesome plugin.
Jay
Hi I am new here and love this idea but I am really looking at a way a user/member/customer can implement a promotion themself e.g. a deal, offer, package deal, print coupon or coupon code, discount offer or upload a pdf catalog. It would also need to have expiry date. Is this possible also if you can add a button somewhere to allow printing of the offer only not the whole page.
I know a lot of people look for special offers and I think if you give the option to your users to market their discounts that will encourage them to advertise with you.
Thanks...
-
Hi I am new here and love this idea but I am really looking at a way a user/member/customer can implement a promotion themself e.g. a deal, offer, package deal, print coupon or coupon code, discount offer or upload a pdf catalog.
I think that is a great idea it may be a while until I get time to make this plugin. Can you explain a little more about the pdf catelog?
It would also need to have expiry date.
This is planned for version 2.0
Is this possible also if you can add a button somewhere to allow printing of the offer only not the whole page.
I know a lot of people look for special offers and I think if you give the option to your users to market their discounts that will encourage them to advertise with you.
Can you explain a little more on printing of the offer only.
Thanks for the suggestions and ideas.
Jay
-
plugin throws an error when trying to register with facebook account. missing argument 1 on line 92 (I don't remember exactly)
-
Hi morvy
Does this error show every time you are trying to register with facebook? If it does can you copy and paste the full error code? I probably will not be able to look at the problem until Monday as I am going out of town but when I get back I will take a look as to what is causing this issue.
Jay
-
Warning: Missing argument 1 for user_reward() in /***/oc-content/plugins/promo_codes/index.php on line 91
-
Hey Jay,
I have a suggestion for the next version of promo code plugin.
It would be nice if there was a promo code field when creating an ad.
Something like in the image attached below.
-
This is the start of what I would like where a person putting an ad can put in their own coupon code or special offer/deal and the viewer can print out the coupon. Maybe for the featured ads only.
-
Hi I am new here and love this idea but I am really looking at a way a user/member/customer can implement a promotion themself e.g. a deal, offer, package deal, print coupon or coupon code, discount offer or upload a pdf catalog.
I think that is a great idea it may be a while until I get time to make this plugin. Can you explain a little more about the pdf catelog?
It would also need to have expiry date.
This is planned for version 2.0
Is this possible also if you can add a button somewhere to allow printing of the offer only not the whole page.
I know a lot of people look for special offers and I think if you give the option to your users to market their discounts that will encourage them to advertise with you.
Can you explain a little more on printing of the offer only.
Thanks for the suggestions and ideas.
Jay
Hi Jay thanks for reply - if a person wanting to place an ad they can have the option of adding a coupon that the viewer hits the print button can print it out - or the person placing the ad can upload a pdf catalog of their specials (file size would have to be considered) - or the person placing the ad can give details of a special offer e.g. buy one get one free having expiry date and the ability to print it out or go to the website where they can use the deal.
With the economy people are looking at the best deals/offers/coupons and I think this will help those people placing ads to get noticed more and this will generate more sales for you the website owner with more people wanting to place ads with you.
I can see classifieds sites and coupon/deal sites but not one that has the opportunity for a site to have both. I have a lot of customers who are franchisee who have specials all the time without an online shop to promote - other customers have a website but need an advertising place to promote their business and give an offer on their website.
Hope that makes sense....
-
Hi visnetmedia
I think I understand now you are wanting to give your sellers the opportunity to advertise for their brick and mortar stores and or online stores with a coupon. I like the idea.
Jay
-
Hi Jay,
have you looked at the problem I posted earlier? I've looked at the code, but I can't fix it..
-
Hi morvy
I have looked at the code and was able to reproduce the error. As of now I still have not found the error I am still looking. When I get it straightened out I will let you know.
Jay
-
Hi morvy
We have found the problem between the facebook plugin and my promotions codes. The error was in the facebook plugin so _CONEJO was able to fix it you can download the updated version of the facebook plugin here http://sourceforge.net/projects/osclass/files/Plugins/facebook/?
Jay
-
thank you for great news
-
just add it to mine and found this typo:
Signup Bonus Configuration
Enable Signup Bonus:
Signup Bouns Amount:
which file do i need edit to make the corrections?
Otherwise, great plugin guys.
-
hi simplewebconsult
You can correct my typo in user_reward.php line 40.
Thank you for pointing out the typo.
Jay
-
I think I have suggestion:
how about adding promotion codes ID per user (somehow generated from email addres?). If user recommends site to another user, he can provide him personal promoID and after registration of new user, he can obtain some amount of credits and new user too. understandable? :)
-
Hi morvy
I understand you are suggesting that when a registered users suggest the site to a friend the reg user gets x amount of promo codes and the refereed user if he/she signs up gets x amount as well. I like the idea I will try to add this to the next version.
Thanks for the suggestion.
Jay
-
I like this plugin. I am currently running a promo code per user email manaully. So, I would have to compiled the data weekly and issue credits.
Anyway, I was looking around and I could not find a good place to see user account amounts?
On my test registered user, I don't see the amount of credits I have left.
Anyone have the same issue?
-
Hi simplewebconsult
I am glad you like this plugin. Currently the only place to see the users credit is by click the link Buy credit for payments in the user dashboard. I think in the next version I may add another menu link to check the credit status.
Jay
-
Awesome, thanks for the plugin! You have my wish list being able to only allow certain coupons in certain categories. Does the coupon allow say if I gave $100 for a coupon, that it would be able to be used for all uses until the credit is used up?
-
Hi koltz
Thanks for the kind words. I am not sure I understand your question. Are you asking if you set the credit to $100 and then it is used say for every code entered then the $100 becomes $99 after someone enters a code?
Jay
-
No, kind of like the Packs, if I give somebody a code for $10, and each premium ad costs $.50, it will deduct $.50 from each use until that person has no money left for premium ads anymore.
-
Hi koltz
The promo code works just like the packs. So if you give your user $10 and they purchase an premium ad upgrade for .50 there wallet total will be $9.50. Actually when a user enters a promo code it just adds the promo code amount onto there paypal wallet total.
Jay
-
Hello,
thanks for this plugin.
I need your help. I do not know if it's a bug:
In my website premium ad costs $15.
I create a coupon code for $5.
So user would have to pay $10 with PayPal, why he gets the initial price of $15 and not $10 (15-5)?
How do I fix this error?
thanks
-
Hi maia_x
This is a feature that is missing from the paypal plugin. How the promo codes plugin works is that when they enter a promo code it ads the dollar value to the persons paypal wallet. Another why it could be done is the user could buy a pack for 10 dollars and then he could pay with his paypal wallet.
Jay
-
Hello Jay,
I'm sorry, I think I didn't fully understand your answer. The problem is in paypal plugin? Is there a way to fix it?
Thanks for your time
-
Hi maia_x
It really is not a bug it is more of a feature that has not been implemented into the paypal plugin. Currently what my plugin does is add the promo value to the paypal wallet. To see how this works you could try creating a promo code with a value of $15 and setup a test account and use the promo code and then try upgrading you ad to premium and it would show a link "pay with your credit" and then you would not be required to pay with paypal as you would have enough credit to pay for the upgrade.
I hope this is clear.
Jay
-
Ok thank you...now I understand ;D ;D ;D
-
Hi All,
I am going to be looking at upgrading this plugin here soon so I would like to hear all your suggestions and ideas you may have for me.
Thanks
Jay
-
Great!
How about on the "Enter Promotion Codes" page, you display the current wallet amount. It seems like this use to be displayed on another page, but I've clicked on every page, and it's nowhere to be found... very odd. I just now noticed this was missing too. Perhaps another bug to find!
Jesse
-
You see the paypal wallet page if you have the paypal packs enable other wise you do not see that page.
Jay
-
Ah, you're right! :-) Still would be nice to see the wallet amount on that page as well. That way when you enter in a code and it says that you just got a $10 credit, it can also show your new total wallet amount. Especially since someone may not have the PayPal packs enabled (such as myself), and has no other way to view the wallet total.
Jesse
-
I as well think that is something I am going to add to the next version.
Thanks
Jay
-
hi i install the plugin but not show the link "enter your promo code"inside the user menu
i use the last version of osclass 2.3.2,modern template,inside in admin panel the plugin is working good. can somebody to help me.
Thank you in advance
-
Hi geshcheto,
Do you have the paypal plugin installed? The promo codes plugin does not work without the paypal plugin.
Jay
-
hi trains58554,thank you for your quick answer,yes i have installed paypal.
-
Hi geshcheto,
That is strange it should be working. In the user menu you should see this menu option "Enter Promotion Codes".
Jay
-
hi trains58554 its reali strange but not work,you make to seen the images,thank you.
-
Hi Jay,
Request you share the Promotion codes plugin to me
srisri.ch@gmail.com
Regards
Sri Sri
-
Hi srisri,
I just sent you the plugin.
Jay
-
Hi trains
me too!
:D
-
Hi SuperAtic,
I sent you the plugin.
Jay
-
Thank you Train!
Received!
Nut.. in my user menu don't appear nothing about the plugin!
How I can inser a code to use it?
-
Hi SuperAtic,
Do you have the paypal plugin installed? This plugin requires the paypal plugin to be installed.
You should see a link called "Enter Promotion Codes" in the user account menu.
Jay
-
Hi Trains
Yes I have the payPakl plugin.. but I don't see the "Enter Promotion Codes" in the user account menu !!!
Maybe any problem with javascripts?
Do You can test it?
http://ilbaratto.superatic.com
U: user
P: test
-
@SuperAtic,
I sent you the index.php file for the promo codes plugin try uploading this file to the plugin folder and let me know if ti is working.
Thanks
Jay
-
Yessss... ;D
Thaaank very much trains!
I have tested the plugin! I have create and inserted a new promo code!
Before teh message "You just got 10.00 credited to your account"
I have read in the PayPal credis but is equal to 0.00!!!
-
I would love to have this plugin sent to me.
richard(dot)way(at)gearbay(dot)se
Thanks!
-
Hi oneway,
You can download this plugin from the first post.
Jay
-
Thanks Jay
Sorry about that, I read the previous posts and assumed a new version was being distributed.
Thanks for clarifying.
EDIT: For some reason this plugin is not shown in the user account. Using 2.3.5 (Swedish language), a few plugins installed, including paypal.
Any idea why it doesn't show up?
-
Hi oneway,
I updated the zip in the first post.
Jay
-
Hey Jay
Thanks for the updated file, though it's still not working. I'm not sure what I'm doing wrong here.
Is there any files that needs to be edited?
What I've done:
Installed 2.3.5
Installed Swedish language
The following plugins are installed and activated- Carousel, list seller items, offer button, OSC Terms, Paypal, Promo code
I removed old Promo code plugin, cleared DB, deleted files on server /plugins/promo and then installed the new zip.
Still no promo option under user account.
Funny thing is I'm also struggling with the Paypal plugin, API micro payments does not work but Normal payment works perfectly. Could it be I'm using an old paypal plugin? (EDIT: version 2.0.3 installed)
I have absolutely no idea what to do next......
-
The following plugin are very to use. It is very useful to payment by Paypal and also good for purchase. Paypal plugin is work for me. You can install promotion codes in your account page. It is work very well for me.
-
Hi I read in this thread that somebody had the same problem like I face now - the box to enter the promo code does not appear in the user account.
I have a brand new install of OSCLASS 2.3.5 with following modules installed and configured.
All files are downloaded/installed today or yesterday.
- Advanced Ad Management
- Bread crumbs
- Google Maps
- IP Blocker
- More edit
- Terms and Conditions
- Paypal payment
- Promo Codes
- Real state attributes
- Social bookmarks
Hope there is an explanation one day,... :'(
I had a look into the promo_codes folder, and realized that there are an index.php and an index1.php
Renaming index.php to index.php.orig and index1.php to index.php solved the problem on my server.
Would be nice to have this info in FAQ section of the script...
-
I have a problem...
if i set a value for a signup value, where is it saved? i can't see any variable on oc_t_preference table (only promo_reward_enabled)
so, if a new user register his credit is not incremented, but is 0!
...and some suggestion...
- maybe the plug in should send a mail to user if signup bonus is enabled, like "Congratulation! you have received 5€ bonus credit for Premium ads!"
- a message in user-registration like "Register now to get 5€ bonus credit!"
- if a create a promotion code would be appropriate to select an user id and send it an email with the promotion code
- an expiration time for bonus credit (require a new table and not the increment of f_amount on paypal_wallet and some edits on paypal plugin)
-
You should have two rows in the preference table this is the other one promo_reward_amount
I like your suggestions I will make a note of them and add them to the next version.
Thanks for the suggestions I like them all.
Thanks
Jay
-
Hi Cris,
So with your idea of expiring promo code money would you just subtract the amount they have left or would you subtract the whole promo amount?
I am thinking that it should only subtract the remaining amount.
jay
-
I am thinking that it should only subtract the remaining amount.
jay
yes, this is my idea!
for example you set 60 days for expiration time. when the user uses the promotion code the value is saved in a record, and in another record is saved today+60days (expiration date)
When an user buy a premium ad we have a code like:
if user promo_reward_amount >0
{
if expiration date >=today
{
if promo_reward_amount > premium cost
promo_reward_amount - premum cost
else
{
if promo_reward_amount = premium cost
{
promo_reward_amount - premum cost
expiration date == null
}
else
difference= premum cost - promo_reward_amount
promo_reward_amount==0
user f_amount - difference
}
}
else
promo_reward_amount==0
expiration date == null
(so the user can use a new promotion code)
}
else
user f_amount - premium cost
-
Where is the plug in for coupons?
-
where is the plugin?
-
Hi dtcllc,
You can download the plugin form the very first post in this topic. Currently I do not know of a coupon plugin.
Jay
-
Hi All,
Cris and I have been working on some great new features for the promo code plugin and are pleased to announce that promo code version 2.0 is out. You can download the latest version from the first post.
Jay
-
hello trains in the new updated plugin the option (Allow Signup Bonus Expiration) is not effective, there is always checked.
-
Problem solved, replaced the line 9 of file conf.php plugin by this line
___________________________________________________________________________
osc_set_preference('allow_signup_bonus_exp', Params::getParam("allow_signup_bonus_exp") ? Params::getParam("allow_signup_bonus_exp") : '0', 'plugin-promo', 'BOOLEAN');
___________________________________________________________________________
-
I found another bug,
when the options are unchecked, the promo code does not stack on the user's account, nothing happens!
-
Hi tijo972,
Thanks for the report I will look into it.
Jay
-
Hi everyone,
I have posted an update that fixes the issue with the promo amount not getting added.
Jay
-
Hi
I seem to have found another bug, the mail is not sent to the user.
trains "thank you for the fix made for accumulated credits"
-
Hi tijo972,
I as well have just noticed that bug. I will try to get it fixed asap.
Thanks
Jay
-
I uploaded the new fix, but it still isn't adding the promo amount.
-
I just installed the plugin and it is working fine. But I am not able to see the success or failure message when user enters the promo code after login.
Please let me know where to change the code ?
-
Great plugin however, I have a problem with the code redeeming.
If the user has already got credit, it works great but, if the user is new and has no credit it doesn't. I'm using 3.0 RC.
-
Hi astroboy,
I will take a look and see where the error is and get it corrected.
Jay
-
Great, thanks Jay
-
I'm not sure whats going on, but I still can't get the sign up bonus to show up. I have PayPal plus and I uploaded the newest promo codes version. :(
-
I've tried reinstalling both plugins, but the promo bonus does not show up still on the users end. I am using Bcute theme.
-
Okay, so I did some more testing and found that if I put expiration on the promo code, then it will show up. But if there is no expiration for the promo code, it does not show up to the user.
Also, no matter what I do, the new user credit does not show.
I even did a clean install and tried it on there with the default theme and it does the same thing.
-
Hi,
I will try to find the problem and get it fixed.
Jay
-
Okay, thanks!
-
Hi hallartistry,
I found the bug I was using the wrong table name so it was not inserting the value to the table.
You can download the updated version in the first post no need to uninstall the plugin just copy in the files.
Jay
-
Thank you so much! so it works fine now when entering a promo code, but it still isn't showing any credit after signing up as a new user for the new user credit.
-
I will look into why it is not working for the sign up bonus.
jay
-
I have got it working. Thanks for reporting the issues.
Jay
-
Yay, it works now :) Thanks again!
-
Not a problem. Thanks for reporting the issues. :)
jay
-
Hi,
I got it installed on osclass v3.01 howerver there seemed to be an issue with it. Once I tried sending a promotion to a user's email account, the php code issued the following message:
Warning: current() expects parameter 1 to be array, null given in /osclass/oc-content/plugins/promo_codes/index.php on line 150
thank you
-
Hi web2graphics.
Are you using more then one language? It sounds to me like the email template is missing.
Jay
-
Hi web2graphics.
Are you using more then one language? It sounds to me like the email template is missing.
Jay
Hi Jay,
No I did not install any new language. It is just the default English one
-
Hi web2graphics,
Can you check to see if in your email templates list if you have a template with this name "send_promo_codes"?
Jay
-
Jay,
I have copied all files from the latest plugin you uploaded in the first post. Whenever I create a new promo code, it says "Promo Code Created Successfully" but doesn't show it in the list.
-
Hi web2graphics,
Can you check to see if in your email templates list if you have a template with this name "send_promo_codes"?
Jay
no i dont have the send_promo_codes listed
-
Hi everybody.
Installed OK :)
I can create Promotion Codes OK :)
When an user goes to his Dashboard appears "Enter Promotion Codes" option OK :)
But when types the promotion codes and clicks "Redeem", nothing happens. :-[
Seems that the button just doesn't work.
I'm using OSClass Modern Theme 3.0
Thanks trains58554
-
Hi chaber,
Try checking the permissions of the oc-content/plugins folder make sure it is set at 755 and not higher.
Jay
-
Hi chaber,
Try checking the permissions of the oc-content/plugins folder make sure it is set at 755 and not higher.
Jay
Hi trains58554 ,
You asked me a question above and I answered could you let me know what's next?
-
Hello, is there a way to adapt the plugin to work without Paypal ? In fact, I am not using the paypal plugin as I don't want to get in a commercial relationship with publishers right now. As I am launching the site, for the first year I am only trying to attract new people with free premium ads. I already have the referral plugin but would like to have the promo code as well. I could eventually tailor made the Paypal plugin to allow the use with promo code only, but not sure how to do that. Any advise or help is very welcome. Thank you !
-
Hi jimwinny,
All you would have to do is install the paypal plugin. You do not have to set the paypal plugin up. The only reason the paypal plugin is required is for the tables that the plugin creates and for setting the price for the premium ads.
Jay
-
Hi.. trying to get this working. I can redeem the code in My Account, but when I go to publish a listing it still tries to charge me at the PayPal screen and doesn't post the listing.
-
Hi jonjones,
It is still going to say you need to pay for your ad you can now goto your account down to Item payment status and then you should be able to pay for your ad with your paypal wallet credit.
jay
-
Thanks. You've been really helpful. One more question and I think I'll be out of your hair. I was messing around with the Paypal plugins and I know the Promo plug-in uses tables created by it or something along those lines. I'm trying to activate the Promo plugin now and get this:
Plugin couldn't be installed because of: Error importSQL::ModelPromo
promo_codes/struct.sql
-
hello, how can i change the $ sign to P (Peso) on promo codes?? thanks...
-
Warning: current() expects parameter 1 to be array, null given in /home/content/18/9932318/html/oc-content/plugins/promo_codes/index.php on line 117
Warning: Cannot modify header information - headers already sent by (output started at /home/content/18/9932318/html/oc-content/plugins/promo_codes/index.php:117) in /home/content/18/9932318/html/oc-includes/osclass/core/BaseModel.php on line 72
After installing the promo_code i have tried every function i could think of....I am an awesome Beta tester...lol ;D
The error about i receive when a new user registers with the registration bonus enabled.
If the user hits the browser back button...the registration email send message is displayed. The user clicks the link to activate the account and the registration bonus show up in the account.
I tested this on 3 PCs one of which was at the site for the first time and the result was always the same.
I am running OSC 3.01 with the Repurpose 1.1.3 by OSClass team
OSClass theme using twitter bootstrap 1.4
I am also running the Paypal+ Version 1.0.5
Also the "pay with my credit" link does not always work....I believe it has something to do with the browser (IE8) if I have logged into different accounts without clearing my history and cookies.
The overall layout of the text all runs together when going to the "pay with my credit" or Paypal button purchase page and it would look more professional if the "pay with my credit" link were a button.
Do you know if some of this is a result of the Repurpose Theme?
I am running everything at this point pretty much Out-Of-The-Box before I begin any major customizing
I will dig into this myself but just wanted to give you a heads up and see what your thoughts were
Agwoan
-
Hi
I am using the latest plugin from page 1 with a straight out of the box osclass install with repurpose theme absolutely untouched and cannot get the credit from a promo code to show up on a users account.
The promo is logged as redeemed. It is not a new registration promo but one that is sent out.
If they try to redeem it again the used already notice comes up so that is all working.
Do I have to set permissions on something?
I have tried just about every combination of options and it simply won't do it. I have paypal installed and read through this thread and cannot find an answer.
Any Suggestions?
Just a thought for the future, on the message you have been credited $x, a link to an appropriate page that shows their balance would be good.
-
Hi
Re my last post.
Just noticed that in Sandbox mode, no credit is applied when a user redeems a promo, but turning sandbox off will add it.
This is awkward for testing. Maybe some sort of test mode could be thought of.
-
Hi!
Fantastic plugin! but it don'w work on osclass 3.0.2 when you insert the code there is no action!
Thanks you in any way! :)
-
There is a fix for this?
-
Which version are you using?
-
There are news for new version?
-
hi,
Please help, when i enable sign up bonus i got this error when sign up,
Warning: current() [function.current]: Passed variable is not an array or object in /home/xxxxx/public_html/oc-content/plugins/promo_codes/index.php on line 117
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/oc-content/plugins/promo_codes/index.php:117) in /home/mcnov11/public_html/oc-includes/osclass/core/BaseModel.php on line 72
please help. thank you.
this my site. www.tipidcorner.com (http://www.tipidcorner.com)
-
hi,
Please help, when i enable sign up bonus i got this error when sign up,
Warning: current() [function.current]: Passed variable is not an array or object in /home/xxxxx/public_html/oc-content/plugins/promo_codes/index.php on line 117
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/oc-content/plugins/promo_codes/index.php:117) in /home/mcnov11/public_html/oc-includes/osclass/core/BaseModel.php on line 72
please help. thank you.
this my site. www.tipidcorner.com (http://www.tipidcorner.com)
I got it, i added email templates to admin area.
-
hi,
Please help, when i enable sign up bonus i got this error when sign up,
Warning: current() [function.current]: Passed variable is not an array or object in /home/xxxxx/public_html/oc-content/plugins/promo_codes/index.php on line 117
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/oc-content/plugins/promo_codes/index.php:117) in /home/mcnov11/public_html/oc-includes/osclass/core/BaseModel.php on line 72
please help. thank you.
this my site. www.tipidcorner.com (http://www.tipidcorner.com)
I got it, i added email templates to admin area.
explain please wath did u do to fix this?...i have the same problem
-
Hi web2graphics,
Can you check to see if in your email templates list if you have a template with this name "send_promo_codes"?
Jay
Hi Jay....i have the same problem and i dont have the send_promo_codes email templatet....how can i fix this?
-
sir Enter Promotion Code button not working
-
Yep me too, when I enter promo code and pres "reedme" no action :(
-
Hi Guys,
Try checking the permissions of the oc-content/plugins folder make sure it is set to 755.
Jay
-
Yes I have set permissions 755 and still is problem :(
-
Try checking your error log maybe that will help shed some light on the problem.
Jay
-
Try checking your error log maybe that will help shed some light on the problem.
Jay
no error
-
Don't work with payment plugin 1.1?
-
Hi all,
I have an error message when I send a promo code for the plugin:
Warning: current() expects parameter 1 to be array, null given in /home/website/public_html/site.com/oc-content/plugins/promo_codes/index.php on line 150
In addition, the e-mail is not received by the user, however I get the message that the green mail was sent but with the error message.
Do you have all the same problem?
FYI, I'm running OS 3.0.2-Class and yet the plugin works pretty well ...
Thank you in advance for your help
-
I am getting the same message other users get when enabling a sign-up bonus. I do not have the "send_promo_code" email template...? Is this somewhere we are able to download it?
I am running V2.0
Also get this error when trying to send email...
Warning: current() [function.current]: Passed variable is not an array or object in /homepages/7/d258086924/htdocs/cleanoutmyattic/oc-content/plugins/promo_codes/index.php on line 150
Get green light and says "sent email succesful" but get that error and email never comes through
Thanks for your help
-
Hi all,
Do you have a solution for the error obtained when we want to send a promo code by e-mail?
Thank you in advance for your help.
-
Hi keish,
I will have to look at that function and see if it is working.
Jay
-
Hello Jay,
With pleasure, but I think the problem is not only in me but also in others ...
It is possible that this function does not see the return of several persons with error.
We hope you can solve the problem for sharing with us.
Thank you again for your help.
@ +
-
@keish,
I got it working. You can download the updated version in the first post. Let me know if it is working for you.
Thanks
Jay
-
@keish,
I got it working. You can download the updated version in the first post. Let me know if it is working for you.
Thanks
Jay
Hi jay,
Last night, I tested the drnière version you put up for me :-) thank you again.
I therefore as thou hast said in a previous message, disable the plugin and installed the current version. As always I handed access settings of the plugin folder 755. When I tested the plugin for sending e-mail, I still have the same error message as the previous version:
Warning: current () Expects parameter 1 to be array, null Given in / home / website / public_html / website / oc-content / plugins / promo_codes / index.php on line 150
However, the information I send e-mail green but I do not receive e-mail in my inbox: (
Do you have an idea?
@ all Am I the only one with the same error?
Thank you in advance for your help Jay and thank you for your work. I know I'm repeating myself but it's really nice of you to do this for everyone.
@ +
-
Hi keish,
It should be good to go now I hammered out the code a little so it is playing nicely now. :)
One thing you may have to do is check in your email templates and see if there are more than one email template for send_promo_codes If there is you will have to go into your database and remove it.
Jay
-
@keish,
I got it working. You can download the updated version in the first post. Let me know if it is working for you.
Thanks
Jay
Updated version not working - still no email templates (running OSClass 3.1)
-
In OSClass 3.1 the redeem button also does not work...?
-
Hi willywilliams80,
I will have to take a look at this plugin and check to see if it is compatible with 3.1 I think there are a few small changes i will need to make.
Jay
-
thans, Update 2-23-13 works fine on 3.1 the only problem is that the user does not receive the email, i check the Templates and i dont have any promo_codes template, all other functions are fine.
-
Any update on the plugin??
Still not able to get it to work with 3.1 and no email templates :(
Thank you for your help!
-
Hi
Not yet I am finishing up another plugin and then I will look at this one.
Jay
-
Hello,
I also found out that randomly when I make an add premium using a promo code via an iPhone, the cost (ex 1 eur) is deducted twice.
I don't know if this is linked to paypalplus plugin or promo code plugin.
-
Any idea when you will have the plugin updated?
Really lonely without this plugin working... :-[
-
Please help, i not working in os 3.1
-
Hi
Not yet I am finishing up another plugin and then I will look at this one.
Jay
Not to beat a dead horse, but... any ETA on this? This is a killer plugin -- except that "Redeem" doesn't work in 3.1 -- if you gave me a starting place to look, I'd be happy to dig in myself.
Thanks.
-
Hi all,
I will work on getting this plugin working with 3.1+
Jay
-
I got this plugin updated so now it works with 3.1.+
Jay
-
Holy crap - glad I didn't spend any time trying to figure it out -- 20 minutes. That's incredible!
-
I got this plugin updated so now it works with 3.1.+
Jay
The Redeem button still isn't working for me... thought?
-
Do you have the paypal plugin installed? If not then this plugin will not work. Also can you check to see if there are any errors in your error log?
Jay
-
I'm using Paypal Plus - Where would the errors that you'd be looking fro be? (specific to the plugin, or error_log file in the root of the site)?
EDIT: nothing in the "error_log" file in the root
EDIT 2: as an FYI I'm still on 3.1.0 -- i'm also running a (slightly) modified Modern Theme (nothing major - just updating some links / CSS)
-
is the action supposed to be only "ajax_redeem.php" (without anything else in the path)?
<form id="promo-code-form" action="ajax_redeem.php" method="POST" onsubmit="return false;">
-
when i install this plugin, it says: Plugin couldn't be installed because of: Error importSQL::ModelPromo
promo_codes/struct.sql please help me... :(
-
when i install this plugin, it says: Plugin couldn't be installed because of: Error importSQL::ModelPromo
promo_codes/struct.sql please help me... :(
It's probably because you had the old version installed - I had to go in and delete the 2 promo_codes tables before I could install the latest version. - if you have codes you need to keep, you may want to back them up first.
-
how to delete it??
-
how to delete it??
I went in through phpMyAdmin and selected the 2 tables, with selected > "Drop" -- there may be an easier way, but that's how I did it.
-
how to delete it??
I went in through phpMyAdmin and selected the 2 tables, with selected > "Drop" -- there may be an easier way, but that's how I did it.
done. thanks for your help!!! :)
-
Do you have the paypal plugin installed? If not then this plugin will not work. Also can you check to see if there are any errors in your error log?
Jay
As an update - I just did a clean install of 3.1.1, only installed the latest Promo Codes as well as Paypal Plus plugin, and still not getting any action to occur when I click "Redeem"
any thought?
-
Do you have the paypal plugin installed? If not then this plugin will not work. Also can you check to see if there are any errors in your error log?
Jay
As an update - I just did a clean install of 3.1.1, only installed the latest Promo Codes as well as Paypal Plus plugin, and still not getting any action to occur when I click "Redeem"
any thought?
same here. but it is working. promo code is credited. only the message is not published when i click redeem.
-
As an update - I just did a clean install of 3.1.1, only installed the latest Promo Codes as well as Paypal Plus plugin, and still not getting any action to occur when I click "Redeem"
any thought?
same here. but it is working. promo code is credited. only the message is not published when i click redeem.
Wow - I didn't even notice that it credited, but I got the same result... interesting.
-
As an update - I just did a clean install of 3.1.1, only installed the latest Promo Codes as well as Paypal Plus plugin, and still not getting any action to occur when I click "Redeem"
any thought?
same here. but it is working. promo code is credited. only the message is not published when i click redeem.
Wow - I didn't even notice that it credited, but I got the same result... interesting.
i also try to make some promo code with 1 max use only. when i used the codes, it is credited but when i check manage promo codes, it says: "Max Use 1, Use Left 1....... still other members can use this code. :)
-
Fixed the message issue:
in the index.php file on line 221
change:
"<?php osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
to
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
(add "echo") :)
-
Fixed the message issue:
in the index.php file on line 221
change:
"<?php osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
to
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
(add "echo") :)
when i click on save setting, it says. Could not open /home/ptc4bu/public_html/GPTSALES.COM/oc-content/plugins/promo_codes/index.php for writing: Permission denied
-
how are you editing the file?
-
how are you editing the file?
on my cpanel. right click the file and click edit.
-
how are you editing the file?
on my cpanel. right click the file and click edit.
from cPanel, you may need to change the permissions to 666 to allow the cPanel user to edit - just make sure you change it back to 644 after you've saved
-
how are you editing the file?
on my cpanel. right click the file and click edit.
from cPanel, you may need to change the permissions to 666 to allow the cPanel user to edit - just make sure you change it back to 644 after you've saved
still dont work. tells the same message.
-
not 100% sure, then -- I typically get in to files using WinSCP with my FTP account -- I don't edit files from cPanel too often.
-
not 100% sure, then -- I typically get in to files using WinSCP with my FTP account -- I don't edit files from cPanel too often.
will try that software.
i posted here on development.. "please help me. i cant delete, edit any files on my plugin folder.. that's why i cant fix any bugs on me plugins. please help me. also when i try to delete it, it will be deleted but when i reload/refresh the folder, it is still there. please help me!!!! "
-
not 100% sure, then -- I typically get in to files using WinSCP with my FTP account -- I don't edit files from cPanel too often.
will try that software.
i posted here on development.. "please help me. i cant delete, edit any files on my plugin folder.. that's why i cant fix any bugs on me plugins. please help me. also when i try to delete it, it will be deleted but when i reload/refresh the folder, it is still there. please help me!!!! "
Best of luck! :)
-
I have solved my own problem but i have another problem.
When i set the promo codes of maximum usage to 1. it can still use it by other members.
-
I have solved my own problem but i have another problem.
When i set the promo codes of maximum usage to 1. it can still use it by other members.
Not sure on that one - I don't have that need at this point, so it will have to either wait for the original dev to chime in, or until I have more time to look at it.
Sorry... :-\
-
I have solved my own problem but i have another problem.
When i set the promo codes of maximum usage to 1. it can still use it by other members.
Not sure on that one - I don't have that need at this point, so it will have to either wait for the original dev to chime in, or until I have more time to look at it.
Sorry... :-\
its ok. you've helped me a lot! THANKS MATE! :)
-
@tbare,
I will get that echo added in I had made some small changes there and I must of forgot that echo. In any case I will get it added and update the zip.
@aaron05,
I will take a look and see why the limit of uses is not working correctly.
Jay
-
@tbare,
I will get that echo added in I had made some small changes there and I must of forgot that echo. In any case I will get it added and update the zip.
@aaron05,
I will take a look and see why the limit of uses is not working correctly.
Jay
Thanks, Jay -- still a great plugin -- I know what it's like to forget those little things... :)
-
Both frontend and backend turned to blank pages after installing on 3.02
error_log says:
Call to undefined function osc_enqueue_script() in /oc-content/plugins/promo_codes/index.php on line 211
-
Hi,
I installed the 3.1 version of OSClass and the spain theme with some modification (I converted the spain plugin to Paraguay).
The issue is if I activate the promo code plugin it breaks down the code.
Map and other stuff don't work anymore here is the error I get with firebug.
TypeError: $(...).uniform is not a function
[Break On This Error]
...#contact form button, .user_forms form button, .add_item form select, .add_item ...
if I go over the map I get more errors:
TypeError: statsRegions[key] is undefined
[Break On This Error]
...p-tooltip').html(statsRegions[key].name + ': '+statsRegions[key].count + ' ads')...
www.se...opy.com (line 323)
ReferenceError: canvas is not defined
[Break On This Error]
...p-tooltip').html(statsRegions[key].name + ': '+statsRegions[key].count + ' ads')...
www.se...opy.com (line 323)
TypeError: statsRegions[key] is undefined
[Break On This Error]
...p-tooltip').html(statsRegions[key].name + ': '+statsRegions[key].count + ' ads')...
www.se...opy.com (line 341)
TypeError: statsRegions[key] is undefined
[Break On This Error]
...p-tooltip').html(statsRegions[key].name + ': '+statsRegions[key].count + ' ads')...
www.se...opy.com (line 323)
can someone help?
Furthermore redeem button doesn't work ... it loads the code in the ajax funcion but fails to reload the page and advise the customer.
-
Installed Promo Code plugin and PayPal. Set everything up and code gave credits. Added echo in missing line. Now when I login as a user, it routes to the index.php file and gives this error message = "Invalid CSRF token." If I remove the index.php from url it loads pages as it should. When I logout as user, it sits on a blank page. Not sure if it has to do with THIS plugin bit I know Jay is an awesome developer and figured you could help! :)
I removed promo codes and my site works fine. Why would this make my site crash?
www.findfirearms.com in case you want to see for yourself.
Any ideas?
Thanks,
Clint
BTW: Awesome plugin!
-
I tested this plugin but don't work on my osclass 3.1.1 with php 5.3 and mysql 5.
The installation it's ok but don't work.
Bye!
-
Hi, I have the same of clint6998, paypal plugin and promo code installed, but when I try to login or to log-out the browser go the following address www.mysite.come/index.php and a blank page appears. The strange thing is that on altervista hosting (My test enviroment) everything is working. Any idea? Please let me know.... Thanks
-
Hi, I have the same of clint6998, paypal plugin and promo code installed, but when I try to login or to log-out the browser go the following address www.mysite.come/index.php and a blank page appears. The strange thing is that on altervista hosting (My test enviroment) everything is working. Any idea? Please let me know.... Thanks
If that is the case there is some requirement that is not met. I would like to know what that is. Error I get is about undefined function.
-
Hi Zombie, where can I found the error log?. Thanks for your Reply....
-
Hi Zombie, where can I found the error log?. Thanks for your Reply....
Check your web server config and see what file is specified. Usually something like error_log.
-
Hi, I found the error log:
"[21-May-2013 21:53:49 Europe/Rome] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/iiunmprs/public_html/oc-content/plugins/promo_codes/index.php:603) in /home/iiunmprs/public_html/oc-includes/osclass/core/Cookie.php on line 94
[21-May-2013 21:53:51 Europe/Rome] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/iiunmprs/public_html/oc-content/plugins/promo_codes/index.php:603) in /home/iiunmprs/public_html/oc-content/plugins/paypalplus/index.php on line 278"
Please have you got any idea?. When I try to public a ads, the browser go to www.mysite.com/index.php and a blank page appears. Now I am sure the problem is the promotion code
-
Warning: current() expects parameter 1 to be array, null given in /home/agogo/public_html/escorts/oc-content/plugins/promo_codes/index.php on line 150
-
Hello People
This Plugin dont work on my site. Version 3.1.1
Installation OK
Create a code OK
When I try to use code for make premium any ads I use the code and press Redeem Now I see "Your balance is $2.00 GOOD but
When I press Make this Ads PRemium and select "Pay with my credit" bottom dont work.
On Admin area, try to configure the Promo Plugin and appear a blank page with a LONG URL Only way to fix this is just type the admin url and enter from the dashboard.
I think need to be tunning. Please let me know If some 1 fix those issues. Thanks
-
Is the Paypal Plus plugin the same as the "Payments" plugin?
Haven't installed it yet but I recall having problems with the Paypal plugin last year and there is no Paypal Plus plugin listed in the plugin marketplace.
-
http://forums.osclass.org/plugins/new-plugin-and-new-features-paypalplus!/
-
hi. redeem button is not working for me. I use OC 3.1.2. Promo Codes Log is empty. I added the missing echo.
-
not working for me the button is not doing anything
it applies it but it will not do the redirect to say you added it :)
-
This Promo Code plugin V2.0 is now working properly with Osclass 3.1.2
All server permissions are set to 775
PayPal Plugin is installed and working.
Had to login with another email account to test it out successfully.
-
Does it work with 3.0.2? Last time i had a problem.
-
Don't know about 3.0.2 but it sure works with Osclass 3.1.2
-
It finaly works to me too. You must have isntalled "Paypal payment plugin" , not Payments plugin or others. Payments plugin is incomlete (missing wallet.php file).
By the way, how do I translate the plugin ?
-
What payment system are you using?
-
I have upgraded to Osclass 3.1.2 and to the last version of Promo Code plugin.
Plugin doesn't working.
When i try to send code to an user i receive this error
Warning: current() expects parameter 1 to be array, null given in ..... /public_html/oc-content/plugins/promo_codes/index.php on line 150
Code cannot be redeemed.
paypal
-
good evening
yes paypalplus 1.05
-
Finaly solved!
First of all, I use Osclass 3.1.2 and Paypal Plus plugin.
I had two problems with Promotion Codes:
1. No flash message on redeem button click. Can create code and it is alocated to users.
2. No email sent to users and this error: Warning: current() expects parameter 1 to be array, null given in /public_html/oc-content/plugins/promo_codes/index.php on line 150.
For no flash message or so called by many people no working/no redeem I used this trick:
Fixed the message issue:
in the index.php file on line 221
change:
"<?php osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
to
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
(add "echo") :)
For the second problem you need to do more steps:
a. Check database table t_pages for signup_promo_codes and send_promo_codes entries. I had 2 for each of them, so u need to erase the duplicate. If you don't have such lines you need to create them.
b. Go to table t_pages_description and create a template for both, signup_promo_codes and send_promo_codes.
Warning!!! If you have many languages instaled you must create a pair template for each language.
In my case they had numbers 29 and 30. So keep in mind the numbers and languages. I created one template en_US and one ro_RO for signup_promo_codes with number 29. Then I created en_US and ro_RO for send_promo_codes with number 30. After you create them you can edit from Admin panel because is more easy.
Warning 29 and 30 were my pages id so you need to keep yours!
Here is en_US template for signup_promo_codes:
s_title: {WEB_TITLE} is sendind you a Signup Bonus!
s_text: <p>Hi {CONTACT_NAME}!</p><p></p><p>You received a signup bonus credit from {WEB_TITLE}</p><p> Log in to {WEB_URL} and go to \"Ads payment status\" menu in your dashboard!</p><p>You can use this bonus credit to buy Premium Ads!</p><p>This is an automatic email, if you already did that, please ignore this email.</p><p> </p><p>Thanks</p>
Here is en_US template for send_promo_codes:
s_title: {WEB_TITLE} is sendind you a Bonus Credit!
s_text: <p>Hi {CONTACT_NAME}!</p><p> </p><p>This is your code to get a free bonus credit of {AMOUNT} {CURRENCY}: </p><p> {PCODE} </p><p> Log in to {WEB_URL} and go to \"Enter Promotion Codes\" menu in your dashboard!</p><p>You can use this bonus credit to buy Premium Ads!</p><p>This is an automatic email, if you already did that, please ignore this email.</p><p> </p><p>Thanks</p>
DONE!
You can customise these templates what ever you want.
So Promotion Codes has 3 problems: a missing "echo", duplicate or missing entries in t_pages table and missing templates for signup and send codes in t_pages_description.
This is how i solved my problem ;D
-
Wow EuroMonster!
I don't have two languages, and I haven't installed this yet because I am still reading and learning paypalplus and this plugin. But I am impressed by how much work you put into your above article.
Thank you for doing so much effort.
Cheers
Caz
-
Wow EuroMonster!
I don't have two languages, and I haven't installed this yet because I am still reading and learning paypalplus and this plugin. But I am impressed by how much work you put into your above article.
Thank you for doing so much effort.
Cheers
Caz
Thank you! I hope my work will help you make this plugin work. I'm sure the developer will fix all this in the next update :) ;D
Cheers ;D
Carl
-
hi
I'm etider the index file and I always error
/ oc-content/plugins/promo_codes/index.php on line 150
function promo_js(){
echo "\n";
?><!-- promo_code js -->
<script type="text/javascript">
$(document).ready(function(){
$("#promo-code-form").submit(function(){
$.post(
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
$("#promo-code-form").serialize(),
function(data){
if (data.success){
$("span#promo-message").css({"color":"green"} );
$("span#promo-message").css({"font-size":"20px"} );
}
else{
$("span#promo-message").css({"color":"red"});
$("span#promo-message").css({"font-size":"20px"} );
}
$("span#promo-message").html(data.message);
},
"json"
);
});
});
</script>
<?php
}
thank you
-
hi
I'm etider the index file and I always error
/ oc-content/plugins/promo_codes/index.php on line 150
function promo_js(){
echo "\n";
?><!-- promo_code js -->
<script type="text/javascript">
$(document).ready(function(){
$("#promo-code-form").submit(function(){
$.post(
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
$("#promo-code-form").serialize(),
function(data){
if (data.success){
$("span#promo-message").css({"color":"green"} );
$("span#promo-message").css({"font-size":"20px"} );
}
else{
$("span#promo-message").css({"color":"red"});
$("span#promo-message").css({"font-size":"20px"} );
}
$("span#promo-message").html(data.message);
},
"json"
);
});
});
</script>
<?php
}
thank you
Adding the "echo" you fix just the messages.
Error on line 150 is given by the missing email template.
Please do the following steps.
a. Check database table t_pages for signup_promo_codes and send_promo_codes entries.
b. Go to table t_pages_description and create a template for both, signup_promo_codes and send_promo_codes.
See my tutorial above.
-
hi
sorry I had not seen your tutorial again thank you
Can you tell me why I install the plugin decale me all over main image
are there any adjustments to make as I install plugin
Promotion codes V 2.0 compatible with 3.1. +
Carousel for OSClass 2.0
-
hi
sorry I had not seen your tutorial again thank you
Can you tell me why I install the plugin decale me all over main image
are there any adjustments to make as I install plugin
Promotion codes V 2.0 compatible with 3.1. +
Carousel for OSClass 2.0
Hi,
As I know now Carousel is not working with OSclass 3.1.+
I unistalled Carousel also I deleted some entries of this plugin from t_preferences.
In your case maybe is something in main.php who did this. Try to relocate some additional codes inserted in main.php
Please let me know if my tutorial works for you in Promotion Codes v 2.0
-
hi
small bug here I check Allow Bonus Expiration (If not checked Credit Will Be added on user's wallet) and Allow Signup Bonus Expiration (If not checked Credit Will Be added on user's wallet) and then as soon as I click update its back as before
-
hi
small bug here I check Allow Bonus Expiration (If not checked Credit Will Be added on user's wallet) and Allow Signup Bonus Expiration (If not checked Credit Will Be added on user's wallet) and then as soon as I click update its back as before
It is a problem with accesing your database, script bug or hosting restriction, database bug. It happens also in Paypal plus with currency :)
So I sugest to acces your database, t_preferences table and manual modify some lines in plugin_promo section: allow_bonus_exp, allow_signup_exp with value 1 which means active. Other values must be according with your wish. See my attach
-
First, thanks to Jay for the plugin and EuroMonster for his solution to this problem. :) Later I have found another bug, at last the mail "This is your code to get a free bonus credit of..." was being sent and received, but no amount after that, only the currency. ??? Excuse me if this issue has been yet taken care of in this long thread (I confess I didn't read it all), but just in case:
In send_email.php, line 45, this:
<input type="text" name="codeId" id="codeId" style="visibility:hidden" value="<? echo $codeId; ?>" />
ought to be:
<input type="text" name="codeId" id="codeId" style="visibility:hidden" value="<?php echo $codeId; ?>" />
I had read warnings about this shorcut before, now never ever forget them... :D It's been a while until I realized what was failing. :o
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On
Regards
-
s_text: <p>Hi {CONTACT_NAME}!</p><p></p><p>You received a signup bonus credit from {WEB_TITLE}</p><p> Log in to {WEB_URL} and go to \"Ads payment status\" menu in your dashboard!</p><p>You can use this bonus credit to buy Premium Ads!</p><p>This is an automatic email, if you already did that, please ignore this email.</p><p> </p><p>Thanks</p>[/i]
Another issue (at least for me ??? ): that {WEB_URL} isn't giving the right link in the mails, I had to replace it with {WEB_LINK}
Regards
-
promo codes is not working on my site anymore, i just noticed im not sure for how long this has been going on. Please check it out jay. Whenever you press "Redeem" nothing happens...................... :-\
-
promo codes is not working on my site anymore, i just noticed im not sure for how long this has been going on. Please check it out jay. Whenever you press "Redeem" nothing happens...................... :-\
Hi,
Please read my tutorial above :)
This plugin needs some fixies and you can find them here.
-
hi
I thank you research the French translation
-
Good evening all I have done the translation plugin paypalplus promotional codes and plien else here is a more
-
I enabled Enable Signup Bonus, the email is sent to user notifying that he recived a bonus, but no bonus is assigned in his account. What's wrong.
-
when i enabled permalink its not working when use get credit please advise how to fix
-
Hi,
After installing this plugin, users can no longer register or login for some reason. You type in your details and click login and the page just sits there or when you register you type in your details and again after clicking register, the page just sits there.
Not to sure what would have caused this.
Cheers,
EasyPicks
-
Hi Jay
You wrote
"Hi willywilliams80,
I will have to take a look at this plugin and check to see if it is compatible with 3.1 I think there are a few small changes i will need to make.
Jay"
Any update if this will and/or if it works with the Bender 3.2 theme?
Regards,
AVBestDeals
-
hello to when the new compatible version 3.2.1
-
I have e problem with promo codes and paypal plus. I add my topic here: http://forums.osclass.org/plugins-20/paypal-plus-and-promo-code/
Please , someone can help me?
And :
"
Hello,
I have osclass last version, paypalplus_1.0.5 and promo codes, and spain theme.
I have probleme with my featured ads. I add free ads and i want to make featured. I used a code named free with 500 Euro amount. I write "free" and he tell me that my balance has 500 euro. This is ok, but the probleme is : if i want to make premium my ads, it show me the paypal button to pay 2 euro if i want to make it premium. If i go to my balance (i add a little code in my user dashboard to show my balance) it show me 0 Euro. Promo code dont add money in my balance.
And anither probleme with promo codes. In my admin i add 5 times can used an code, but if i used one time, then he tell me: Error: Sorry you have already redeemed this code
Someone can help me please? I need urgently and i don't know what to do. I', from Romania."
-
No one can help me?:(.. Please someone.
-
I'm sorry, Yupii, I don't use this plugin. Maybe someone else can help.
-
Hello There,
I have 3.0.2.. I installed promo code plugin... but when i try to click/reedem... in my account section.. clicking of button does nothing
-
Hello There,
I have 3.0.2.. I installed promo code plugin... but when i try to click/reedem... in my account section.. clicking of button does nothing
I have the same problem. How can this be fixed? I just tried it, but I was too fast and sent a Promo code already out for registered users... :( Now I see that I can't redeem my own Promo code, because the button does nothing while clicking on it :(
-
Hi,
Yes I have the same thing, does nothing when clicked, plz help to get this great pluging fixed for 3.2 and other OSClass Versions...
Thanks in advance!
AVBestDeals
Hello There,
I have 3.0.2.. I installed promo code plugin... but when i try to click/reedem... in my account section.. clicking of button does nothing
I have the same problem. How can this be fixed? I just tried it, but I was too fast and sent a Promo code already out for registered users... :( Now I see that I can't redeem my own Promo code, because the button does nothing while clicking on it :(
-
I fixed it, when you click on Redeem it seems nothing happens, but it's not true! It does in fact get credited, but the echo for the credit does not appear!
here is a post I found, that helped me in this matter:
Fixed the message issue: in the index.php file on line 221 change:
"<?php osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>", to
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>", (add "echo")
-
Hi
My code does have the echo as below
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>",
I do take a look into the DB table = [t_promo_code_redeemed] and it was empty, the code/credit was not added.
If anyone else has got this to work, please do reply so I can fix my promor code plugin...
Thanks!
AVBestDeals
I fixed it, when you click on Redeem it seems nothing happens, but it's not true! It does in fact get credited, but the echo for the credit does not appear!
here is a post I found, that helped me in this matter:
Fixed the message issue: in the index.php file on line 221 change:
"<?php osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>", to
"<?php echo osc_ajax_plugin_url("promo_codes/ajax-redeem.php"); ?>", (add "echo")
-
Update:
I notice that redeem page form is calling this form action in file user_promo_code.php & promo_code.php
<form id="promo-code-form" action="ajax_promo.php" method="POST" onsubmit="return false;">
I do not see a ajax_promo.php file in any of the promo code folders?
I do see a ajax-redeem.php file?, is this a coding error or is this code correct for the redeem promo code to work?
Thanks!
AVBestDeals
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi
has anyone found a fix for the user adding the promo code in the dashbaoard and clicking the redeem button and nothing happens?,
Has anyone code or added the missing wallet.php file?
Do we need to use the paypal plugin?,
Does it not work on 3.2 with the bender theme and the payment plugin?
Please advise?
AVBestDeals
It finaly works to me too. You must have isntalled "Paypal payment plugin" , not Payments plugin or others. Payments plugin is incomlete (missing wallet.php file).
By the way, how do I translate the plugin ?
-
I am using the newest version of OSclass 3.2 and the Minimalist Theme and it works now, since I changed these codes.
But I am not using the Payment plugin anymore. It was not really working anyway. Since I use the PayPal Plus Plugin it works!
-
Hi Tanjeria
Thanks for the reply!
but i have seen here in the forum that the new one to use is the payment plugin,
I think the paypal plugin is going to be phased out!
If one of the admin or plugin publisher could reply to this to clear this issue it will great help the forum/osclass users!
Thanks all for your help & support...
AVBestDeals
I am using the newest version of OSclass 3.2 and the Minimalist Theme and it works now, since I changed these codes.
But I am not using the Payment plugin anymore. It was not really working anyway. Since I use the PayPal Plus Plugin it works!
-
Hey AVBestDeals,
as long as I am informed, it is true for the normal PayPal Plugin [the one that you can download from within your Admin panel from OSclass], which does not work for the 3.2 version!
But in this forum you can find the PayPal Plus Plugin, which works really great and this one supports this Promo code!
Here: http://forums.osclass.org/plugins/new-plugin-and-new-features-paypalplus!/ (http://forums.osclass.org/plugins/new-plugin-and-new-features-paypalplus!/)
This is the plugin that I am using, without any problems.
-
oops. without any problems, was too early to say that -.- Just had a member telling me:
So I posted the video and everything but when I click on make premium 10 days and I click on pay with my credit, it says that the page couldn't be found How can I fix this error? When I credit myself and click on that button I see the same page. A non existent page. But the wallet.php is there???
-
found out, that the plugin is working, when Permalink user friendly URL's are off...
What do I need to change in order to make it work with the user friendly URL's on?
-
now this plugin is working fine redeem button also working but when user click on Pay with your credit then they get error page like that http://www.domain.com/test/index.php?page=custom&file=paypalplus/wallet.php?
-
i found a little bug when permalinks if off then promo code balce work with premium ads but when permalinks on then make a premiumads button not working
-
Any one have working promo code plugin with payment gateway?
-
Shits no help :(
-
Hi Hello,
Promo codes does not yet support the payments plugin. It should work with the paypal plugin. I am planning on doing an update to this plugin within the next month or so.
Jay
-
Hi Jay
Thanks for the update,
I will be on the lookout for this updated plugin!
As you know that the payment plugin is the newer, and what most are and will be using going forward!
Thanks,
AVBestDeals
-
Hi Hello,
Promo codes does not yet support the payments plugin. It should work with the paypal plugin. I am planning on doing an update to this plugin within the next month or so.
Jay
But now all are set but when i have some $ in account and going to geting permium ads then i got errro but this is working fine when permalinks is off thanks
-
It may not be compatible with 3.2. I have not checked yet. The next version for sure will work. :)
Jay
-
pls update this plugin and add indian currency thanks
-
hi
Please update this plugin and add currency euro and add another type 'Available for (Page Ads retailer purchase) and use by all groups or hoose User Groups
thank you ;D
-
has there been any more developments on this plugin?
-
Loving the idea so I am necro-ing this :)
-
@heidenmason,
Nope not currently but it is on my list of plugins to update.
Jay
-
So I might be stupid but how would I use bender theme now to promote free ads when they normally cost something? Do I have to manuallt set stuff to 0 under a period and then change to cost? Instead of using a coupon system? It should already be a system built in for this :)
-
Any update for this plugin? Its very helpfull to start new page.
-
Helo please Help
No credit is applied when a user redeems a promo
-
not wotking with 3.4.1
-
:-\ no update?
-
no update any more?
this plugin needs the option to send email to administrator and user when a user use some codes.
this usefull when admin wants to share some promotion codes to Attract user to send premium ads.
and no need to send codes to user. because resellers share this codes to everyone that wants to add premium ads.
-
Hello
Is there no updates yet?
I know it's an old post...but I still can't find another solution for "Promo Codes" (Coupon).
Or is there any...?
Thanks in advance