View Single Post
  #7  
Old 05-23-2006, 03:44 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Ok sorted it out by doing the following.

1. Commented out the cart code from checkout.tpl

2. Added the following include to checkout.tpl :

Quote:
{if $main eq "checkout"}
{include file="customer/main/singlecheckout.tpl"}{/if}

3. Created and uploaded the following singlecheckout.tpl :

Quote:
{if $payment_data.payment_method ne ""} {capture name=checkout_dialog}
<FORM action="cart.php" method="POST" name="cartform">
<INPUT type="hidden" name="paymentid" value="{$payment_data.paymentid}">

<INPUT type="hidden" name="cart_operation" value="cart_operation">

{if $config.Appearance.show_cart_details eq "Y" or ($config.Appearance.show_cart_details eq "L" and $smarty.get.paymentid ne "" and $smarty.get.mode eq "checkout")}
{include file="customer/main/cart_details.tpl"}
{else}
{include file="customer/main/cart_contents.tpl"}
{/if}

<HR noshade size="1">

{include file="customer/main/cart_totals.tpl"}




{if $js_enabled}
{include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}
{/if}

</FORM>

{/capture}
{include file="dialog.tpl" title="Your cart" content=$smarty.capture.checkout_dialog extra="width=100%"}
{/if}



You can see this in action at www.wyzehop.com

That seems to do the job nicely. If I've missed anything or this is flawed in some way please let me know.
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote