We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New module: Redeemer

Development and Programming

Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Redeemer is the first (that I know of) ExpressionEngine module for managing coupon codes. You can create them from the control panel, and even let users create their own codes based on an action they perform. On Twitter I mentioned I was building this and I got a couple of responses along the lines of “why don’t you just use EE’s built in Weblog to create coupons?” I could have done this, and thought about it, but you can only create a basic coupon code system with EE’s built in features. You won’t be able to easily, if at all, manage the number of times a coupon can be redeemed before it is invalid, limit by the user’s IP address, or member ID. You also won’t be able to generate new codes in the templates, and creating randomized codes would still require an extension or plug-in.

Aside from the automatic URL redirection, if defined, what happens when a code is valid or invalid, is completely up to you. Just use an {if valid} conditional.

       
russlipton's avatar
russlipton
305 posts
16 years ago
russlipton's avatar russlipton

I support (e.g., buy) commercial addons, but thank you very much for giving this to the entire EE community.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi Brian,

Thanks for putting this up for everyone to try out. I’m just wondering if I’m doing something silly somewhere though as I just tried this on 1.6.8 and when I went to the Modules tab I got a message on screen saying that it couldn’t load the lang.redeemer.php file. It’s definitely there in the system->language->english folder so not too sure what might be wrong here?

Best wishes,

Mark

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Mark, I’ll look into that. I’ve done the install process a couple of times and didn’t encounter that though.

@russlipton, I can’t sell it because it was done for a client project for my company… I can’t profit off something I did on company time.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Has anyone else installed this successfully/unsuccessfully and gotten the same language file error? I haven’t had a chance to look into this, but I’ve installed the module in 3 different EE sites without an error like this.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi Brian,

Just to let you know I tried it out on another site this time not getting the language file error but I did get a white page except for the error shown below when I attempted to go to the installed module page :

<

blockquote> Fatal error: Call to undefined method Display::view() in /usr/local/psa/home/vhosts/*****.com/httpdocs/admin/modules/redeemer/mcp.redeemer.php on line 231 [/blokquote]

Best wishes,

Mark

       
Bjørn Børresen's avatar
Bjørn Børresen
629 posts
16 years ago
Bjørn Børresen's avatar Bjørn Børresen

nice stuff litzinger,

do you have a link to a webpage where we can see it in action?

       
The Nerdery's avatar
The Nerdery
16 posts
16 years ago
The Nerdery's avatar The Nerdery

I have a demo at the URL above, but I can’t link to the site it was originally made for.

       
The Nerdery's avatar
The Nerdery
16 posts
16 years ago
The Nerdery's avatar The Nerdery

@mark, are you sure you’re using 1.6.8? Because that line contains the view call that was added in .8

$DSP->body .= $DSP->view(‘home’, $vars, TRUE);

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
@mark, are you sure you’re using 1.6.8? Because that line contains the view call that was added in .8 $DSP->body .= $DSP->view(‘home’, $vars, TRUE);

Yep definitely 1.6.8, localhost, brand new install. There are a few other modules and extensions installed so I’ll try on a completely blank install and see if that does anything different.

There isn’t anything different required to do to install the files are there? I mean they just go in the standard places don’t they.

Best wishes,

Mark

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Just tried with a brand new install of the latest build of 1.6.8 on a localhost OSX MAMP and got the language file problem again.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

I’m downloading MAMP and a fresh copy of 1.6.8 now and will try it in a bit.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
I’m downloading MAMP and a fresh copy of 1.6.8 now and will try it in a bit.

Thanks, much appreciated.

Best wishes,

Mark

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

I just did a squeaky clean install of 1.6.8 running on an also freshly installed copy of MAMP and couldn’t replicate your issue Mark.

Are you putting the system folder below the root folder or anything like that?

I did notice that in the settings I’m asking if you want to be notified of updates even if LG Addon Updater isn’t installed, so I should fix that. Other than that it’s working fine for me.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Are you putting the system folder below the root folder or anything like that?

Not entirely certain what you mean by that?.

I have http://localhost:8888/ee168test/index.php as the main test site. The system folder is in the usual place which is http://localhost:8888/ee168test/system

Other than that it’s just a bog standard install of 1.6.8 like yourself. I’ll give it one more go and see what happens.

Best wishes,

Mark

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.