UXmedia Posted March 8, 2020 Share Posted March 8, 2020 I see how to create an addon and apply it to a product, thats cool. But, how do I create an addon for a domain purchase? ie: someone purchases a domain and automatically gets a free email. I have a free email package from Polaris that I want to offer to anyone who makes a domain purchase. Thanks!! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 9, 2020 Share Posted March 9, 2020 At this stage, it's not possible to create addons for domains, the only way to do that would be to make use of the Bundle System https://docs.whmcs.com/Product_Bundles 1 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 9, 2020 Share Posted March 9, 2020 5 hours ago, WHMCS ChrisD said: At this stage, it's not possible to create addons for domains, the only way to do that would be to make use of the Bundle System https://docs.whmcs.com/Product_Bundles that wouldn't work would it? you can't have domain-only bundles, and if the bundle contains a product and a domain, the product will be passed to the cart first for configuration before the domain - under those circumstances, you might as well just have a Polaris product that requires a domain and forget about using a bundle. the simplest solution, if you're going to include Polaris by default with a domain reg, but not charge the end user for it separately, would be to just add it to the Domain Registration page description - that is just a Language Override with no additional configuration/coding solution required. alternatively, you could do it back to front and, as I said earlier, make Polaris a product that requires a domain - so when they buy the product, they will need to search for a domain to use with it... if you would prefer the user, when searching for a domain, to be offered Polaris as an option (either free of $$$), then that's doable and needs... Polaris to be a separate product which requires a domain; you add a link to that product in the domain configurations page (technically can be virtually anywhere in the cart process - but let's not complicate it for now); the link passes the current domain in the cart to be used with the Polaris product and auto-adds it to the cart (note: if there is configuration required and you want the user to have a choice (i'm thinking billingcycle if you're going to charge for it), then that might need their manual intervention to make a choice). you could complicate this further by adding the product silently in the background without them having to click a link.... but that would really require hooks, whereas the above was just a quick code tweak to the template (though it could be done with hooks too - especially if you're going to add a lot of conditionality to this). 0 Quote Link to comment Share on other sites More sharing options...
UXmedia Posted March 9, 2020 Author Share Posted March 9, 2020 Thanks @brian! I am also, right now, trying to add a Promotion... Our sales team can let the user know to use the Promotion Code to get the free email. 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.