X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   free shipping (https://forum.x-cart.com/showthread.php?t=70014)

Silverson 09-17-2014 04:42 PM

free shipping
 
how do I get rid of:
"Shipping cost = $0.00USD"
at check out when shipping is included.

totaltec 09-17-2014 06:27 PM

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}


Silverson 09-18-2014 02:01 PM

Re: free shipping
 
Success! Thank you very much. Your U tube video really helped as well just to know what goes where. :-)


All times are GMT -8. The time now is 07:48 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.