mauwiks Posted August 28, 2019 Share Posted August 28, 2019 Hi everyone, how do we link an available add-on product to any of our customers? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 28, 2019 Share Posted August 28, 2019 6 hours ago, Mauwiks said: how do we link an available add-on product to any of our customers? quick way would be to send them to cart.php?gid=addons - they'd have to login though... or if they're logged in, there should be a "View Available Addons" link in the Services Menu. somewhere in the back of my mind, i'm sure that link used to be optional and you could disable it - anyway, it should be there to your clients. if you mean, can you use a link, as with products, to send them to a specific addon, then I don't think you can. 1 Quote Link to comment Share on other sites More sharing options...
mauwiks Posted August 28, 2019 Author Share Posted August 28, 2019 Thanks a lot. But what if I want to link a specific addon and not all of them? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 29, 2019 Share Posted August 29, 2019 18 hours ago, Mauwiks said: Thanks a lot. But what if I want to link a specific addon and not all of them? *coughs* On 28/08/2019 at 12:49, brian! said: if you mean, can you use a link, as with products, to send them to a specific addon, then I don't think you can. so whilst it couldn't be done in WHMCS natively, I suppose it could theoretically be done using a CAPC hook, passing an addon id parameter to the addons page (cart.php?gid=addons&addonid=12) and getting the hook to remove all addons apart from id=12... hmm, just quickly tried it in Smarty and the idea works in the template, so would certainly work as a hook too. 1 Quote Link to comment Share on other sites More sharing options...
mauwiks Posted August 29, 2019 Author Share Posted August 29, 2019 53 minutes ago, brian! said: *coughs* so whilst it couldn't be done in WHMCS natively, I suppose it could theoretically be done using a CAPC hook, passing an addon id parameter to the addons page (cart.php?gid=addons&addonid=12) and getting the hook to remove all addons apart from id=12... hmm, just quickly tried it in Smarty and the idea works in the template, so would certainly work as a hook too. Sorry, I haven't noticed this on the recent response. :) but ultimately, THANK YOU @brian! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 31, 2019 Share Posted August 31, 2019 the hook can be found in the thread below... 🙂 1 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.