Thread: Qty Box

Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Qty Box

    On the product info page (tpl_product_info_display), I am assuming that it is this code:
    PHP Code:
    <?php
          
    echo $display_qty;
          echo 
    $display_button;
                
    ?>
              </div>
    that controls and places the 'Qty' box and the 'Add to Cart' button.

    Currently, the 'Qty' box is on top of the Add to Cart button *How* do I put them on the same line together, with the Qty box coming first.
    Thank you,
    autoace

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

    Default Re: Qty Box

    There are two breaks on this line that is building the quantity box and the button:
    Code:
        $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);
    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!

  3. #3
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Qty Box

    Quote Originally Posted by Ajeh View Post
    There are two breaks on this line that is building the quantity box and the button:
    Code:
        $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);
    Thank you, it worked. They are a little uneven, tho, should I place a div around that code to even them up a bit? The Qty box is a bit lower than the button.
    Thank you,
    autoace

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

    Default Re: Qty Box

    Afraid I am not much of a designer so perhaps a designer guy can jump in here and help you out with that ...
    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!

  5. #5
    Join Date
    Dec 2006
    Posts
    130
    Plugin Contributions
    0

    Default Re: Qty Box

    Yeah, I'm trying to get the qty box and the image to line up as well. I think I'm going to post the problem in the CSS area. Wish me luck!

 

 

Similar Threads

  1. v139h Display Attributes, Qty Discounts & Qty Box in a Table
    By pool27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 May 2014, 11:49 AM
  2. Display Attributes/Options, Qty Discounts & Qty Box in Matrix
    By teaj in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Apr 2011, 02:59 PM
  3. qty box
    By xshaanx in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Apr 2010, 04:04 AM
  4. Qty box
    By Gonzon in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Jul 2007, 11:09 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