View Single Post
  #6  
Old 02-24-2010, 05:51 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: I admit I'm stomped Featured need help

Get rid of the table all together. Use divs and css. Is not that difficult when you break it into its elements. I will share mine with you just keep in mind is from 4.2.1 - use it as a guide only. I don't know why QT insist of using tables

Code:
{* $Id: products_t.tpl,v 1.46 2008/12/10 08:29:52 max Exp $ vim: set ts=2 sw=2 sts=2 et: CFL Systems file to replace products_t.tpl *} {if $main eq "catalog" && $current_category.category eq ""} {list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length="4"} {else} {list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$config.Appearance.products_per_row} {/if} {assign var="is_matrix_view" value=true} {if $products_matrix} {foreach from=$products_matrix item=row name=products_matrix} {foreach from=$row item=product} {if $product} <div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"> <a href="product.php?productid={$product.productid}&amp;cat={$cat}&amp;page={$navigation_page}" title="{$product.product|escape} by CFL Systems">{$product.product|escape}</a> </div> <div class="product_img"> <a href="product.php?productid={$product.productid}&amp;cat={$cat}&amp;page={$navigation_page}" title="{$product.product|escape} by CFL Systems">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a> </div> <div class="prod_price"> {if $product.product_type ne "C"} {if $active_modules.Subscriptions ne "" && $product.catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {elseif $product.appearance.is_auction} <span class="price">{$lng.lbl_enter_your_price}</span><br /> {$lng.lbl_enter_your_price_note} {else} {if $product.appearance.has_price} <span class="price-text">{if $product.is_variants}{$lng.lbl_priced_from}:{else}{$lng.lbl_our_price}:{/if}</span> <span class="price-value">{include file="currency.tpl" value=$product.taxed_price}</span> <span class="market-price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span> {if $product.appearance.has_market_price && $product.appearance.market_price_discount gt 0} <div class="market-price">{$lng.lbl_market_price}: <span class="market-price-value">{include file="currency.tpl" value=$product.list_price}</span> {if $product.appearance.market_price_discount gt 0} {if $config.General.alter_currency_symbol ne ""}, {/if} <p class="price-save">{$product.appearance.market_price_discount}% {$lng.lbl_save_price}</p> {/if} </div> {/if} {if $product.taxes} <div class="taxes">{include file="customer/main/taxed_price.tpl" taxes=$product.taxes is_subtax=true}</div> {/if} {/if} {if $active_modules.Special_Offers && $product.use_special_price} {include file="modules/Special_Offers/customer/product_special_price.tpl"} {/if} {/if} {else} &nbsp; {/if} </div> </div> <div class="bottom_prod_box"></div> <div class="prod_details_tab"> {if $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl"} {/if} {if $config.Appearance.display_productcode_in_list eq "Y" && $product.productcode} <div class="sku">{$product.productcode|escape}</div> {/if} <a href="product.php?productid={$product.productid}&amp;cat={$cat}&amp;page={$navigation_page}" class="prod_details" title="See more details about {$product.product|escape} by CFL Systems">{$lng.lbl_see_details}</a> <div class="clearing"></div> </div> </div> {/if} {/foreach} <div class="clearleft"></div> {/foreach} {/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote