vultr / whmcs-vultr

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

[BUG] - Disabled Input Fields #51

Open BeezyIV opened 4 years ago

BeezyIV commented 4 years ago

Describe the bug OS Type & Auto backups Dropdown Fields Disabled in both Admin & Clientarea.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'My Services' from your WHMCS client area
  2. Click on 'Click on your Active VPS service'
  3. Scroll down to down
  4. See error

Expected behavior

  1. The "OS TYPE" drop-down field should show a list of Operating systems available thus allowing the client to choose their preferred operating system.

  2. The "AUTO BACKUPS" field should show the options "YES/NO" when clicked on providing the user to choose whether to enable or disable auto backups.

Screenshots Screenshot of the issue in the client area - VM Setup Client Area Screenshot of the affected fields in admin back-end - VM Setup Admin Area

Desktop (please complete the following information where applicable:

Additional context I also fount this piece of code in public_html/whmcs/modules/servers/vultr/template/controller/main/create.tpl . Could this have anything to do with my issue? See screenshot.

Code snippet of vultrOSID

I can provide login details to my fresh install of WHMCS admin dashboard if reproduction of the issue fails on your end.

ddymko commented 4 years ago

@BeezyIV

For the OS type did you generate your default values for these?

https://github.com/vultr/whmcs-vultr/issues/21#issuecomment-509215907 https://github.com/vultr/whmcs-vultr/issues/25#issuecomment-515057865

Setup -> Addon Modules -> Vultr Module -> Configure

As for the autobacks this may be we will look into this if it is not resolved by the generating your default values

BeezyIV commented 4 years ago

@ddymko Yes I had the default values generated. But by creating a new product and generating the default values, I've had the OS and application drop down to work. Thanks. However, the OS Type drop down is only enabled in the admin back-end and on the order form. It still remains disabled in the client area.

  1. Is this how it is supposed to be?
  2. When a client successfully deploys a server, the server info shown is from vultr. Is it supposed to be like this or is there a way to change this?
  3. Backup field is still disabled and leaving selecting NO on order form doesn't change anything.

Once again thanks for your response. Please refer to the following screenshots for further details.

OS Type on Order form

Client area fields

Admin backend fields

dezzyboy commented 4 years ago

hey guys im having this same issue and it looks like there is some error with the module

Screen Shot 2020-03-07 at 2 45 13 PM

Correction so the error above is irrelevant , however there are a few steps that needs to be done in order to get this module setup and os type and application to populate.. i will add a screen shot for a step by step guide to help anyone else that faces this issue

SaneChoice commented 4 years ago

Hi All,

For the OS Type please see my post below. I had to do a few things to make the values show in the order process and also the client configuration.

https://github.com/vultr/whmcs-vultr/issues/77