Announcement

Collapse
No announcement yet.

Make Minimum Quantity Show in the Qty Field

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

  • Make Minimum Quantity Show in the Qty Field

    Does anyone know how to make the minimum quantity show in the Qty box of the product listing template?

    On my previous cart the Qty box would automatically pull the minimum and display that by default. If a customer put a different quantity in (say the minimum is 5 and they changed it to 1), a popup would alert them of the minimum quantity.

    Customers are telling me it's confusing when a product has a minimum quantity but they're allowed to add a lower quantity to the cart. The only notification they get is when they view the cart and find that a quantity different from what they wanted has been added.
    Chris
    TC Life Safety
    TC Wireless

  • #2
    My stores do have the minimum quantity in the box. Under the advanced tab on products I have the minimum quantity entered. I'm using a style 1 for the listing page template (it has been slightly modified). Don't think there was anything else we had to do to get the quantity in the box.

    Comment


    • #3
      Hmmm...I'll have to look at one of the default templates and see if anything's different. 3dCart created my listing template and it's definitely showing 0 when there is a minimum.

      Thanks for the info.
      Chris
      TC Life Safety
      TC Wireless

      Comment


      • #4
        I'm trying to get this to work also and no luck. I also have the min entered in the advanced section.

        Comment


        • #5
          Originally posted by pnkgirl25 View Post
          I'm trying to get this to work also and no luck. I also have the min entered in the advanced section.
          You have to change [qty] to [minimumorder] in the template and it will show correctly.
          Chris
          TC Life Safety
          TC Wireless

          Comment


          • #6
            Do you know how/where I do this?

            Comment


            • #7
              You will need to download whichever product template your site is using via FTP from assets/templates/[yourtemplatename]/listing_x.html and edit the [qty] field in the code to read [minimumorder]. You'll find this between the <!--START: qtybox--> and <!-END: qtybox--> tags.

              Not sure how up to speed you are on the 3dCart template system, so here are some resources:

              Intro to Templates
              https://support.3dcart.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticl eid=149&nav=0,7

              Customizing the Product Page
              http://support.3dcart.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticl eid=80&nav=0,7

              Template Reference Guide
              http://www.3dcart.com/guide/

              Once you understand how the templates are constructed it's not difficult to work them provided you have some HTML knowledge.

              Hope this helps.
              Chris
              TC Life Safety
              TC Wireless

              Comment


              • #8
                Confused.

                Originally posted by tclifesafety View Post
                You will need to download whichever product template your site is using via FTP from assets/templates/[yourtemplatename]/listing_x.html and edit the [qty] field in the code to read [minimumorder]. You'll find this between the <!--START: qtybox--> and <!-END: qtybox--> tags.

                When I look at my listing_2.html this is what I see.
                HTML Code:
                <!--START: qtybox-->
                                                
                <input type="text" size="3" name="qty-0" value="1" onChange="validateValues(document.add,1);" class="txtBoxStyle">
                                                
                <!--END: qtybox-->
                What do I need to change to get this to work?

                Comment


                • #9
                  Change
                  Code:
                  <!--START: qtybox-->
                                                  
                  <input type="text" size="3" name="qty-0" value="1" onChange="validateValues(document.add,1);" class="txtBoxStyle">
                                                  
                  <!--END: qtybox-->
                  to
                  Code:
                  <!--START: qtybox-->
                                                  
                  <input type="text" size="3" name="qty-0" value="[minimumorder]" onChange="validateValues(document.add,1);" class="txtBoxStyle">
                                                  
                  <!--END: qtybox-->
                  Chris
                  TC Life Safety
                  TC Wireless

                  Comment


                  • #10
                    Thank you!

                    Comment


                    • #11
                      Does anyone know how to do this in the Core templates? Using "[minimumorder]" doesn't work like it did when my template was HTML5.

                      Thanks

                      Comment

                      Working...
                      X