Announcement

Collapse
No announcement yet.

Pre-populating the quantity box?

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

    Pre-populating the quantity box?

    If I set the minimum order quantity on a particular item to 5, is there any way to make the quantity box say 5 by default?

    It seems somewhat odd to tell people they must order 5 or more but then say "quantity: 1 [add to cart]".

    Especially, when there is such an ugly error if they hit 'add to cart' without changing the quantity!
    www.LabelKing.co.uk - New!
    www.dymowholesale.co.uk - Newest!
    sigpic

    #2
    The variable applying the value to the quantity box needs changing to the minimum variable instead.

    Comment


      #3
      cool, where do I do that?
      www.LabelKing.co.uk - New!
      www.dymowholesale.co.uk - Newest!
      sigpic

      Comment


        #4
        Just noticed you are on V7 sorry. I have no idea if it can be done on that version.

        Comment


          #5
          possibly product dialog box, details tab

          Comment


            #6
            Originally posted by pinbrook View Post
            possibly product dialog box, details tab
            That's where I set the minimum qty, but it doesn't automatically change the default qty for that item to the minimum.

            But that default value must be stored somewhere? and if I can find it, and figure out what variable is holding the minimum, it may be possible to change it...? One for the developers I guess?

            Seems like a farily obvious thing to do, can't believe it wasn't done as part of the basic functionality... I mean if you have the functionality to set a minimum quantity then under what circumstances would giving the customer a default value of 1 (a value that can't be correct) be a good idea?
            www.LabelKing.co.uk - New!
            www.dymowholesale.co.uk - Newest!
            sigpic

            Comment


              #7
              ok, I think this is the code that sets the qty -

              (Phase: -1 ID: 2173)
              Code:
              %s<INPUT TYPE=text NAME="%s" SIZE="1" VALUE="%d">
              It's strange that size is specifically set to '1', but value is set to a varaible - that kind of suggests that it might be changeable somewhere? I can't hardcode it as different products have different minimum order quantities, so is there a variable for the min qty?
              www.LabelKing.co.uk - New!
              www.dymowholesale.co.uk - Newest!
              sigpic

              Comment


                #8
                You could change the shopping mode to Qty on Confirmation or in Cart.

                Comment


                  #9
                  There was or still is a bug in v8 from back in July last year where the wrong varioable was used in the min qty on site box. Maybe this was a carry over for v7.

                  The v8 variable is MinQuantityOrderable.

                  Comment


                    #10
                    Here's a couple of ways. Copy your product template to a new filename E.g. Act_ProductLineQty_5.html

                    In that template replace

                    NETQUOTEVAR:PRODUCTQUANTITY

                    with

                    Quantity (minimum 5): <INPUT TYPE=text NAME="Q_NETQUOTEVAR:PRODUCTREFERENCE" SIZE="1" VALUE="5">

                    And use that Template for such products.

                    Make alternative templates for minimum 6, 10, etc.


                    Alternatively create a Custom Variable MINQUANTITY and a single alternative Product Layout containing:

                    Quantity (minimum CUSTOMVAR:MINQUANTITY): <INPUT TYPE=text NAME="Q_NETQUOTEVAR:PRODUCTREFERENCE" SIZE="1" VALUE="CUSTOMVAR:MINQUANTITY">

                    And
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Originally posted by NormanRouxel View Post
                      Alternatively create a Custom Variable MINQUANTITY and a single alternative Product Layout containing:

                      Quantity (minimum CUSTOMVAR:MINQUANTITY): <INPUT TYPE=text NAME="Q_NETQUOTEVAR:PRODUCTREFERENCE" SIZE="1" VALUE="CUSTOMVAR:MINQUANTITY">
                      That's perfect (especially as I already had a customvar for that already) - and so simple... why didn't I think of that!
                      www.LabelKing.co.uk - New!
                      www.dymowholesale.co.uk - Newest!
                      sigpic

                      Comment


                        #12
                        If you're using Duplicates, check that it works with them too. I'm not sure if NETQUOTEVAR:PRODUCTREFERENCE works as expected there.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          in this case I am only uses duplicates, and not the original products so I hit that problem straight away - but easily fixed by changing "Q_" to "Q_1!"
                          www.LabelKing.co.uk - New!
                          www.dymowholesale.co.uk - Newest!
                          sigpic

                          Comment


                            #14
                            Only if you have one duplicate of each I expect! A 2nd duplicate will be a different number again.

                            Comment

                            Working...
                            X