Announcement

Collapse
No announcement yet.

Adding to Basket - Quantity Error?

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

    Adding to Basket - Quantity Error?

    Hi,

    When someone tries to add a product to the basket on the following page: -

    http://ellwoodsofdumfries.co.uk/acatalog/Lavender.html

    The following error appears: -
    Quantity: The quantity must be a whole number between 1 and 32767
    It only seems to be happening on that one page?

    Has anyone got any ideas as to what the cause of the error is and how it can be resolved?

    Regards

    #2
    The first 5 work fine for me (as long as I put something in instead of the non-standard 0 that you've preset).
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi,

      Yes you're right it does work, the problem is actualy on the following page: -

      http://ellwoodsofdumfries.co.uk/acat...pothecary.html

      On this page you see the 'Lavender' products which are duplicates. It is here where the error lies.

      Sorry for the previous red herring!

      Regards

      Comment


        #4
        I see it now. This is a problem because you're using a mod that replaces NETQUOTEVAR:PRODUCTQUANTITY with something like

        <input type="text" size="3" name="Q_NETQUOTEVAR:PRODUCTREFERENCE" value="0">

        Unfortunately (even though this is in the Advanced Guide) it doesn't work with duplicates.

        I'd restore NETQUOTEVAR:PRODUCTQUANTITY

        and replace Design / Text / Goto / Phase -1, Id 2173 with

        %s<INPUT TYPE=text NAME="%s" SIZE="3" VALUE="0"><!-- %d %d -->

        Which will have the same effect, but will work on normal and duplicate products. It's a global change so it will affect all product pages.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          PS I don't quite see why you need a Quantity of 0. It just means that the customer has something extra to fill in before they hit the Add to Cart button. The usual default of 1 allows single click shopping.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Many thanks for the reply and advice, however it's been decided to remove the duplicate products from that page.

            I'll pass on the suggestion about the default of 1 instead of 0.

            Thank's once again for your assistance, it's appreciated.

            Regards

            Comment

            Working...
            X