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

Looking for table settings boarder around each item

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-09-2007, 04:49 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Looking for table settings boarder around each item

Hi all iam try to put a boarder around each product, i presume its done by tables but can't find the .tpl to edit, this is for my new site iam working on which is xcart v4.1.8

I managed to do it for my live shop which is version 4.0.19 but the settings seem to be different in v4.1.8 have attached a pic to show you what i mean.


Thanks to all Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #2  
Old 09-09-2007, 07:13 PM
 
WebboT WebboT is offline
 

Member
  
Join Date: Aug 2006
Posts: 26
 

Default Re: Looking for table settings boarder around each item

look in your products_t.tpl for something like this:
Code:
<td style="border:
__________________
X-Cart 4.2.0 | PHP 5.2.9 | MySQL 4.1.21 | Apache/1.3.41 (Unix) | Linux
Reply With Quote
  #3  
Old 09-09-2007, 07:26 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Looking for table settings boarder around each item

use CSS.
__________________
xcart 5.1.2
Reply With Quote
  #4  
Old 09-10-2007, 04:08 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Looking for table settings boarder around each item

Hi Guys

I couldn't find the line - <td style="border: in the products_t.tpl

I did have a look last night in the "CSS file (skin1.css)" but wasn't to sure which part i needed to edit in there, could some just advise for me please.

Many thanks to all, regards Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #5  
Old 09-10-2007, 06:30 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Looking for table settings boarder around each item

There are a few ways to do this. If you just want the border like in the picture, you need to do the following:

In products_t.tpl (for multi-column layout) the top will look like:

Code:
{* $Id: products_t.tpl,v 1.30.2.4 2006/11/27 11:40:25 max Exp $ *} <table width="100%" cellpadding="0" cellspacing="0" valign="top"> <tr> <td> <table width="100%" cellpadding="5" cellspacing="5"> {math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

Add the red (shown below) into that code:
Code:
{* $Id: products_t.tpl,v 1.30.2.4 2006/11/27 11:40:25 max Exp $ *} <table width="100%" cellpadding="0" cellspacing="0" valign="top"> <tr> <td> <table width="100%" cellpadding="5" cellspacing="5" border="3"> {math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

You can change that number to any that you like.

If you are doing a single column layout you will edit products.tpl as follows

Original:
Code:
{* $Id: products.tpl,v 1.72.2.3 2006/11/27 11:40:25 max Exp $ *} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses} {include file="modules/Feature_Comparison/compare_selected_button.tpl"} {include file="modules/Feature_Comparison/products_check_js.tpl"} {/if} {if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")} {include file="customer/main/products_t.tpl" products=$products} {else} {if $products} {section name=product loop=$products} {assign var="discount" value=0} <table width="100%">

to:
Code:
{* $Id: products.tpl,v 1.72.2.3 2006/11/27 11:40:25 max Exp $ *} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses} {include file="modules/Feature_Comparison/compare_selected_button.tpl"} {include file="modules/Feature_Comparison/products_check_js.tpl"} {/if} {if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")} {include file="customer/main/products_t.tpl" products=$products} {else} {if $products} {section name=product loop=$products} {assign var="discount" value=0} <table width="100%" border="3">

If you want to change the color of the border or do anything fancier than what you showed in the picture, you will have to use CSS.
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
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 05:43 AM.

   

 
X-Cart forums © 2001-2020