laszlof 0 Posted July 28, 2010 (edited) Purpose This module was created to allow affiliates to create their own coupon codes to provide to their clients. Features Create an unlimited amount of coupon templates Allow affiliates to create coupons based on templates End-users using affiliate coupon codes get a discount, and the affiliate gets a referral credit Affiliate can redirect their affiliate URL to a custom landing page Price FREE! Support I'll do my best to support this product, but being that it is free and open source, please do not expect me to take hours troubleshooting any problems you have. Either post here, or email me Where do I download it? All versions will be listed below with their applicable download links. You should almost always choose the latest version. Affiliate Coupons 1.1 - download Affiliate Coupons 1.0 - download Please let me know if you find any bugs, and I am always willing to accept patches for new features, bugs, etc. Frank Laszlo Code Ninja A Small Orange Software Edited July 28, 2010 by laszlof 0 Share this post Link to post Share on other sites
EasyWHMCS 0 Posted July 28, 2010 Looks like a good idea, Will download and check it out later, Cheers 0 Share this post Link to post Share on other sites
Daniel 0 Posted July 28, 2010 Nice mod Frank Just a couple of questions: - How does it deal with multi-currency support? The default "Fixed Price" coupon seems to show $5 regardless of the customers currency. If someone signed up for a product in GBP what discount would they get? - I assume the coupon amount is "free" to the affiliate? i.e The $5 discount isn't deducted from their payout? Thanks Dan 0 Share this post Link to post Share on other sites
laszlof 0 Posted July 28, 2010 (edited) Take a look at the configuration file (affcoupon_conf.php). It allows you to create whatever coupon layout you want. The $5 off coupon was just an example, I assume that WHMCS will do the currency conversion? You would have to test it out And yes, the coupon doesn't cost the affiliate anything. Its just a way to entice people to go through them as an affiliate. Would you rather follow some shotty referral link, or use a coupon code given to you by someone that saves you $5? In turn, the coupon does exactly what the referral link would do, and give a commission to the affiliate, but it also grants the end user a discount as well. Its a win/win situation for affiliates. Let me know if you have any other questions! EDIT: I believe the coupon amount will be in your default currency. However, I probably hardcoded the dollar sign so that may be something I will have to look at. Edited July 28, 2010 by laszlof 0 Share this post Link to post Share on other sites
Daniel 0 Posted July 28, 2010 Thanks Frank. I took a look at the config but couldn't see any mention of currency. I've run a test and it just gives $/£5 off depending on the currency the new client chooses to sign up with, though thats a WHMCS limitation rather than a mod problem. Great idea for a mod and seems to work great. 0 Share this post Link to post Share on other sites
laszlof 0 Posted July 28, 2010 Thanks for clearing that up, I was a bit puzzled myself. I assume that would be the same with any coupon code used. If someone pays with a currency that is worth a lot more than USD, they could get a sizable discount. Oh well, We've been using the $5 coupons for a long time and never really had an issue, as most people pay in USD anyways. In a future release I'll see about adding a currency option. 0 Share this post Link to post Share on other sites
Daniel 0 Posted July 28, 2010 It may also be worth adding if the coupon is recurring or not to the dropdown in future releases, at the moment it doesn't mention anything which may be confusing when offering for example a 20% one time discount and a recurring 10%. 0 Share this post Link to post Share on other sites
Collin1000 0 Posted July 28, 2010 Have a cookie. ASO rocks. 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted July 31, 2010 Thanks buddy for this mod......very useful thing...but i can't manage it through WHMCS admin area... 0 Share this post Link to post Share on other sites
laszlof 0 Posted July 31, 2010 I'll probably add that in the next release. For now, you'll need to use the configuration file. 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted July 31, 2010 No problem and is there any bug in it? I have to use it in live environment so i can't afford any trouble Thanks for the mod. 0 Share this post Link to post Share on other sites
laszlof 0 Posted August 1, 2010 (edited) Not as far as I know. Make sure you don't have "display_errors" enabled in your configuration file. Don't ask me why, but if you have this enabled, things break during checkout. I believe I noted it in the README or INSTALL file. We're using it in a live environment with a couple thousand affiliates, and haven't had any problems. Edited August 1, 2010 by laszlof 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 1, 2010 ok Great, in end of affiliate.tpl there is a code : {php}include('affcoupons.php'); {/php} Now how can i make it part of affiliate .tpl file so that i can customize it easily? 0 Share this post Link to post Share on other sites
laszlof 0 Posted August 1, 2010 The included affiliate.tpl file contains the correct code, you can just drop it in place of the existing affiliate.tpl file if you wish. If you have already modified the affiliate template, you only need to add the aforementioned lines where you wish the affiliate coupon section to show up. 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 1, 2010 I know that, But i want to edit the affiliate coupon section. Do i need to modify it in affcoupons.php or Is there any way i can do it? 0 Share this post Link to post Share on other sites
laszlof 0 Posted August 1, 2010 Yes, you would need to edit affcoupons.php. There is no template used for that section. I used the default style sheets so modifications to the CSS should match up with your site fairly well, but hey, its free software so feel free to do whatever you want to it. Just remember that when I release updated versions you will likely need to redo whatever changes you make. 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 1, 2010 oh i fixed it now it's looking neat Following is snap shot from new client area of Slum Host, it's still under development. 0 Share this post Link to post Share on other sites
laszlof 0 Posted August 1, 2010 Wow. That looks really nice. well done! 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 1, 2010 Thanks to you for making such a useful mod, I will post more pictures of our new client area soon. Thanks to WHMCS staff for giving me Free license just for development purpose 0 Share this post Link to post Share on other sites
laszlof 0 Posted August 1, 2010 You're very welcome. Expect to see improvements to this one, and some other idea's I've been poking around for NEW addons. Most of what I release will be free, but I do have a few idea's for some more commercial-level mods that I will probably charge a fee for. 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 1, 2010 Sure, You should charge a fee for Mods, I can imagine hard word in making a Mod, Because template customization is also not easy. Best of luck 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 1, 2010 How can i show Recurring Column in client area? 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 1, 2010 WOW! I did it Recurring column is working great. 0 Share this post Link to post Share on other sites
laszlof 0 Posted August 1, 2010 That particular option was requested by a few of our customers, so I'lll be adding it into the next release. 0 Share this post Link to post Share on other sites
b.ahmed 1 Posted August 2, 2010 I have added it and it's working great I will soon upload the update code because right now it's customized according to Slum Host client area.... 0 Share this post Link to post Share on other sites