Results 1 to 7 of 7
  1. #1
    Join Date
    May 2007
    Posts
    6
    Plugin Contributions
    0

    Default Bottom button alignment

    I can't figure out how my "write a review" and "tell a friend" buttons are aligned on the bottom of my product page.

    http://shop.ekcetera.com/index.php?m...roducts_id=316

    Click through a few products- it seems like they move around for every product. I checked the product listing.php template and didn't see anything.

    Does anyone have a recommendation for making them align to the left (or right) of the page without the spacing inbetween?

    Thanks.

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

    Default Re: Bottom button alignment

    This is controlled in the tpl_product_info_display.php file and you need to place a clear both before the tell a friend and write a review to force a new line

    On another matter probably more important your images are HUGE at 976.62 KB for one of them where this needs only be 4-6k to look good at this size
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Bottom button alignment

    Thanks for the image size tip. I'll have to fix that.

    I added the clear both, and it worked, but now the "tell a friend" is aligned to the right. I added a float:left to the tag, but it didn't work.

    Now what?

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

    Default Re: Bottom button alignment

    If you want them both aligned to the left then leave both clear both's but in the tell a friend entry find this:
    Code:
    <div id="productTellFriendLink" class="buttonRow forward">
    and change to this:
    Code:
    <div id="productTellFriendLink" class="buttonRow back">
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Oct 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: Bottom button alignment

    I've added the clear both command before and after my add to cart button and discount quantity box but can't get them to show on two different lines. This is the clear both I'm using in tpl_products_info_Display.php file:

    <br class="clearBoth" />
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
    // do nothing
    } else {
    $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" /><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);
    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-->
    <br class="clearBoth" />
    <!--bof Quantity Discounts table -->
    <?php if ($products_discount_type != 0) {
    require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php');
    }?>
    <!--eof Quantity Discounts table -->
    <br class="clearBoth" />

    These two objects show on the same line, I am wanting them on two diffent lines with both centered.

    Any help would be greatly appreciated!

    Specific page url that has discount qty box:
    http://www.impressionslast.com/index...products_id=73

    Thank you!

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Bottom button alignment

    Ekcetera,
    Part of your problem may be that you have hard-coded a stray css link incorrectly placed between the head and the body of the document.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Bottom button alignment

    tstamplis,
    Your two divs are rendering each in a td that are inside a tr as in
    HTML Code:
    <tr>
      <td>discount list</td>
      <td>add button</td>
    <tr>
    You can get a bulldozer after the divs but , until you change the rendering to
    HTML Code:
    <tr>
      <td>discount list</td>
    </tr>
    <tr>
      <td>add button</td>
    <tr>
    you might as well try to collect feathers in a hurricane.

    Keep an eye on colspan when you make changes.

    Neat feature on the picture hover.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

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. Button Alignment Help Required
    By HBCUK in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Jul 2010, 06:42 PM
  4. Paypal Express Button Alignment
    By helpme in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Nov 2007, 05:40 PM
  5. Button Alignment
    By pepsishot in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Sep 2007, 01:21 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