View Single Post
  #2  
Old 08-22-2008, 10:34 AM
  Piotr M.'s Avatar 
Piotr M. Piotr M. is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 134
 

Default Re: Bah these tables! Anyone care to point out my error?

Maybe this is what you need
Code:
<table width="100%" cellpadding="0" cellspacing="0"> <tr><td width="60%"> <table width="100%" cellpadding="0" cellspacing="0"> <tr><td colspan="3"><b><font class="ProductDetailsTitle">{$lng.lbl_details}</font></b></td></tr> <tr><td class="Line" height="1" colspan="3"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td></tr> <tr><td colspan="3">&nbsp;</td></tr> <tr> <td width="30%">{$lng.lbl_sku}</td> <td nowrap="nowrap" id="product_code">{$product.productcode}</td> <td nowrap="nowrap" id="product_code">&nbsp;</td> </tr> {if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""} <tr> <td width="30%">{$lng.lbl_in_stock}</td> <td nowrap="nowrap" id="product_avail_txt">{if $product.avail gt 0}{$lng.txt_items_available|substitute:"items":$product.avail}{else}{$lng.lbl_no_items_available}{/if} </td> <td nowrap="nowrap" id="product_avail_txt">&nbsp;</td> </tr> {/if} {if $product.weight ne "0.00" || $variants ne ''} <!-- <tr id="product_weight_box"> <td width="30%">{$lng.lbl_weight}</td> <td nowrap="nowrap"><span id="product_weight">{$product.weight|formatprice}</span> {$config.General.weight_symbol}</td> </tr> --> {/if} {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product.tpl"} {/if} {if $active_modules.Feature_Comparison ne ""} {include file="modules/Feature_Comparison/product.tpl"} {/if} {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} <tr> <td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td> <td valign="top"> {if $product.taxed_price ne 0 || $variant_price_no_empty} <font class="ProductDetailsTitle"><span id="product_price" style="white-space: nowrap;">{include file="currency.tpl" value=$product.taxed_price plain_text_message=true}</span></font><font class="MarketPrice"> <span id="product_alt_price" style="white-space: nowrap;">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price plain_text_message=true}</span></font> {if $product.taxes}<br /> {include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} <input type="text" size="7" name="price" /> {/if} </td> <td valign="top"> <input type=hidden name=amount value="1"> {if $variants eq ''} {include file="customer/main/product_prices.tpl"} {/if} </td> </tr> {/if} </table> </td><td>{if $js_enabled} <BR> {if $smarty.get.pconf ne ""} <INPUT type="hidden" name="slot" value="{$smarty.get.slot}"> <INPUT type="hidden" name="addproductid" value="{$product.productid}"> {include file="buttons/button.tpl" button_title=$lng.lbl_pconf_add_to_configuration style="button" href="javascript:if (FormValidation()) `$ldelim`document.orderform.productid.value='`$smarty.get.pconf`';document.orderform.action='pconf.php';document.orderform.submit()`$rdelim`"} <BR><BR> {/if} {if $product.forsale ne "B"} {include file="buttons/add_to_cart.tpl" style="button" align="right" href="javascript: if(FormValidation()) document.orderform.submit();"} {if $login ne "" and $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if} {else} {$lng.txt_pconf_product_is_bundled} {/if} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart} {/if}</td></tr></table>
__________________
Regards,
Piotr Markushin

X-Cart PDF Catalog Generator NEW
Professional X-Cart Skins Store (7 new skins added in August 2008!)

ahedOffice.com - Web 2.0 Online Groupware
Reply With Quote