Quote:
Originally Posted by shan
A similar situation
Wanted free shipping for orders over 89.99 but used real time shipping methods to calculate shipping costs. you have to set up a manual shipping charge with proces threashold of 9999.99 with a price of zero
because you dont want to show the free shipping option to anyone under 90.00 and you dont have a manual shipping method set up you can use the following code.
this was done in a 3.5.12 site but would work the same in other versions im sure.
the only file that was modified is cart_totals.tpl
find this line (around line 20)
Code:
{if $shipping ne "" and $need_shipping}
and just after it add
Code:
{if $cart.discounted_subtotal gt 89.99}
<font class=ProductPriceSmall>Congratulations, you qualify for Free Shipping</font>
{else}
<font class=ProductPriceSmall>Spend an extra {math equation="x - y" x=89.99 y=$cart.discounted_subtotal} to qualify for Free Shipping</font>
{/if}
<font class=FormButton>{$lng.lbl_delivery}: </font>
<select name=shippingid onchange="document.cartform.submit()">
{section name=ship_num loop=$shipping}
{if $shipping[ship_num].rate ne 0 or $cart.discounted_subtotal gt 89.99}
<option value="{$shipping[ship_num].shippingid}" {if $shipping[ship_num].shippingid eq $cart.shippingid}selected{/if}>{$shipping[ship_num].shipping|escape}{if $config.Appearance.display_shipping_cost eq "Y" and ($login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0)} ({include file="currency.tpl" value=$shipping[ship_num].rate}){/if}</option>
{/if}
{/section}
</select>
this mod also gives a message to say how much more you need to spend to get free shipping and then gives a message if you are allowd free shipping.
change the 89.99 to suit your own needs
|
How does this allow realtime shipping for all orders under $90? I think I'm not seeing something--too many late nights of coding

Thanks.