Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Quantity box question

    I have all of my products set up to not show the quantity box in the listing but I would like for my customers to be able to update the quantities in the shopping cart.

    I've attached a screenshot just in case I'm not clear on what I'm asking. Where it shows Qty and then the 1, I would like for it to have the little box where they could change the quantity and then update the cart.

    Is this possible without having to turn on the quantity box in the listings?
    Attached Images Attached Images  

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Quantity box question

    There are several ways to control the quantity box ...

    If you mark the Product as Hide Quantity box that is everywhere ...

    If you want the quantity box in certain places not to show that can be done separately ...

    How are you doing it now?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Quantity box question

    The only place I've found (messed with) that controls the quantity box is on the page to create/edit a product.

    A screenshot is attached showing the settings I have in that section.
    Attached Images Attached Images  

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Quantity box question

    That will change the setting everywhere for the product ...

    If you want it only gone in some places, that setting needs to be turned OFF as in use:
    Products Quantity Box Shows: Yes, Show Quantity Box

    Then to turn off on the Product Listing ... you can change this in the Configuration ... Product Listing ...
    Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)
    Do you want to display the Add to Cart Button?

    NOTE: Turn OFF Display Multiple Products Qty Box Status to use Option 2 on with Qty Box per Product
    That means also set this one to 0:
    Display Multiple Products Qty Box Status and Set Button Location
    Do you want to display Add Multiple Products Qty Box and Set Button Location?
    0= off
    1= Top
    2= Bottom
    3= Both
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Quantity box question

    Note: the other 3 listings for New Listing, Featured Listing and All Listing have their own setting for:
    Display Multiple Products Qty Box Status and Set Button Location
    Do you want to display Add Multiple Products Qty Box and Set Button Location?
    0= off
    1= Top
    2= Bottom
    3= Both
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jun 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: Quantity box question

    Following those instructions STILL leaves the qty uneditable in the shopping cart view. I think she wants to not have the box show anywhere BUT the shopping cart, so that if a customer wants to increase qty they can just change the number in the cart rather than purchase several singles.

    I tried those directions and any number of combinations, but it's either off everywhere or on everywhere. Maybe I'm not doing something right...

  7. #7
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Quantity box question

    ^ signs said what I was trying to say.

    I guess instead of trying to get wordy I should have just said ..... I want the qty box off everywhere, on all products, except for the shopping cart.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Quantity box question

    You would need to customize the template:
    /includes/templates/template_default/templates/tpl_product_info_display.php

    By copying to your templates and overrides directory and changing this function:
    PHP Code:
                if ($products_qty_box_status == or $products_quantity_order_max== 1) {
                  
    // hide the quantity box and default to 1
                  
    $the_button '<input type="hidden" name="cart_quantity" value="1" />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                } else {
                  
    // show the quantity box
        
    $the_button PRODUCTS_ORDER_QTY_TEXT '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                } 
    What that does is force no quantity box when turned off on the Product (which you do not want to use) or in the second part, display the quantity box ...

    You want both sides of the IF to not display the quantity box on the product _info so you can comment out the code and duplicate the other method with:
    PHP Code:
                if ($products_qty_box_status == or $products_quantity_order_max== 1) {
                  
    // hide the quantity box and default to 1
                  
    $the_button '<input type="hidden" name="cart_quantity" value="1" />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                } else {
                  
    // show the quantity box
    //    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
                  
    $the_button '<input type="hidden" name="cart_quantity" value="1" />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                } 
    Now all of the quantity boxes are controlled by the switches or the override file and only in the shopping cart will you have a quantity box ...

    /me thinks someone needs to make one more switch ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Quantity box question

    Thank you Linda! That did exactly what I wanted.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Quantity box question

    Thanks for the update and glad that this worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 5 Aug 2015, 01:11 PM
  2. Position quantity update button under quantity box
    By JC.M in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Feb 2010, 02:43 PM
  3. Quantity box needed instead of check box.
    By chris112 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Apr 2008, 02:42 PM
  4. Can't change the quantity in quantity box
    By stumped in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Dec 2006, 06:47 PM
  5. Quantity Box
    By ekat in forum General Questions
    Replies: 14
    Last Post: 17 Nov 2006, 06:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg