Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Posts
    97
    Plugin Contributions
    0

    Default Model Number and Attribute Not Vertically Aligned

    I modified the tpl_product_info_display.php to have the Model Number and Attribute vertically aligned. I could get it to be on the same line, but it's not vertically aligned.

    Below is my test product page:

    http://www.nokoria.com/shopping/inde...roducts_id=180

    Below is part of my tpl_product_info_display.php:


    <!--bof Product details list -->
    <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
    <div id="productDetailsList" class="floatingBox back">
    <div style="float:left">
    <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? TEXT_PRODUCT_MODEL . $products_model : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
    </div>

    <?php
    }
    ?>
    <!--eof Product details list -->

    <!--bof Attributes Module -->
    <?php
    if ($pr_attr->fields['total'] > 0) {
    ?>

    <!-- <div id="productAttribute" class="floatingBox back"> -->
    <div style="float:left">

    <?php
    /**
    * display the product atributes
    */

    require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
    </div>
    </div>
    <?php
    }
    ?>
    <!--eof Attributes Module -->

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Model Number and Attribute Not Vertically Aligned

    You may have to combine those sections into the same div, or maybe remove the unordered list which shows the model number so that it can align with the other items generated by your attributes setup.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Remove space from vertically aligned additional images
    By spiggles87 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Mar 2013, 12:25 PM
  2. Attribute barcode and model number field
    By JaminT in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Aug 2011, 12:32 PM
  3. top search text box and search button not vertically aligned
    By HeyIts007 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Oct 2010, 05:29 AM
  4. Attribute and model number
    By d1rage5 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 25 Jun 2008, 09:49 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR