dothead Posted November 22, 2010 Share Posted November 22, 2010 Have not tried it out personally but I do have a hypothetical question before i do . What would happen if say 2 affiliates by some random chance of nature enter the same coupon code for their discount coupons. ? Say Affiliate No 25 enter his coupon code as 30OFF as well as affiliate No50 enters too as as 30OFF. Will its still award the right affiliate his commission etc. Dothead Link to comment Share on other sites More sharing options...
laszlof Posted November 23, 2010 Author Share Posted November 23, 2010 You cannot enter 2 of the same promotion codes. It verifies that the code does not already exist before allowing it to be inserted in the database. Link to comment Share on other sites More sharing options...
GGWH-James Posted January 21, 2011 Share Posted January 21, 2011 This is working with v4.4.2? Link to comment Share on other sites More sharing options...
EasyWHMCS Posted January 21, 2011 Share Posted January 21, 2011 This is working with v4.4.2? We're using it on 4.4.2 no issues... Link to comment Share on other sites More sharing options...
GGWH-James Posted January 21, 2011 Share Posted January 21, 2011 We're using it on 4.4.2 no issues... Good to hear. Will git r done and setup later... Well, maybe tomorrow would be a better time to do it. Link to comment Share on other sites More sharing options...
Lemni Posted January 23, 2011 Share Posted January 23, 2011 Just installed this with 4.4.2. I don't think it installed completely. I'm able to go to the add-on menu item and add a coupon code, associated with a product (just like the built in function) but I do not see how to then relate this code to a client. If I try to use the code on the product purchase screen, WHMCS reports that it cannot find the code. I'm missing a step somehow. Link to comment Share on other sites More sharing options...
laszlof Posted January 23, 2011 Author Share Posted January 23, 2011 The client would need to generate the coupon code from within the client area. Link to comment Share on other sites More sharing options...
Lemni Posted January 24, 2011 Share Posted January 24, 2011 Am new to WHMCS so took me a while to figure out that I was using Portal and not Default Template on front end, so could not see the template adjustment... looks like I can get it working now. Thanks for amazingly fast response. Link to comment Share on other sites More sharing options...
Bora Posted April 1, 2011 Share Posted April 1, 2011 Amazing, will be using this soon! Link to comment Share on other sites More sharing options...
Snowman Posted April 26, 2011 Share Posted April 26, 2011 Frank we have a small issue with this great mod where the redirect from the https://clients.domain.com.au/*?aff=004 url is redirecting to https://clients.domain.com.aucart.php?a= .... as you can see the / is missing at the end of the domain name we are at a bit of a loss on this one as the settings in whms for the install use a / at the end of the url any ideas? Link to comment Share on other sites More sharing options...
laszlof Posted April 26, 2011 Author Share Posted April 26, 2011 Are you using a custom landing page? By default it will just redirect to your whmcs homepage. If you have a custom landing page set, it will go there. Link to comment Share on other sites More sharing options...
Snowman Posted April 26, 2011 Share Posted April 26, 2011 Frank No im not using a custom landing page... and the issue lies with the redirect not placing a / at the end of the domain name Link to comment Share on other sites More sharing options...
laszlof Posted April 26, 2011 Author Share Posted April 26, 2011 The default redirect works exactly the same as the unaltered *: if ($landing) { header("Location: $landing"); exit; } else { header("Location: ".$CONFIG["Domain"]); exit; } What do you have set for you whmcs url? Do you have an .htaccess redirecting it? Link to comment Share on other sites More sharing options...
Snowman Posted April 26, 2011 Share Posted April 26, 2011 the whmcs url is https://clients.fluccs.com.au the url link we were testing with is https://clients.fluccs.com.au/*?aff=004 we dont have any redirects on the domain name Link to comment Share on other sites More sharing options...
laszlof Posted April 26, 2011 Author Share Posted April 26, 2011 Thats not something my module is doing. The fact its redirecting to a cart page at all means you have a landing page set. Try this from phpmyadmin/mysql console SELECT landing FROM tblaffcouponslanding WHERE aff_id = 4 If you browse to the aff link using Live HTTP Headers in firefox, you can see its first redirecting to: https://clients.webhostsaustralia.com.au/cart.php?a=add&pid=230 Then it gets redirected again to: https://clients.fluccs.com.aucart.php?a=add&pid=230 You can verify this by trying to go directly to https://clients.webhostsaustralia.com.au/cart.php?a=add&pid=230 without the affiliate link. It doesn't work. Link to comment Share on other sites More sharing options...
Snowman Posted April 26, 2011 Share Posted April 26, 2011 Frank...thanks i never would have realized what was happening there.... we re branded our whmcs install and i assume,e the old link was left behind by mistake instead of being changed to the new link Thanks for solving my mystery Link to comment Share on other sites More sharing options...
laszlof Posted April 26, 2011 Author Share Posted April 26, 2011 No problem, feel free to ask if you have any other questions. Link to comment Share on other sites More sharing options...
Real Webspace Posted June 6, 2011 Share Posted June 6, 2011 Just commented out some things but got my custom landing pages working THANKS Link to comment Share on other sites More sharing options...
emilio Posted June 30, 2011 Share Posted June 30, 2011 laszlof, thank you very much for sharing your addon, now a query, can work properly in version 4.5? thanks Link to comment Share on other sites More sharing options...
laszlof Posted June 30, 2011 Author Share Posted June 30, 2011 Yes, it works fine on all versions. Link to comment Share on other sites More sharing options...
lordam Posted July 8, 2011 Share Posted July 8, 2011 Hello, i try work with you modules, everything fine, thanks. But i have some question: --- when client make order and get coupon code, in admin panel WHMCS to view of order in custom Affiliate whose None - Manual Assign. To fasten an order on a Affiliate I must press "Manual Assign" and to choose a Affiliate comparing which has a code of coupon. Does it can must work automatically, checking up whose coupon entered and to put Affiliate? Link to comment Share on other sites More sharing options...
laszlof Posted July 8, 2011 Author Share Posted July 8, 2011 It should work automatically. Are you testing it while being logged in to the admin interface? That will clear out any affiliate info. Link to comment Share on other sites More sharing options...
lordam Posted July 8, 2011 Share Posted July 8, 2011 Yes, I entered in the panel of administrator then "Login as Client". It was my error? Link to comment Share on other sites More sharing options...
laszlof Posted July 8, 2011 Author Share Posted July 8, 2011 Yes, you need to be completely logged out of the admin for testing. If you remain logged into the admin, any affiliate data will clear out (this is a function of WHMCS, not my module). Link to comment Share on other sites More sharing options...
lordam Posted July 8, 2011 Share Posted July 8, 2011 Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts