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

Product Template - View details formatting issue

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-08-2004, 09:52 PM
 
rgbdna rgbdna is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 31
 

Default Product Template - View details formatting issue

Hi,

I am trying to get the "view details" under the product thumbnail to center.

I have found the formatting under the product.tpl and it appears to be aligned to center...but does not diplay that way. For example:

<table border=0 width=100%>
<tr><td width=90 align=center valign=top>
<a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{in clude file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}
{$lng.lbl_see_details}</a>
</td>

I see the {$lng.lbl_see_details} and it looks like it should center

Any Suggestions?

Thanks,

rgbdna
__________________
v.3.10.5 Great creative direction is clarity cleverly delivered.
Reply With Quote
  #2  
Old 08-10-2004, 10:03 AM
 
jburba2000 jburba2000 is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Oklahoma
Posts: 66
 

Default

For one thing, I have the
tag at the end of that code, that could be part of your problem. Try it and see?

Quote:
$products[product].tmbn_url}

{$lng.lbl_see_details}</a>
</td>
__________________
Mindells.com - Your Style. Your Comfort. Your Way.
X-Cart Platinum - 4.6.1
Reply With Quote
  #3  
Old 08-10-2004, 11:11 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

also it will center itself against the width that the cell has been set at. in this case 90 pixels. if the thumbnail is 150 pixels that would push the cell out somewhat but this would not apply to the centering of the text.
__________________
ex x-cart guru
Reply With Quote
  #4  
Old 08-10-2004, 02:47 PM
 
rgbdna rgbdna is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 31
 

Default Thanks

Thanks the width adjustment worked.

<tr><td width=300 align=center valign=top>
<a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{in clude file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}

{$lng.lbl_see_details}</a>
</td>


My client wanted large thumbs and so adjusting the width in the table tag worked great.

Thanks!

rgbdna
__________________
v.3.10.5 Great creative direction is clarity cleverly delivered.
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 10:12 AM.

   

 
X-Cart forums © 2001-2020