vultr / whmcs-vultr

Vultr Module for WHMCS
Apache License 2.0
95 stars 52 forks source link

[BUG] - Select OS Type Field Disabled During VPS Creation? #81

Closed zachkinsey closed 3 years ago

zachkinsey commented 4 years ago

I don't think this is a bug, because I don't expect there to be a selection for Snapshots or ISOs that are non-existent.

However, the field doesn't display Vultr Applications or a list of all available OS Images.

I read this in the WHMCS module documentation at the bottom~

How do I update the applications in the configuration options?

"If you want to list all available applications, you can use this API Command and add the applications you want in the configurable options. Automatic synchronization does not exist in the module."

This implies to me that I need to connect to the vultr API to pull the 'Application' list into the 'Select OS Type' field??

I don't know, I'm not a developer.

And, perhaps the better question is.... why isn't this built into the module... if it is indeed true that you have to pull the application list from the API.

Also, this still doesn't explain it not listing the available OS Images by default.

Your Environment:

Detailed steps to reproduce error on fresh install For example:

  1. Order a Vultr VPS as a client.
  2. During VPS creation, be mad that the 'Select OS type' field is disabled because you can't create a VPS.

Here's the field that stays disabled: http://prntscr.com/s34cpv

SaneChoice commented 4 years ago

Hi zachkinsey,

Are you talking about the ordering process and the Operating System and Applications shown in the screenshot below?

Screenshot 2020-04-27 at 12 30 35
zachkinsey commented 4 years ago

I believe so.

After the ordering process, you're able to finish the VPS set up.

The 'OS Type' field remains disabled.

I'm having the same problem that these guys outlined: https://github.com/vultr/whmcs-vultr/issues/73

SaneChoice commented 4 years ago

Thanks @zachkinsey. I have just responded in that thread. There could be a reason why they do this. Some Cost/Size mismatch if people change their Operating System after paying?

jlrodriguezdev commented 4 years ago

Solved:

  1. Click in Setup/Products/Configurable Options
  2. Select Configurable Option Groups
  3. Configurable Options > os_type|OS Type click in edit

And select Option type: Radio

willvin313 commented 4 years ago

I also noticed when you set it to Option type: Radio and save, then revert it to Option type: Dropdown and save it, it works perfectly.