View Single Post
  #1  
Old 07-25-2006, 01:06 PM
 
GooseCA GooseCA is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 9
 

Default Displaying Option Fields Twice in Product listings

Here is the code for the product listing thing.

Code:
<tr> <td> <table border="0" width="500" cellspacing="0" cellpadding="0" class="title-{if $cat eq 249}amd{elseif $cat eq 254}intel{elseif $cat eq 258}unmetered{/if}"> <tr> <td width="356" class="title-{if $cat eq 249}amd{elseif $cat eq 254}intel{elseif $cat eq 258}unmetered{/if}server"> {$product.product}</td> <td width="142" style="padding:0px;">[img]{$ImagesDir}/logo-{if $cat eq 249}amd{elseif $cat eq 254}intel{elseif $cat eq 258}unmetered{/if}.gif[/img]</td> </tr> </table> </td> </tr> <tr> <td class="specs-bg"> <table border="0" width="496" cellpadding="0"> <tr> <td width="300"> {assign var="price" value=$product.taxed_price} {assign var="monthly_price" value=$product.list_monthly_price} {if $active_modules.Product_Options ne "" and $sp_option_classes ne ""} {assign var="tmp" value="1"} {foreach name=classes item=class from=$sp_option_classes} {if $product.product_options[$class.class].option_name ne ""} <span class="specs-{if $tmp is div by 2}2{else}1{/if}">[img]{$ImagesDir}/arrow1.gif[/img]{$class.class}: {$product.product_options[$class.class].option_name}</span> {assign var="tmp" value=$tmp+1} {/if} {if $product.product_options[$class.class].price_modifier ne 0} {if $product.product_options[$class.class].modifier_type ne "%"} {math equation="x + y" x=$price y=$product.product_options[$class.class].price_modifier assign="price"} {else} {math equation="x + y*z/100" x=$price z=$product.taxed_price y=$product.product_options[$class.class].price_modifier assign="price"} {/if} {/if} {if $product.product_options[$class.class].monthly_price_modifier ne 0} {if $product.product_options[$class.class].monthly_modifier_type ne "%"} {math equation="x + y" x=$monthly_price y=$product.product_options[$class.class].monthly_price_modifier assign="monthly_price"} {else} {math equation="x + y*z/100" x=$monthly_price z=$product.list_monthly_price y=$product.product_options[$class.class].monthly_price_modifier assign="monthly_price"} {/if} {/if} {/foreach} {/if} </td> <td width="196" align="center"> <span class="price02"> {if $monthly_price}<font color="#B8143D">{include file="currency.tpl" value=$monthly_price}</font> monthly</span> {else}{/if} {if $price}<span class="price03">setup fee: {include file="currency.tpl" value=$price}</span> {else}{/if} {if $config.General.unlimited_products ne "Y" and ($product.avail le 0 or $product.avail lt $product.min_amount)} [img]{$ImagesDir}/btn-customize.gif[/img] {else} [img]{$ImagesDir}/btn-customize.gif[/img] {/if} </td> </tr> </table> </td> </tr>
[/code]
__________________
Version 4.0.9
Reply With Quote