View Single Post
  #49  
Old 07-21-2006, 09:10 AM
 
MallRomania MallRomania is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 109
 

Default

This is my customer/main/products.tpl page. I also use add_multiple.php original posted bu funkydunk in first page and i have "Display only featured products list in multicolumn format" ticked in Appearance, because i didn't make any modifications to products_t.tpl. Till now, except problems listed above everything work fine.

Code:
{* $Id: products.tpl,v 1.45.2.17 2006/02/27 08:53:50 svowl Exp $ *} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y'} {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} <form action="add_multiple.php" method ="post" name="orderform"> <table border="0" width="100%" cellpadding="2" cellspacing="0"> <tr > <td colspan="5" valign="top" align="right">{if $js_enabled} {include file="buttons/button.tpl" button_title="Cumpara produsele" style="button" href="javascript: document.orderform.submit()"} {else} {include file="submit_wo_js.tpl" value="Cumpara produsele"} {/if} </td> </tr> <tr bgcolor="#da1821"> <td width="99" valign="top" class="headerrow style1"><font color="#FFFFFF">Imagine</font></td> <td width="370" align="left" valign="top" class="headerrow style1"><div align="center"><font color="#FFFFFF">Produs</font></div></td> <td width="302" align="right" valign="top" class="headerrow"><div align="center"><font color="#FFFFFF">Pret</font></div></td> <td width="86" align="center" valign="top" class="headerrow style1"><font color="#FFFFFF">Detalii</font></td> <td width="146" align="center" valign="top" class="headerrow style1"><font color="#FFFFFF">Cantitate</font></td> </tr> {section name=product loop=$products} {counter assign="row"} <tr> <td valign="top" class="listrow"> {if $active_modules.Special_Offers ne "" and $products[product].have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]} {$lng.lbl_see_details} {else} <A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{include 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> {/if} {if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0 && $printable ne 'Y'} {include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid} {/if} </td> <td align="left" valign="top" class="listrow"><FONT class="ProductTitle">{$products[product].product}</FONT> {if $products[product].min_amount gt 1} <FONT class=small>({$lng.txt_need_min_amount} {$products[product].min_amount} {$lng.lbl_items})</FONT>{/if} </td> <td valign="top" width="302" class="listrow" nowrap align="right">{if $products[product].product_type eq "C"} {include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&cat=`$cat`&page=`$navigation_page`"} {else} {if $active_modules.Subscriptions ne "" and ($products[product].catalogprice gt 0 or $products[product].sub_priceplan gt 0)} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount} {if $discount gt 0} <FONT class="MarketPrice"> {$lng.lbl_market_price} : <S> {include file="currency.tpl" value=$products[product].list_price} </S></FONT> {/if} {/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} <S> {/if} <FONT class="ProductPrice"> {$lng.lbl_our_price} : {include file="currency.tpl" value=$products[product].taxed_price} </FONT><FONT class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price} </FONT> {if $discount gt 0} {if $config.General.alter_currency_symbol ne ""} , {/if} {$lng.lbl_save_price} {$discount} % {/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} </S> {/if} {if $products[product].taxes} <TABLE border="0"> <TR> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD>{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</TD> </TR> </TABLE> {/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} {include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]} {/if} {else} <FONT class="ProductPrice"> {$lng.lbl_enter_your_price} </FONT> {/if} {/if} {/if}</td> <td valign="top" width="86" class="listrow" align="center"><a href=product.php?productid={$products[product].productid}>[img]{$ImagesDir}/info.gif[/img]</a></td> <td valign="top" width="146" class="listrow" align="center"> {if ($active_modules.Product_Options ne "" and $products[product].product_options and ($categorie eq "" or $products[product].product_options))} {$lng.lbl_product_with_options} {else} <input type="text" size="4" maxlength="10" name="amount[{$products[product].productid}]" value="0"> {/if} </td> </tr> <tr> <td colspan="5" valign="top" class="listrow"><hr color="#336699"></td> </tr> {/section} <tr> <td valign="top" colspan="5" align="right"> {if $js_enabled} {include file="buttons/button.tpl" button_title="Cumpara produsele" style="button" href="javascript: document.orderform.submit()"} {else} {include file="submit_wo_js.tpl" value="Cumpara produsele"} {/if} </td> </tr> </table> </form> {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y'} {include file="modules/Feature_Comparison/compare_selected_button.tpl"} {/if} {else} {$lng.txt_no_products_found} {/if} {/if}
__________________
Mircea Teleleu
Shopedia.ro-la cumparaturi
www.shopedia.ro
______________________
x-cart gold 4.1.6
Linux
Reply With Quote