Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Quantity drop down selector

    Is it possible to have a quantity drop down instead of a text box where you enter the quantity?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Quantity drop down selector

    Check the similar threads section below.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Quantity drop down selector

    no one has solved the problem though...

  4. #4
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Quantity drop down selector

    Code:
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
    // do nothing
    } else {
    ?>
    <?php
    $optvalues = '';
    for ($i = 1; $i < 76; $i++) {
    $optvalues .= '<option value="' . ((zen_get_buy_now_qty($_GET['products_id'])) * $i) . '">'. ((zen_get_buy_now_qty($_GET['products_id'])) * $i) .'</option>';	
    }
    
    
    $display_qty = (($flag_show_product_info_in_cart_qty == 1 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 == 0 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_CART, BUTTON_IN_CART_ALT);
    } else {
    // show the quantity box
    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<select name="cart_quantity">'. $optvalues .'</select><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);
    }
    $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
    ?>
    <?php if ($display_qty != '' or $display_button != '') { ?>
    Need maximum drop down value to be the number available in stock.

  5. #5
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Quantity drop down selector

    anyone?

  6. #6
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Quantity drop down selector

    how to make the dropdown selector with scrollbar?

  7. #7
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Quantity drop down selector

    Exactly

  8. #8

    Default Re: Quantity drop down selector

    Anyone an update on a quantity drop down list?

 

 

Similar Threads

  1. Cart summary - Quantity Drop down selector
    By Matthew Kin in forum General Questions
    Replies: 4
    Last Post: 21 Mar 2015, 03:20 AM
  2. Language Drop-down Selector Instead of Flags?
    By cozyfolk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Aug 2011, 03:02 AM
  3. Products Quantity Box to Drop Down
    By jfurr01 in forum General Questions
    Replies: 6
    Last Post: 2 Dec 2010, 05:45 PM
  4. Drop down menu quantity
    By sims1981 in forum General Questions
    Replies: 2
    Last Post: 23 Sep 2010, 01:53 PM
  5. Country flags instead of drop-down currency selector
    By needhelp123 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 13
    Last Post: 1 Jun 2010, 11:28 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