Re: Google Checkout
ok, so if i had an image located in skin1/images/arrow.jpg that i wanted next to the google checkout where exactly woudl it go in cart.tpl?
{* $Id: cart.tpl,v 1.74.2.10 2005/03/24 15:03:03 max Exp $ *}
{capture name=dialog}
{if $minicart_total_items > 0}{$lng.txt_cart_header}{/if}
<br/>
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/cart_offers.tpl"}
{/if}
<br/>
{if $products ne ""}
<FORM action="cart.php" method="post" name="cartform">
<TABLE border="0" cellpadding="5" cellspacing="0" width="100%" class="checkout-box-border">
<TR class="TableHead">
<TD width="100" class="Cart-Head-Text"><strong>{$lng.lbl_qty}</strong></TD>
{*<TD width="70" class="Cart-Head-Text"><strong>Item #</strong></TD>*}
<TD class="Cart-Head-Text" align="left"><strong>{$lng.lbl_product}</strong></TD>
<TD width="170" class="Cart-Head-Text"><strong>{$lng.lbl_selected_options}</strong></td>
<TD align="left" class="Cart-Head-Text" width="50"><strong>{$lng.lbl_price}</strong></TD>
<TD align="right" class="Cart-Head-Text" width="50"><strong>{$lng.lbl_total}</strong></TD>
</TR>
{section name=prod_num loop=$products}
<tr class="CartRows{cycle values="1,2"}">
<TD>
{if $smarty.get.mode eq "checkout" && $login ne "" && $smarty.get.paymentid ne ""}
{$products[prod_num].amount}{else}
{if $config.Appearance.allow_update_quantity_in_cart eq "N" or ($active_modules.Egoods and $products[prod_num].distribution) or ($active_modules.Subscriptions and $products[prod_num].sub_plan)}{$products[prod_num].amount}{else}<INPUT type="text" size="2" name="productindexes[{$products[prod_num].cartid}]" value="{$products[prod_num].amount}"/>{/if} <a href="javascript:document.cartform.submit()">[update]</a>{/if}</TD>
{*<td>{$products[prod_num].productcode}</td>*}
<td><A href="product.php?productid={$products[prod_num].productid}">{$products[prod_num].product}</a></td>
<td>{if $products[prod_num].product_options ne ""}
{include file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options}
{else}-{/if}
</td>
<TD align="left" nowrap="nowrap">{include file="currency.tpl" value=$products[prod_num].display_price}
{* On Sale :: alteredcart.com *}
{if $products[prod_num].onsale.onsaleid}
<img src="{$ImagesDir}/sale_tag.gif" alt="{$lng.lbl_os_onsale}" width="28" height="20" align="top"><span style="color:#FF0000; font-weight:bold;">{$lng.lbl_os_onsale}</span>{/if}
{* END On Sale :: alteredcart.com *}
</TD>
{math equation="x*y" x=$products[prod_num].display_price y=$products[prod_num].amount assign="total"}
<td align="right">{include file="currency.tpl" value=$total}</td>
</TR>
{/section}
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_checkout.tpl"}
{/if}
</TABLE>
<br/>
<table width="100%" cellpadding="0" cellspacing="0"><Tr>
{*{if $login eq ""}
<td width="55%">
<div class="Cart-Shipping-Box">
{if $login}
{else}
{if $estimate ne "NO"}
To determine exact shipping charges, please <a href="help.php?section=login">log in</a> or provide shipping information at the first step of the checkout process. If you would like to estimate charges, please enter your zip code below:<br/><br/>
<div style="float: left;"><b>Enter Zip Code </b>
<input type="text" name="zip_estimate" size="5" maxlength="5" style="vertical-align: middle;"/> </div><div style="float: left;">{include file="buttons/button.tpl" button_title="Estimate Shipping" href="javascript: document.cartform.submit()" js_to_href="Y"}</div>
<div style="clear: both; height: 1px;"> </div>
{else}Estimated shipping costs for {$userinfo.s_zipcode}: [<a href="cart.php?zip_estimate=clear">Change zip code</a>]<br/><br/>
<table cellpadding="1" cellspacing="0">
{section name=ship_num loop=$shipping}
<tr>
<td align="left" style="font-weight: bold;">
{$shipping[ship_num].shipping|trademark:$insert_trademark}
{if $shipping[ship_num].shipping_time ne ""} - {$shipping[ship_num].shipping_time}{/if}
{if $config.Appearance.display_shipping_cost eq "Y" && ($login ne "" || $config.General.apply_default_country eq "Y" || $cart.shipping_cost gt 0)} ({include file="currency.tpl" value=$shipping[ship_num].rate}){/if}
</td>
</tr>
{/section}
</table>
{/if}
{/if}
</div>
</td>
<td width="20%"> </td>
<td width="25%" valign="top">
{else}<td>{/if}
{if $login eq ""}
{include file="customer/main/cart_totals_nologin.tpl"}
{else}*}
<td>
{include file="customer/main/cart_totals.tpl"}
{*{/if}*}
</td></tr></table>
<br/>
{if $js_enabled}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<td>
{include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"}
</TD>
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/cart_checkout_buttons.tpl"}
{/if}
<td>{include file="buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="button" href="javascript:history.go(-2);"}</td>
<TD align="right" width="50%">
{include file="buttons/button-secure.tpl" button_title="Proceed to secure checkout" style="button" href="cart.php?mode=checkout"}
</TD>
</TR>
{if $gcheckout_enabled}
<tr>
<td align="right" colspan="3">{include file="modules/Google_Checkout/gcheckout_button.tpl"}</td>
</tr>
{/if}
</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_your_shopping_cart content=$smarty.capture.dialog extra="width=100%"}
{if $cart.coupon_discount eq 0 and $products ne ""}
<br/><br/>
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts}
{/if}
{/if}
|