View Single Post
  #199  
Old 11-01-2004, 09:53 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Quote:
Originally Posted by Jon
PM your full code if you can't get it to work and I'll alter and send back.

Yeah I can see where I need to change it but changing it so that the titles are lined up with the actual coloumns is a real bugger.

Code:
{* $Id: cart.tpl,v 1.74.2.2 2004/08/11 09:46:01 max Exp $ *} <H3>{$lng.lbl_your_shopping_cart}</H3> {$lng.txt_cart_header} {if $active_modules.Gift_Certificates ne ""} {$lng.txt_cart_note} {/if} {capture name=dialog} {if $products ne ""} <FORM action="cart.php" method="post" name="cartform"> <TABLE border="0" width="100%"> {section name=product loop=$products} {if $products[product].hidden eq ""} <TR> <TD valign="top"> <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR class="HeadLine"> <TD class="HeadLine">{$lng.lbl_item_checkout}</TD> <TD class="HeadLine">{$lng.lbl_options_checkout}</TD> <TD class="HeadLine">{$lng.lbl_price_checkout}</TD> <TD></TD> </TR> <TR><TD> {$products[product].product} </TD> <TD>{if $products[product].product_options ne ""} {foreach from=$products[product].product_options item=v} {$v.class}: {$v.option_name} {/foreach} {/if}</TD> <TD width="43%">{assign var="price" value=$products[product].display_price} {if $active_modules.Product_Configurator ne "" and $products[product].product_type eq "C"} {include file="modules/Product_Configurator/pconf_customer_cart.tpl" main_product=$products[product]} {assign var="price" value=$products[product].pconf_display_price} {/if} <DIV align="left"> {if $active_modules.Subscriptions ne "" and $products[product].catalogprice and $products[product].product_type ne "C"} {include file="modules/Subscriptions/subscription_priceincart.tpl"} {else} {include file="currency.tpl" value=$price} x {if $active_modules.Egoods and $products[product].distribution}1<INPUT type="hidden"{else} <INPUT type="text" size=3{/if} name="productindexes[{$products[product].cartid}]" value="{$products[product].amount}"> ={math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted} {if $config.Taxes.display_taxed_order_totals eq "Y" and $products[product].taxes}{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes} {/if} {/if}</TD> <TD>{include file="buttons/delete_item.tpl" href="cart.php?mode=delete&productindex=`$products[product].cartid`"} {if $products[product].product_options ne ''} {include file="buttons/edit_product_options.tpl" href="javascript:window.open('`$catalogs.customer`/popup_poptions.php?target=cart&id=`$products[product].cartid`','POptions','width=400,height=350,toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,direction=no');"} {/if}</TD> </TR> <TR> <TD colspan="2">{$products[product].descr|truncate:150:"...":true} </TD> <TD colspan="2"></TD> </TR> <TR> <TD colspan="2"></TD> <TD colspan="2"></TD> </TR> </TABLE> </DIV></TD></TR> <TR><TD><HR size="1" noshade></TD></TR> {/if} {/section} </TABLE> {if $active_modules.Gift_Certificates ne ""} {include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts} {/if} {include file="customer/main/cart_totals.tpl"} {if $js_enabled} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD> {include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"} {include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"} </TD> <TD align="right"> {include file="buttons/button.tpl" button_title=$lng.lbl_checkout style="button" href="cart.php?mode=checkout"} </TD> </TR> </TABLE> {else} <INPUT type="hidden" name="mode" value="checkout"> {include file="submit_wo_js.tpl" value=$lng.lbl_checkout} {/if} </FORM> {else} {$lng.txt_your_shopping_cart_is_empty} {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_items content=$smarty.capture.dialog extra="width=100%"} {if $cart.coupon_discount eq 0 and $products ne ""} {if $active_modules.Discount_Coupons ne ""} {include file="modules/Discount_Coupons/add_coupon.tpl} {/if} {/if}
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote