Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Making text read FREE SHIPPING instead of 0.00

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-12-2005, 10:18 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default 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.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #2  
Old 07-13-2005, 08:21 PM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

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}
__________________
Gibberish
[Unix] X-Cart 4.0.12
Reply With Quote
  #3  
Old 07-13-2005, 11:15 PM
 
vulcan-works vulcan-works is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 143
 

Default

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
__________________
X-cart--4.7.12

vulcanworks.net
Reply With Quote
  #4  
Old 07-14-2005, 12:54 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thank you!
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #5  
Old 07-14-2005, 05:55 PM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default

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
__________________
Version 4.0.8 Live
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:06 PM.

   

 
X-Cart forums © 2001-2020