Ragonz Posted March 25, 2017 Share Posted March 25, 2017 We are trying to create a trial system using the Auto Terminate/Fixed Term option within WHMCS however there doesn't appear to be anything that prevents clients from ordering as many of them as they want. Is there a way to limit the number of these products they can have in their account? Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 25, 2017 Share Posted March 25, 2017 there's no way to do it from the settings - unless you go down the promotion code route... http://docs.whmcs.com/Promotions http://docs.whmcs.com/Common_Promotions using that, you could limit a promo code to be used once in the cart and once per client... there was a free addon that used to work for previous versions, but I don't know if it works with v7... https://forum.whmcs.com/showthread.php?125186-How-to-Limit-a-Free-Product-once-to-a-client&p=501970#post501970 there would be other ways, including action hooks, but ultimately I don't think you could (easily) prevent someone creating multiple accounts in order to beat any limitations you want to employ on these products. 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted March 25, 2017 Author Share Posted March 25, 2017 We are not worries about multiple accounts as the product only becomes valuable after time is invested in it which would mean extending the fixed term via multiple accounts becomes pointless, what we mainly need it for is to prevent people accidentally ordering more than 1. - - - Updated - - - promo code may be the way to go but effort for client 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 25, 2017 Share Posted March 25, 2017 promo code may be the way to go but effort for client you could add the promotion code to your link(s) and the client wouldn't never need to enter the code themselves. http://docs.whmcs.com/Linking_to_WHMCS 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted March 25, 2017 Author Share Posted March 25, 2017 ooh, much appreciated 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted August 2, 2017 Author Share Posted August 2, 2017 (edited) Hi Brian Having a hard time getting this to work, I have it all working now except for automatically applying the promocode, it works fine when entered manually but not when in the url https:// mydomainhere/cart.php?a=add&pid=204&carttpl=slider?promocode=trial (space in url as domain is obviously replaced so I dont fall foul of any advertising rules you have and so you can see the full url) Edited August 2, 2017 by Ragonz 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 2, 2017 Share Posted August 2, 2017 change the question mark to an ampersand in the link and you're good to go - verified as working on your site too! https://mydomainhere/cart.php?a=add&pid=204&carttpl=slider&promocode=trial 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted August 2, 2017 Author Share Posted August 2, 2017 I dont know why that did not occur to me, this is what happens when too busy. Cheers again 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.