Results 1 to 10 of 21

Threaded View

  1. #4
    Join Date
    Jan 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: Index Layout Product Display Problem

    Thank you for the tips and offering help. I did think of the possible cause directing to the /tpl_columnar_display.php but I haven't had luck on changing that. In fact, I am trying to change the stylesheet.css as well as the /tpl_columnar_display.php in order to

    1) Fix this spacing problem;
    2) Made every product display in a frame (boarder: #cccccc) to even out and tidy up the display like the attached screen shot.

    Here is the code for /tpl_columnar_display.php. If you could take some time to help me to get to it, that would be wonderful.

    Many thanks!

    PHP Code:
    <?php
    /**
     * Common Template - tpl_columnar_display.php
     *
     * This file is used for generating tabular output where needed, based on the supplied array of table-cell contents.
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_columnar_display.php 3157 2006-03-10 23:24:22Z drbyte $
     */

    ?>
    <div>
    <?php
      
    if ($title) {
      
    ?>
    <?php 
    echo $title?>
    <?php
     
    }
     
    ?>
    <?php
    if (is_array($list_box_contents) > ) {
     for(
    $row=0;$row<sizeof($list_box_contents);$row++) {
        
    $params "";
        
    //if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params'];
    ?>

    <?php
        
    for($col=0;$col<sizeof($list_box_contents[$row]);$col++) {
          
    $r_params "";
          if (isset(
    $list_box_contents[$row][$col]['params'])) $r_params .= ' ' . (string)$list_box_contents[$row][$col]['params'];
         if (isset(
    $list_box_contents[$row][$col]['text'])) {
    ?>
        <?php echo '<div' $r_params '>' $list_box_contents[$row][$col]['text'] .  '</div>' "\n"?>
    <?php
          
    }
        }
    ?>
    <?php
      
    }
    }
    ?> 
    </div>
    <br clear="all">
    p.s. this is what I want to get done:
    Attached Images Attached Images  
    Sc0rpionGirL
    www.scarlettshop.com
    www.kaccidesign.com
    [FONT=Arial]"Our greatest glory is not in never falling, but in rising every time we fall." - Confucius (551-479 BCE), Chinese philosopher and educator[/FONT]

 

 

Similar Threads

  1. Problem with attribute display layout
    By ronaldlb in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Mar 2011, 01:50 AM
  2. Categories/subcategories index image layout problem
    By prim0pyr0 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Oct 2009, 10:24 AM
  3. Product Index layout problem.
    By ZuluRose in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Nov 2006, 04:31 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