Announcement

Collapse
No announcement yet.

Quantity: The quantity must be a whole number between 1 and 32766.

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

    Quantity: The quantity must be a whole number between 1 and 32766.

    We are having problems with our add to cart buttons at brochure page level giving this error

    The following product(s) can not be added to the cart.
    # You can find the error description(s) by following the link(s).


    Quantity: The quantity must be a whole number between 1 and 32766.

    http://www.proadventure.co.uk/acatalog/Helmets.html

    Thanks

    #2
    You do not have a valid quantity input field in your product form layout.

    I can see

    Code:
    <!-- This code is used when the quantity box is visible to all customers --> 		<!-- <p> 		<span class="actrequired">Quantity:</span><input type="text" name="Q_17316220160874" size="4" value="1" /> 		</p>-->
    which is ignored by the browser.
    If you do not want the customers to specify the quantity i.e. have it defaulted to 1, then you need to set the quantity box value to 1 and set it's visibility property to hidden.
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      Thanks, what code do I need to put in then?
      I changed the default quantity variables in the layout to "1" but that didn't work

      Comment


        #4
        You need

        <input type="hidden" name="Q_<actinic:variable Name="ProductID"/>" size="4" value="1" />

        in the layout (outside of the HTML comments). It will create the required quantity box, but ensure it remains hidden to the user. If fixes the quantity value at 1, meaning only 1 can be added to cart at any one time.
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment

        Working...
        X