Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    25
    Plugin Contributions
    0

    Default Query regarding product qty minimum / units

    So we sell some of our products in packs, thus customers have to buy them in lots of 2's or 4's, etc...

    I've set up all the products so that they have the appropriate minimum / units quantities...

    However on the product pages and in the product listings it has "Min: 2 Units: 2" on it.

    How do I go about removing the min: and units: thing... I think our customers will get very confused if it stays there...

    I've attached a screenshot that will hopefully help explain what I'm rambling about. -.-

    regards,
    Dave

    Name:  qty screenshot.jpg
Views: 253
Size:  23.6 KB

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Query regarding product qty minimum / units

    In a copy for your template of tpl_product_info_display.php

    Find this code block at approx line 100
    Code:
                  // 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);
                }
        $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
      ?>
    Remove/delete the red highlighted code so you end up with this and upload it to your template
    Code:
                   // 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_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);
      ?>

  3. #3
    Join Date
    Mar 2012
    Posts
    25
    Plugin Contributions
    0

    Default Re: Query regarding product qty minimum / units

    Firstly I want to say thank you kobra, this isn't the first and probably isn't the last topic that you've replied to really quickly and helped me out heaps with!! :)

    Secondly, that did the trick for the product page itself, however it still shows up on the product listing (eg the left side of the screenshot I attached in my original post). Don't suppose you know how to get rid of that one too? :)

 

 

Similar Threads

  1. how to mass edit Product qty Min & Max & product qty units?
    By SheenaMad in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 17 Oct 2011, 01:46 AM
  2. EZ Populate Product Qty & Minimum Units
    By I wish I could in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Mar 2011, 06:07 AM
  3. Doubling Product Qty Units
    By Brendan M. in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 26 Mar 2010, 07:00 PM
  4. Product Qty Units: question
    By RC_Cola in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 17 Feb 2009, 09:59 AM
  5. Product Qty Minimum
    By Webskipper in forum General Questions
    Replies: 2
    Last Post: 27 Apr 2008, 01:46 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