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

Adding Free Shipping Image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 02-13-2008, 05:30 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: Adding Free Shipping Image

Code changed as per Balinor recommendations.

Works perfect!!!!!
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #12  
Old 02-13-2008, 05:46 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: Adding Free Shipping Image

I am trying to learn all this.

Here is a copy and past of the code from the other thread.


{if $product.free_shipping eq "Y"} <img src="{$ImagesDir}/Free_Ship1.jpg">{/if}


As for the code I used, I changed the image name, but the code is from on sale, I looked at his code to see what I was doing wrong. He does not have the trailing slash or the alt= image tag.

Should I put the alt=image in his code.

Thank you for the help!!
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #13  
Old 02-13-2008, 06:53 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Adding Free Shipping Image

Your image code was different, you were missing the closing > which broke the tag. The alt is not essential, but if you want a valid site both the alt and the / are necessary, yes.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #14  
Old 02-16-2009, 03:55 AM
 
petsafe petsafe is offline
 

Newbie
  
Join Date: Oct 2007
Posts: 2
 

Default Re: Adding Free Shipping Image

Anyone know the syntax to make this work in LiteCommerce?
__________________
--
LC Version: 2.2.35
PHP: 5.2.6
MySQL server: 5.0.67-log
Web server: Apache/2.2.10
Operating system: FreeBSD
Reply With Quote
  #15  
Old 10-22-2009, 08:16 PM
  Mudjocky's Avatar 
Mudjocky Mudjocky is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 62
 

Default Re: Adding Free Shipping Image

I have the image showing on the product page but in the listing it will not appear using
{if $products[product].free_shipping eq 'Y'}<img src="{$ImagesDir}/free_shipping.gif" alt="Free Shipping" />{/if}

this is in 4.2.2 - any ideas..could the image be too big perhaps?
__________________
Version 4.1.11
Version 4.2.2
Version 4.3.1
Version 4.4.2;3
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 02:40 PM.

   

 
X-Cart forums © 2001-2020