Page 1 of 2 12 LastLast
Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    12
    Plugin Contributions
    0

    help question QUANTITY box not showing - can't order multiple items (product info page)

    Hello everyone!

    This form is a blessing! Thank you all for all of your wonderful contributions and your help! I have searched the forums for the quantity issue I have encountered but wasn't able to find a solution. Here's my problem:

    I DO NOT HAVE A QUANTITY BOX IN PRODUCT INFO PAGE - the actual product description pages - so the user cannot order more then one item at a time.


    I have configured all the obvious ADMIN settings : here are the ones that have the quantity settings whjch I turned on:
    1) Catalog -> Product Type -> Product General:Show Quantity in Shopping Cart = SET TO 1Show Quantity in Stock = SET TO 1
    2) Configuration -> Product Info -> Product Info Quantity Box Status - Adding New Products = SET TO 1
    3) Configuration -> All listings -> Display Product Quantity = SET TO 1202

    Second thing I checked was the "tpl_product_info_display.php" file - but didn't figure out what needed to be done there. I have a feeling there might be something wrong here. Just in case, I'm going to list one of the main QUANTITY code bits here:

    -------------------------------------------------------------------
    <!--bof Add to Cart Box -->

    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
    // do nothing
    } else {
    ?>
    <?php
    $display_button = zen_get_buy_now_button($_GET['products_id'], '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT));
    ?>
    <?php if ($display_qty != '' or $display_button != '') { ?>
    <div id="cartAdd">
    <?php
    //echo $display_qty;
    echo $display_button;
    ?>
    </div>
    <?php } // display qty and button ?>
    <?php } // CUSTOMERS_APPROVAL == 3 ?>

    <!--eof Add to Cart Box-->
    -------------------------------------------------------------------

    I have tried setting the <input type="hidden" to "text" and in this case the quantity field actually shows but to no help - it doesn't do anything when I enter any values - product quantity always stays at 1.

    CAN ANY OF THE WIZARDS ON THIS FORUM HELP ME FIX THIS?
    Last edited by DrByte; 12 Jul 2015 at 03:53 AM. Reason: personal information removed by request

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    Ek,
    Copy and paste over your existing values...

    PHP Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      
    // do nothing
    } else {
    ?>
                <?php
        $display_qty 
    = (($flag_show_product_info_in_cart_qty == and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' PRODUCTS_ORDER_QTY_TEXT_IN_CART $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' '');
                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);
                }
        
    $display_button zen_get_buy_now_button($_GET['products_id'], $the_button);
      
    ?>
      <?php if ($display_qty != '' or $display_button != '') { ?>
        <div id="cartAdd">
        <?php
          
    echo $display_qty;
          echo 
    $display_button;
                
    ?>
              </div>
      <?php // display qty and button ?>
    <?php 
    // CUSTOMERS_APPROVAL == 3 ?>
    <!--eof Add to Cart Box-->

  3. #3
    Join Date
    Apr 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    Thank you for your help Haredo!

    I've followed your
    Part of the problem is solved, but only a part. Meaning - the quantity box is now showing on the product info pages, however it is not working. It just appears there, but does not do anything. you can try it out if you'd like - it will always be one item for any products you order:
    http://www.b e s t c u s t o m p c . com/index.php?main_page=index&cPath=7_1
    *(I've set this directory products to quantity of 10 each)*

    Also - maybe this could be helpful and not confusing even more: The regular "product listing pages" - say for example you just go to the category "Components" then to "Flash Media" - you'll see a list of all the products in that category each product having a quanity of 10 in stock. Now - these 'quantity' boxes ARE in fact working! which is weird. But check this out - if you do it this way and then you go into the actual product page and order the product again - it overwrites the quantity you ordered and sets it equal to 1 again !!

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    Ex,

    Yes, It works
    After you change 0 to 1, you half to click on the button above the page called Add Selected Products to Cart
    You have serious issues with the width of your site you need to fix????
    Last edited by haredo; 16 Apr 2009 at 03:44 PM.

  5. #5
    Join Date
    Apr 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    Posted via Mobile Device

  6. #6
    Join Date
    Apr 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    The category listing pages do work, it's the actual product description pages that don't allow a change of quantity, even though the box is there.
    U can check it out - go to "Components -> Flash Media ->and click on any product there then try to change qty- you'll see the problem,

    -egor
    Posted via Mobile Device

  7. #7
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    Ex,
    Working for me here...
    SABRENT CRW-UINB 68-in-1 USB 2.0 Internal Card Reader


    once you change the 0 to 1, you half to click the box on top of the table called Add selected products to cart, which then I go to the shopping cart

  8. #8
    Join Date
    Apr 2009
    Posts
    12
    Plugin Contributions
    0

    help question Re: QUANTITY box not showing - can't order multiple items (product info page)

    This thing is still not working! I just checked on 3 different computers. IT WORKS ONLY THROUGH Category listings - that is when you go to a category such as: Components and then click on any of the categories, for example - Keyboards.
    AFTER - DO NOT ADD THE ITEMS HERE - GO INSIDE A PRODUCT. Such as the first product - Saitek PZ30AU Black USB Keyboard - and click on the picture or its title - which will take you inside the product and you will see a COMPLETE description of the item there. On the bottom - you see an "ADD TO CART" button - but here it's already got a "1" in there not 0 such as the product category listings - so FROM HERE - if you try changing the quantity - it will always be 1!

    Try it out. I asked my friend to try it to and he got the same result. I thought I was going crazy for a second.

    Thanks for your help!

    -Egor

  9. #9
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    Ex,
    I am stumped, wait for a fellow Zenner to help you with this problem

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

    Default Re: QUANTITY box not showing - can't order multiple items (product info page)

    Switch to the Classic Template ... does it work?
    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. Product quantity box not showing on all items
    By racinjason in forum General Questions
    Replies: 4
    Last Post: 15 May 2014, 02:47 AM
  2. Product Info Page - Quantity Box Not Clickable
    By Kenichi in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Aug 2011, 09:39 AM
  3. Quantity box on product info page
    By dddmx3 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 May 2011, 01:36 AM
  4. specials box not showing on product info page
    By ttfan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Sep 2010, 10:46 AM
  5. Model #, Weight and Quantity not showing up on product info?
    By WaynesWorld in forum General Questions
    Replies: 4
    Last Post: 28 Jun 2010, 09:34 PM

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