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)
-   -   Making text read FREE SHIPPING instead of 0.00 (https://forum.x-cart.com/showthread.php?t=15162)

bluecat 07-12-2005 10:18 PM

Making text read FREE SHIPPING instead of 0.00
 
I apologize if this was already asked somewhere; I couldn't find it. We offer free shipping over a certain dollar amount, and was wondering if it was possible to show (at checkout) "Free Shipping" to the customer (in the Shipping Total area, rather then 0.00 when the customer goes over the amount that we require for free shipping.

Thanks.

Gibberish 07-13-2005 08:21 PM

Not sure exactly where but you would use an if statement.

Code:

{if $cart.shipping_cost eq "0.00"}FREE SHIPPING{else}$cart.shipping_cost{/if}

vulcan-works 07-13-2005 11:15 PM

in skin1/customer/main/cart_totals.tpl
replace:
Code:

{include file="currency.tpl" value=$shipping_cost}

with:
Code:

{if $shipping_cost eq "0.00"}Free Shipping!{else}{include file="currency.tpl" value=$shipping_cost}{/if}

and that replaces the 0.00 with Free Shipping

bluecat 07-14-2005 12:54 AM

Thank you!

1day2004 07-14-2005 05:55 PM

Nice. Any possible way to also do this for the shipping method drop down menu?


Example:

Ground (FREE)
Priority ($7.95)
Express ($13.95)


Thanks


All times are GMT -8. The time now is 07:14 PM.

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