Jump to content

Decimal in configure options


TGK

Recommended Posts

hi all,

im setted a configureOption type "Quantity" it has minimum "100" max "0" because i need client fill custom value my problem is the input doesnt accept decimals and i need it accept decimals atleast 2 decimals, i tried some ways in configureproduct.tpl but doesnt work

if client enter 100  sumary calculate price well

but if client enter 100,50 sumary doesnt recognize decimal value and the price is same how if client enter 100

thank for help me.

Link to comment
Share on other sites

going back to a post in 2014, I wrote that configurable options can't use fractions/decimals...

one reason might be that the database table structure of tblhostingconfigoptions and tblprocoductconfigoptions sets the number of decimal places to 0...

QWWBaWL.png

you could try changing the decimals value of qtymin & max to 2 in both tables (backup db first!) and then see if the cart accepts fractional qty values... i'm not sure it will, but i'm intrigued to know if this would work..

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