Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Increase Quantity Field Size Rate Topic   - - - - -

 
  • IsItFast
  • Senior Member
  • Members
  • Join Date: 16-Sep 08
  • 471 posts

Posted 11 January 2018 - 03:09 AM #1

What is the easiest way to increase to where my quantity box (on product page) can show more than 2.5 numbers?  Right now if a customer puts "100" in the box half the last 0 is cut off.  Really need this field to be 5-6 characters wide so if they put in 10000 all will show.


V4.3.1 with about 10,000 highly customizable products. Several mods done....some of which now come standard with CS now. (Started with V1.3.5)

V3.0 in a few other small stores.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17267 posts

Posted 11 January 2018 - 05:30 AM #2

What is the easiest way to increase to where my quantity box (on product page) can show more than 2.5 numbers?  Right now if a customer puts "100" in the box half the last 0 is cut off.  Really need this field to be 5-6 characters wide so if they put in 10000 all will show.

 

Try to add the following code to the CSS section of the Theme editor

.ty-value-changer {
    width: 90px;
}
input.ty-value-changer__input {
    width: 70px;
}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • IsItFast
  • Senior Member
  • Members
  • Join Date: 16-Sep 08
  • 471 posts

Posted 02 May 2018 - 09:33 PM #3

This has been working great but when viewing on my iPhone (or even my iPad) it drops the "-" button down below the box.  Is this normal or because of the mod?  See attachment.

Attached Thumbnails

  • IMG_4873.JPG

V4.3.1 with about 10,000 highly customizable products. Several mods done....some of which now come standard with CS now. (Started with V1.3.5)

V3.0 in a few other small stores.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17267 posts

Posted 03 May 2018 - 06:34 AM #4

Please try

@media screen and (min-width: 480px) {
    .ty-value-changer {
        width: 90px;
    }
    input.ty-value-changer__input {
        width: 70px;
    }
}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.