Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2010
    Posts
    7
    Plugin Contributions
    0

    help question Button Alignment Help Required

    Hi Guys,

    Please could someone tell me how to get the 'add to cart' button aligned with the qty field so it looks nicer.

    http://www.herbalbodycare.co.uk/inde...roducts_id=493

    Thanks

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Button Alignment Help Required

    can't access your site . server not found error

  3. #3
    Join Date
    Jun 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Button Alignment Help Required

    Quote Originally Posted by tony_sar View Post
    can't access your site . server not found error
    Hi Tony,

    I have submitted a ticket to my host to look into this as I have no idea why it keeps happening. I can view the site perfectly well.

    Regards

    HBC

  4. #4
    Join Date
    Jun 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Button Alignment Help Required

    Please would a few other users please accessing the above link as my host says that everything is ok.

    Any technical users who have dns experience maybe you could offer some advice.

    Thanks

  5. #5
    Join Date
    Jun 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Button Alignment Help Required

    Quote Originally Posted by Naren Bambhaniya View Post
    IT looks like css problem

    I can fix this
    Thanks, any chance you could tell me how to fix it

  6. #6
    Join Date
    Jun 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Button Alignment Help Required

    this is the code for the offending area

    Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      // do nothing
    } else {
    ?>
                <?php
        $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 . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . 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-->

 

 

Similar Threads

  1. Button alignment
    By Arunachala in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Apr 2011, 06:02 PM
  2. Problem with radio button alignment
    By niko62 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Aug 2010, 01:00 PM
  3. Paypal Express Button Alignment
    By helpme in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Nov 2007, 05:40 PM
  4. Button Alignment
    By pepsishot in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Sep 2007, 01:21 PM
  5. Bottom button alignment
    By ekcetera in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 4 Jul 2007, 04:29 PM

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