Announcement

Collapse
No announcement yet.

Product Quantity Maximum

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Product Quantity Maximum

    Is there any way to just simply add a maximum allowed value to the standard quantity input field on the PROD page so that only quantities within the range of say 1 to 500 can be added to the cart. I tried adding this to the input tag but it didn't work...

    <input type="text" name="Quantity" value="1" min="1" max="500" class="product-quantity-input textfield" />

    I realize that someone could just bo back to the same product page and add more if they want more than 500, but hoping to at least discourage it with a message that would ask them to call in for larger orders.

    I see there's that Category Minimums / Maximums module but not sure if that's quite what I need.

    Thoughts?

    Thanks.

    Tony Pavao
    Studio6t6
    Vancouver BC Canada
    [email protected]

    #2
    What happens if you change the input type to number ?

    BTW, I use Kent's Category Minimums / Maximum module and it works flawlessly with error messaging in the basket and checkout.


    http://www.alphabetsigns.com/

    Comment


      #3
      as alphabet says, you have to 1) use type=number and your page has to have an HTML5 doctype. There are also javascript range selectors if you want something less susceptible to browser issues.

      https://www.w3schools.com/tags/att_input_min.asp
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #4
        Thanks for your input guys! I will test with your suggestions.
        Tony Pavao
        Studio6t6
        Vancouver BC Canada
        [email protected]

        Comment

        Working...
        X