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

Showng Icon for Free Shipping

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-25-2006, 07:04 AM
 
sandersdesign sandersdesign is offline
 

Member
  
Join Date: Oct 2005
Posts: 26
 

Default Showng Icon for Free Shipping

Hi, I'd like to show visitors a small graphic with products which have free delivery. I guess I should use the {if}image{/if} smarty tag but can't remember what needs to be user for the {if $xxxxx} trigger.

Help warmly welcomed. Many thanks,
__________________
www.sandersdesign.net
X-Cart Gold v4.0.16, Unix
Reply With Quote
  #2  
Old 04-25-2006, 02:55 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

Quote:
{if $product.free_shipping eq "Y"} [img]{$ImagesDir}/freeshipping.gif[/img] {/if}

place above code in product.tpl where you want to display image.
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #3  
Old 05-03-2006, 06:50 AM
 
sandersdesign sandersdesign is offline
 

Member
  
Join Date: Oct 2005
Posts: 26
 

Default

Thanks raxitpatel,

It works really well, only thing is now we would also like to offer clients an option to have free normal delivery (UK only, free) or express delivery (paid). As the Free Delivery removes options for additional delivery options is it possible to show the image for specific delivery methods?

Thanks,
__________________
www.sandersdesign.net
X-Cart Gold v4.0.16, Unix
Reply With Quote
  #4  
Old 06-08-2006, 05:03 AM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default

I used this mod and implimented it to display a free shipping image under products that are marked free shipping - http://test.streetortrack.com/product.php?productid=17102&cat=243&page=1

What I'd like to also display is the another free shipping image under the thumbnail of the product in the product list page - http://test.streetortrack.com/home.php?cat=294

This way the customer wouldn't need to actually load the product details to see that they can save money with free shipping. And I wouldn't need to add the free shipping text to the product name...

Any ideas?
__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #5  
Old 10-05-2006, 07:55 AM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default Re: Showng Icon for Free Shipping

Quote:
Originally Posted by raxitpatel
place above code in product.tpl where you want to display image.

Please help. I used the same code and inserted into the "skin1\customer\main\product.tpl" file but it doesn't work. Instead of showing the image, it is showing this text instead. [img]/skin1/images/FreeShipping.gif[/img]

I checked and do have the "FreeShipping.gif" file under the "skin1\images" directory. Here is the code that I put in.

Code:
{if $product.free_shipping eq "Y"} [img]{$ImagesDir}/FreeShipping.gif[/img] {/if}

Did I screwed up somewhere?

Thanks
-Tuan
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #6  
Old 10-05-2006, 08:14 AM
 
balinor balinor is offline
 

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

Default Re: Showng Icon for Free Shipping

The forum has screwed up the code, it should be:

{if $product.free_shipping eq "Y"} <img src="{$ImagesDir}/FreeShipping.gif">{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-05-2006, 10:50 AM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default Re: Showng Icon for Free Shipping

Quote:
Originally Posted by balinor
The forum has screwed up the code, it should be:

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


Thanks Ryan. I don't care what all people say about you. You're still my hero. Hehehe........J/K.
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #8  
Old 10-05-2006, 10:52 AM
 
balinor balinor is offline
 

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

Default Re: Showng Icon for Free Shipping

Heh...funny guy
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 09:44 AM.

   

 
X-Cart forums © 2001-2020