Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Query regarding product qty minimum / units

Query regarding product qty minimum / units

Views: 805

Results 1 to 3 of 3
2 May 2013, 1:10 AM
#1
craftstudio avatar

craftstudio

New Zenner

Join Date:
Mar 2012
Posts:
25
Plugin Contributions:
0

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

Attachment 12437

2 May 2013, 2:03 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

              // 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

               // 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);
  ?>
2 May 2013, 2:29 AM
#3
craftstudio avatar

craftstudio

New Zenner

Join Date:
Mar 2012
Posts:
25
Plugin Contributions:
0

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? :)