Jump to content

Configurable Options - Quantity value


Zacho

Recommended Posts

Hello WHMCS Community, I've tried searching for many hours to solve my problem and now I'm asking for your help.

For the following case I want clients to pick how much memory their server has, I want it to be shown in GB on my WHMCS site but the output value HAS to be in MB for the module I'm using towards my dedicated server.
 Under the configurable options I'm using the option type "Quantity", I would love for it to be a range slider so I'm inputting a quantity required for max and min. When I put in the quantity it has to be 1024 for the client to select 1024MB or 1GB and that works, but on the WHMCS site it also shows it in MB where I want it to be displayed as GB. The side issue is because the output value has to be in MB the pricing of the chosen memory is also wrong.

Is it possible to use quantity required at Min: 3 and Max: 8 and somehow change the output value to be let's say 4096 if the client where to select 4GB memory?

Here is what I would love for it to look like but the memory value is wrong

image.png.bf87a00dfc2098d928de4c620ca4f2da.png

image.thumb.png.129204da342e4e657179a1b4005a23ff.png

 

 

Here is what it would look like when the memory value is right in quantity required but the slider shows it in MB and the pricing is way off.

image.png.87181a6002d8e6432dda68201034b260.png

image.thumb.png.a34ffd824cd4b04a1ec3871ea71184a8.png

 

I hope a kind person has the time to help me find a fix on the issue.

I've tried reading the following community post but I just can't seem to find the fix.

 

 

 

 

Link to comment
Share on other sites

On 21/12/2020 at 08:20, Zacho said:

I hope a kind person has the time to help me find a fix on the issue.

I think the simplest solution in this situation would be to just use a dropdown and not a slider... your problem is that with a slider, and because of what your module expects, they would need to be priced per 1MB, but that's probably going to need 5 decimal places (which is not an out of the box option).

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