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

Placing a black line to sperate the products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-04-2008, 07:42 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 289
 

Default Placing a black line to sperate the products

We'd like to keep our background white as it is and use a black line like the one you see in single item mode, i am in 2 products per line view.
__________________
Tool Experts
X-Cart DB Version: 4.1.12 GOLD
Reply With Quote
  #2  
Old 05-04-2008, 01:57 AM
 
activeabrasives activeabrasives is offline
 

Member
  
Join Date: Dec 2007
Posts: 24
 

Default Re: Placing a black line to sperate the products

We are also looking for how to do this. We have one product across in our displays, but feel it would be easier for our customers if a single black line separated each product.
__________________
Ruth.
XCart 4.6.5

www.thesandpaperman.com.au
Reply With Quote
  #3  
Old 05-04-2008, 05:19 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Placing a black line to sperate the products

Just put an <HR> in your skin1/customer/main/products.tpl, immediately below the last </TABLE> tag:

Quote:

</TABLE>
<BR>
<HR size="1" noshade width="100%" align="left">
<BR>
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #4  
Old 05-05-2008, 04:51 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 289
 

Default Re: Placing a black line to sperate the products

i tried this yet no black line appeared
__________________
Tool Experts
X-Cart DB Version: 4.1.12 GOLD
Reply With Quote
  #5  
Old 05-05-2008, 05:48 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Placing a black line to sperate the products

Are we talking about placing a horizontal line between products, in one product per row configuration?
I just tried that on 4.1.8 and it works. Well, it's not black, more like grey, but the line is there.
You can see it here:
http://www.aquasana-water-filters.com/Drinking-Water-Filters-p-1-c-249.html

Did you clear your template cache?
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #6  
Old 05-05-2008, 06:00 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 289
 

Default Re: Placing a black line to sperate the products

i am using a two product config and am needing this as a box sorry
__________________
Tool Experts
X-Cart DB Version: 4.1.12 GOLD
Reply With Quote
  #7  
Old 05-05-2008, 03:55 PM
 
activeabrasives activeabrasives is offline
 

Member
  
Join Date: Dec 2007
Posts: 24
 

Default Re: Placing a black line to sperate the products

Thanks for your response. Have tried your suggestion, and yahoo it works. We are working on just one product wide in our display.

Now to push this a bit further, is there any way to make this line red, like the lines on the more details page?
__________________
Ruth.
XCart 4.6.5

www.thesandpaperman.com.au
Reply With Quote
  #8  
Old 05-05-2008, 04:32 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Placing a black line to sperate the products

You can use this code instead of <HR>

<TABLE border="0">
<TR>
<TD><IMG src="{$ImagesDir}/spacer_red.gif" width="640" height="1" alt=""></TD>
</TR>
</TABLE>

I'm attaching spacer_red.gif for you.
Wow, you can barely see it!
PM me your email address and I'll email you spacer_red.gif
Attached Images
 
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #9  
Old 05-05-2008, 04:56 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Placing a black line to sperate the products

Jack,

When giving code to 4.1.x users, be aware that they had at one point, xhtml code that validated.

Using UPPER CASE <TABLE> and other html tags will immediately break the xhtml validation. I know that you are an expert coder in html, but xhtml has its benefits, and keeping a 4.1 store validating is always a good thing. Just thought I'd share.

Another way to accomplish this is to use css --

I would use the hr, but style it with css -- this way, you are not bringing in image calls on every page (multiple times at that!).

http://webdesign.about.com/od/css/a/aa010307.htm

New School is do not use images when you can use the local browser to do the work. CSS is your best friend.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #10  
Old 05-05-2008, 05:06 PM
 
balinor balinor is offline
 

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

Default Re: Placing a black line to sperate the products

Also be aware of depreciated code, such as noshade.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 02:39 AM.

   

 
X-Cart forums © 2001-2020