Jump to content

Amount dont accept comma


Manjeet

Recommended Posts

Hi Everyone!

I am new for whmcs, I am facing problem that Amount Text Box dont accepting comma in amount Like if I enter 1,200.00 in Amount Text Box its only insert the 1 in database (not inserting value after comma).

Can anyone tell me how I can solve this problem ? 

Now I got source code of WHMCS, In code I found that amount is passing onclick event using jQuery below is the code

onclick="window.location="?userid=230&action=addfunds&token=35b28f5a6539734cabc83ada6614c19181598268&addfundsamt=" + jQuery("#addfundsamt").val()+"&desc="+encodeURIComponent( jQuery("#desc").val() )"

when I enter the  'addfundsamt'  = 1,200.00 it inserting Only 1

Can anyone  know How I can solve this problem ?

If I edit the source code then How Can I compile this ? as WHMCS is encode the code

Please help me to solve this problem

Thanks,

 

 

 

 

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