Jump to content

Domain Addon?


UXmedia

Recommended Posts

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!!

Link to comment
Share on other sites

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...

  1. Polaris to be a separate product which requires a domain;
  2. 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);
  3. 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).

pBzQs3G.gif

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).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated