Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

[Resolved] Width of quantity input field in shopping cart

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Width of quantity input field in shopping cart

Tagged: cart quantity width

  • This topic has 9 replies, 2 voices, and was last updated 4 years, 6 months ago by admin.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • November 7, 2020 at 5:04 pm #81874
    pocket

    Hi,

    the maximum width of the quantity field in the shopping cart can only show 2 digits. If the quantity is greater than 99, only the first two digits are displayed.

    <input type="number" min="1" name="quantity" value="5000" size="1" class="eStore_cart_item_qty" style="max-width:60px;">

    Can this be changed so that the maximum width can be specified in css.

    Thanks
    Ian

    November 7, 2020 at 5:18 pm #81876
    admin
    Keymaster

    Should be able to use something like the following CSS tweak to make that field wider:

    
    .eStore_cart_item_qty{
    width: 100px !important;
    }
    
    November 7, 2020 at 5:32 pm #81877
    pocket

    Hi,

    we tried that, it doesn’t work. It just makes the quantity column wider, but not the quantity input field.

    Sample page: [pocketprograms.com/wp-checkout]

    Thanks
    Ian

    November 8, 2020 at 5:28 pm #81900
    admin
    Keymaster

    I have made a change in the PHP code for this. I have sent you an updated copy via email to test.

    November 11, 2020 at 4:50 pm #81922
    pocket

    Hi,

    we have installed the new version (8.4.1), but the width does not change.

    If I inspect the HTML it shows

    <input type="number" min="1" name="quantity" value="99999" size="2" class="eStore_cart_item_qty" style="max-width:60px;">

    I think the max-width:60px is overriding my entry in the CSS. If I ‘disable’ max-width:60px using chrome developer tools, then the field is displayed much wider (I have set width:500px in the css).

    Regards
    Ian

    November 12, 2020 at 6:00 pm #81933
    admin
    Keymaster

    This one is usually a theme specific issue. We have it currently set in a way that should work for most themes but some will need a little bit of CSS tweak.

    November 12, 2020 at 8:27 pm #81936
    pocket

    Unfortunately max-width overrides width

    Luckily min-width overrides max-width, so as a temporary solution I have added the following css to the theme:

    .eStore_cart_item_qty {
    width:200px !important;
    min-width: 200px;
    }

    Can you move the style max-width from the element into your css file in a future release. Then we can override the setting in the theme css.

    Thanks
    Ian

    November 13, 2020 at 12:02 am #81940
    admin
    Keymaster

    I will try to change this.

    You are using the “Show Quantity Update Button” option right?

    November 13, 2020 at 12:25 am #81941
    pocket

    Yes, Show Quantity Update Button is ticked.

    November 14, 2020 at 6:42 pm #81959
    admin
    Keymaster

    Thank you. I have update the core plugin’s code for this.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ