View Single Post
  #129  
Old 10-04-2004, 07:46 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Here's the fix for people using realtime shipping. It will include the cart contents review, and shipping price, after login on the payment selection page.

I don't have a realtime shipping account, so please let me know if it works well and/or what improvements can be made if any.

Code for 4.0

Open /skin1/customer/main/checkout.tpl (after already modded with X-Easy Checkout)

Find:

Code:
{elseif $payment_methods ne ""}

After add:

Code:
{if $config.Shipping.realtime_shipping eq "Y"} {capture name=checkout_dialog} <FORM action="cart.php" method="POST" name="cartform"> <INPUT type="hidden" name="cart_operation" value="cart_operation"> {include file="customer/main/cart_contents.tpl"} <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=$lng.lbl_shipping content=$smarty.capture.checkout_dialog extra="width=100%"} {/if}

Code for 3.5.x

Find:

Code:
{elseif $payment_methods ne ""}

After add:

Code:
{if $config.Shipping.realtime_shipping eq "Y"} {capture name=checkout_dialog} <form action="cart.php" method=post name=cartform> {include file="customer/main/cart_contents.tpl"} <HR noshade size=1> {include file="customer/main/cart_totals.tpl"} {if $js_enabled} {include file="buttons/update.tpl"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_update} {/if} </form> {/capture} {include file="dialog.tpl" title=$lng.lbl_shipping content=$smarty.capture.checkout_dialog extra="width=100%"} {/if}
Reply With Quote