Jump to content

Set a domain in the cart to be a packages domain


Recommended Posts

I run my WHMCS with a package that requires a Domain. If the client registers a domain, during the order process, there is a possibility to delete that domain that has previously, during the order process, associated with the package.

 

What I'd like to have, is that the package is then also deleted or maybe a warning displayed.

I managed to do this simply by checking if the $products array contains a product which doesn't have a domain which exists in the $domains array.

 

However, this seems to conflict with the case in which a client selects "I will update my nameservers on an existing domain Or I will register a new domain." during the domain selection step.

In this case, exactly the above applies and hence I'd remove the package, which obviously, I don't want to do.

 

However, there doesn't seem to be any data available (as far as I can see with {debug}), that would allow me to handle these two cases differently.

 

Any ideas on how I could get this done?

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