View Single Post
  #241  
Old 11-21-2004, 12:27 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

Hi Jon you gave me the code to remove the pic at "checkout" and the code you done for someone else so its all on one line, i do think its much better, but what i would like is to keep the picture but made much smaller, but keep the look so that it appears all on one line.
I must admit its easier when i buy my stock online at checkout you can visually see what you've brought, but the orginal code made the picture really big.
could you modify the code for me so it will do this, ive posted the code below that ive got at the moment, also i wasn't planing on going live untill after christmas, but having 2 sites going hopefully will pull more money in.
Should have the money in my paypal tomorrow, so i will pm you and get things sorted out tomorrow.
Thanks for your help Dean



{* $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" 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>

{section name=product loop=$products}
{if $products[product].hidden eq ""}

<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}</DIV>
</TD>
</TR>

<TR>
<TD colspan="2"></TD>
<TD colspan="2"></TD>
</TR>

{/if}
{/section}
<TR><TD colspan=4><HR size="1" noshade></TD></TR>
</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}
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote