Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Re: Dropdown quantity

    Then is there a way to not display the prices unless the customer clicks a link to go to the description page?

    I don't want the customer to see a price of $500 and be scared away when the actual unit price is only $50.

    Turn off the price display in featured products, new products, category items, etc?

  2. #12
    Join Date
    Apr 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Dropdown quantity

    Quote Originally Posted by Ajeh View Post
    Sorry, but the translation of case is not built in ...

    You could call them cases but there isn't anything to manage the real calculation or translation of 1 to 10 and 2 to 20 etc.

    This would require custom coding ... if you cannot have the built in controls for the minimums units maximums work to manage this for you ...
    This could actually be a nice add-on...

    I was also looking for a way to add prices (as in the Products Price Manager) per lots - as $45 for 1000, $75 for 2000, etc... Just using a price per item (i.e. 1 unit) right now...

    Spare time, where are thee? :)

  3. #13
    Join Date
    Feb 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: Dropdown quantity

    Okay, so this thread is way out dated but there was no solution... so I went ahead and threw together a little script. It took me several hours to get it just right.. but it was sitting right in my face the whole time.

    It uses the attribute of MINIMUM ORDER QUANTITY, so for every product in your page, all you need to do is change that to get the result you're trying to achieve. I believe it's default at 1.

    Solution:

    In the file: tpl_product_info_display.php for your template (in public_html/includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php) find the lines that are surrounded by:
    "bof Add to Cart Box" and "eof Add to Cart Box". Then, simply replace with the following code. BACKUP BEFORE YOU CHANGE THIS!!

    Code:
    <!--bof Add to Cart Box -->
    <?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 != '') { ?>
        <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-->
    And you're done. This is my first contribution to the open source community.

    Tommy
    http://www.newcorporateimage.com

  4. #14

    Default Re: Dropdown quantity

    What I did was create an attribute w/ dropdown or checkbox to address my units. For example, 1 poster $10.00, 5 posters $40.00, etc. Just make sure to set one or no attribute as the Default (which will or won't checkmark a box automatically); and do not X Base Price, or it will cumulatively add the attribute price to the starting price.

  5. #15
    Join Date
    Dec 2010
    Location
    NYC
    Posts
    104
    Plugin Contributions
    4

    Default Re: Dropdown quantity

    I did the same thing as cowgirl, however, I have come across issues regarding reporting... as attributes are not apparent in the reports and I have not been able to find any modules..

    Other than that, the system is fine...

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Product Quantity dropdown
    By StoreOwner in forum General Questions
    Replies: 16
    Last Post: 13 Jun 2014, 02:14 AM
  2. quantity dropdown to blank box - add to cart
    By CheapStairParts in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Jul 2012, 02:39 PM
  3. Checking quantity of dropdown menu
    By threers in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 May 2011, 09:17 PM
  4. how to change quantity box to dropdown menu?
    By ginby in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 9 Jan 2010, 02:14 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