Loading


Advertisement:

Author Topic: [Plugin] Promotion codes V 2.0 compatible with 3.1.+  (Read 51397 times)

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3644
  • osCanyon, the class of Osclass
[Plugin] Promotion codes V 2.0 compatible with 3.1.+
« 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







More sneak peek pictures






*** 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

« Last Edit: March 28, 2013, 05:03:30 am by trains58554 »

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [Plugin Sneak Peak] Promotion codes
« Reply #1 on: July 26, 2011, 02:38:10 am »
wow, that looks great... i cant wait :)

keny

  • Full Member
  • ***
  • Posts: 137
Re: [Plugin Sneak Peak] Promotion codes
« Reply #2 on: July 26, 2011, 04:54:52 pm »
Great pluggin !!

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2384
Re: [Plugin Sneak Peak] Promotion codes
« Reply #3 on: July 26, 2011, 08:42:55 pm »
How do you create the promotional codes form? Do you set a number of promotional codes?

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3644
  • osCanyon, the class of Osclass
Re: [Plugin Sneak Peak] Promotion codes
« Reply #4 on: July 26, 2011, 09:44:35 pm »
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

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2384
Re: [Plugin Sneak Peak] Promotion codes
« Reply #5 on: July 27, 2011, 01:42:53 pm »
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

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3644
  • osCanyon, the class of Osclass
Re: [Plugin Sneak Peak] Promotion codes
« Reply #6 on: July 27, 2011, 02:27:10 pm »
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

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [Plugin Sneak Peak] Promotion codes
« Reply #7 on: July 27, 2011, 03:52:57 pm »
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?

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2384
Re: [Plugin Sneak Peak] Promotion codes
« Reply #8 on: July 27, 2011, 04:47:13 pm »
I understand that the promo code get expired once it's used, am I right?

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3644
  • osCanyon, the class of Osclass
Re: [Plugin Sneak Peak] Promotion codes
« Reply #9 on: July 27, 2011, 06:30:19 pm »
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.

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [Plugin Sneak Peak] Promotion codes
« Reply #10 on: July 27, 2011, 06:35:06 pm »
oh, okay sounds good

keny

  • Full Member
  • ***
  • Posts: 137
Re: [Plugin Sneak Peak] Promotion codes
« Reply #11 on: July 27, 2011, 09:50:46 pm »
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

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3644
  • osCanyon, the class of Osclass
Re: [Plugin Sneak Peak] Promotion codes
« Reply #12 on: July 27, 2011, 11:46:35 pm »
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

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3644
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #13 on: July 29, 2011, 08:24:44 pm »
Hi all

Promo codes plugin is now released you can download the zip in the first post.


keny

  • Full Member
  • ***
  • Posts: 137
Re: [New Plugin] Promotion codes
« Reply #14 on: July 30, 2011, 08:26:24 am »
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 !