Thread: free shipping
View Single Post
  #2  
Old 09-17-2014, 06:27 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: free shipping

Silverson,
I used this question for the subject of a quick tutorial: http://youtu.be/qi_idD1lixI 3:52

In skin /common_files/modules/One_Page_Checkout/summary/cart_totals.tpl around line 50 you will see this code:
Code:
{if $config.Shipping.enable_shipping eq "Y"} <tr> <td class="total-name dcoupons-clear"> {$lng.lbl_shipping_cost}{if $cart.coupon_discount ne 0 and $cart.coupon_type eq "free_ship"} ({$lng.lbl_discounted} <a href="cart.php?mode=unset_coupons" title="{$lng.lbl_unset_coupon|escape}" class="unset-coupon-link"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_unset_coupon|escape}" /></a>){/if}: </td> {if ($shipping ne '' or not $need_shipping) and $userinfo ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0} <td class="total-value">{currency value=$shipping_cost}</td> {else} <td class="total-value">{$lng.txt_not_available_value}</td> {/if} </tr> {/if}

Simply wrap this in an additional if statement:
Code:
{if $cart.shipping_cost gt 0} Original code goes here {/if}
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote