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

Featured Products in a box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-21-2004, 11:50 AM
 
thewho thewho is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 31
 

Default Featured Products in a box

i have 10 products in Featured Products, 2 products per row.
i would like to display around every products a box
(so i will have 2 boxes per row multiply 5, eg 10 products)
__________________
X-Cart PRO v4.1.1
--PHP [need to update]
--MySQL [need to update]
Web server Unix
Reply With Quote
  #2  
Old 06-24-2004, 04:13 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Try adding this to skin1.css:

Code:
.TableThumbnailBorder { border: 1px #000000 solid; }
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 08-09-2004, 01:34 PM
 
AnimeJeff AnimeJeff is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 30
 

Default Boxes around individual products on featured page

Quote:
Originally Posted by B00MER
Try adding this to skin1.css:

Code:
.TableThumbnailBorder { border: 1px #000000 solid; }

I tried this, however it put a box around the whole featured products as a group. How would we put lines between the individual products?
__________________
X-cart x-cart-4.0.0pro
MySQL 3.23.58
Linux 2.4.22-1.2188.nptl Fedora Core 1
Apache 2.0.48
Reply With Quote
  #4  
Old 08-10-2004, 09:46 AM
 
jburba2000 jburba2000 is offline
 

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

Default

after you have added the "TableThumbnailBorders" class to the css file, you need to change the following in the products_t template:

Change:
Quote:
<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td class="ThumbNailBorder">

<table border=0 width=100% cellpadding=5 cellspacing=1>

{math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

{section name=product loop=$products}

{if %product.index% is div by $config.Appearance.products_per_row}
<tr>
{assign var="cell_counter" value=0}
{/if}

{math equation="x+1" x=$cell_counter assign="cell_counter" }

<td align=center valign=top width="{$width}%" class="DialogBox">

To:
Quote:
<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td>

<table border=0 width=100% cellpadding=5 cellspacing=1>

{math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

{section name=product loop=$products}

{if %product.index% is div by $config.Appearance.products_per_row}
<tr>
{assign var="cell_counter" value=0}
{/if}

{math equation="x+1" x=$cell_counter assign="cell_counter" }

<td align=center valign=top width="{$width}%" class="ThumbNailBorder">

This should work if you are listing ONLY featured products in multitabular format. I have not figured out the {if}/{else} statements yet to make it work on ONLY featured products if you list your regular products in multitab format also.
__________________
Mindells.com - Your Style. Your Comfort. Your Way.
X-Cart Platinum - 4.6.1
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:58 AM.

   

 
X-Cart forums © 2001-2020