Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / adding a border to my product listing?

adding a border to my product listing?

Locked

Views: 2,150

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
1 Nov 2007, 5:05 PM
#1
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

adding a border to my product listing?

when I click on all products http://www.viktorviktoriashop.com/theshop/index.php?main_page=products_all

it has that black line the sepperates the products listing but when I click on a normal categories that black line is not there. http://www.viktorviktoriashop.com/theshop/index.php?main_page=index&cPath=196

How can I get that black line on all of my listings?

1 Nov 2007, 5:47 PM
#2
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: adding a border to my product listing?

templates\YOUR_TEMPLATE\templates\tpl_modules_products_all_listing.php — Line 201-203

Remove:

          <tr>
            <td colspan="3"><hr /></td>
          </tr>

CSS Evangelist

1 Nov 2007, 7:06 PM
#3
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: adding a border to my product listing?

I dont want to take it out I want to add it to all of the lisitngs? those lines only show when you click on all products and new products. I want the lines to show up when you click on any category.

2 Nov 2007, 3:51 AM
#4
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: adding a border to my product listing?

Did you try? Its only for "All Products" page, I believe.

CSS Evangelist

3 Nov 2007, 5:48 AM
#5
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: adding a border to my product listing?

I guess I dont understand what you are asking me to do?

3 Nov 2007, 6:31 PM
#6
inkuyo avatar

inkuyo

New Zenner

Join Date:
Sep 2007
Posts:
73
Plugin Contributions:
0

Re: adding a border to my product listing?

Nimbuz:

templates\YOUR_TEMPLATE\templates\tpl_modules_products_all_listing.php — Line 201-203

Remove:

      <tr>
        <td colspan="3"><hr /></td>
      </tr>

Take this code and add it to your tpl_tabular_display.php.
it is located in the /includes/templates/template_default/common folder.  Add at the very end and it should look similar to this below for teh last 10 or so lines:


   <?php echo '<' . $cell_type . $c_params . '>'; ?><?php echo $list_box_contents[$row][$col]['text'] ?><?php echo '</' . $cell_type . '>'  . "\n"; ?>
<?php
      }
    }
?>
  </tr>
 <tr>
    <td colspan="3"><hr /></td>
  </tr>
<?php
  }
?> 
</table>

Also, if you are going ot us columns you need to NOT have this as it does mess up the layout if you are using the column mod.

Dale  (my first answer that works).
4 Nov 2007, 12:18 AM
#7
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: adding a border to my product listing?

Thank you very much that worked

16 Aug 2008, 2:12 PM
#8
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: adding a border to my product listing?

I have added this as well. My question though, how do I make the hr a different colour and dashed please?

16 Aug 2008, 10:43 PM
#9
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: adding a border to my product listing?

Crooked_Halo:

I have added this as well. My question though, how do I make the hr a different colour and dashed please?

In your stylesheet find the bit for HR and change it to this:

HR {
    height: 1px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    border: none;
    border-bottom: 1px dashed #6eac7c;
    }
```Change the color etc to suit (I took this from mine for you as mine is colored and dashed) :D

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

17 Aug 2008, 2:48 AM
#10
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: adding a border to my product listing?

Yay :clap:! Thanks Christon26. Your a champion.

17 Aug 2008, 2:52 AM
#11
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: adding a border to my product listing?

You're welcome :D

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe