Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Display boarder around product in products_t.tpl page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-08-2006, 08:57 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default Display boarder around product in products_t.tpl page

Hello, I have serached and searched and tried and tried and cannot seem to be able to do what I want. On my products_t.tpl page I have all the items individually wrapped with a boarder, however the whole row will of course show this boarder 3 times even when that particular row only has 1 or 2 items.

I have the boarder using a table around the whole template, this is the tag.

Code:
<table width="100%" cellpadding="5" cellspacing="10" border="1">

So my question is, is there an if statement that I can use that will only use boarder="1" if that column actually has an item in it? Should I be doing this a different way than using the boarder tag?

I hope this makes sense, here's a link to a page, you will see what I mean.

http://www.yourelectronicsuperstore.com/home.php?cat=5

Any help would be appreciated!
Thanks
Rob
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #2  
Old 07-15-2006, 04:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Use a CSS border for the table cell itself instead of the whole table. THe way the default products_t.tpl is set up, there is a table cell for the product, and a table cell for the empty ones. Just add this to the one with the product:

style="border: 1px solid black;"
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-18-2006, 01:10 AM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

Hey Padraic, thanks again for your help, I tried what you said and it works great, I just had to remove the style part, I guess you were thinking html as well, I used the style=boarder tag in the <tr> & <td> but it wouldn't call the boarder at all.

border: 1px solid black;

Thanks for everything!!
Rob
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:55 PM.

   

 
X-Cart forums © 2001-2020