Jump to content

choose country


mazgalici

Recommended Posts

  • 4 weeks later...

Simply add a custom field, let's say "Location", that is visibile on the order form, required and drop down. Its options should be something like "1|Germany,2|Italy,3|France". The rest depends on what module you are using. Some modules supports server selection natively.

Link to comment
Share on other sites

Simply add a custom field, let's say "Location", that is visibile on the order form, required and drop down. Its options should be something like "1|Germany,2|Italy,3|France". The rest depends on what module you are using. Some modules supports server selection natively.

 

thanks. Any idea for Cpanel? I don't see any...

Link to comment
Share on other sites

I bet that there's a "server" field somewhere on the API of cPanel. Anyway i wouldn't care about it because i see an easier and quicker solution. What you need is a simple "switcher" for cPanel servers listed under Setup > Products/Services > Servers.

 

Use PreModuleCreate hook point to re-define the "Server" attribute in line with what the client has chosen in the order cart. At the moment i use the same approach to keep hosting packages of the same clients, if applicable (Plesk hosting can't go on cPanel and viceversa), all under in same server.

 

By doing this the module will create the hosting package in the country (server) selected in the order process by the client.

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