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)
-   -   Showng Icon for Free Shipping (https://forum.x-cart.com/showthread.php?t=21339)

sandersdesign 04-25-2006 07:04 AM

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,

jeeya 04-25-2006 02:55 PM

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.

sandersdesign 05-03-2006 06:50 AM

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,

Shaun 06-08-2006 05:03 AM

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?

TL408 10-05-2006 07:55 AM

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

balinor 10-05-2006 08:14 AM

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}

TL408 10-05-2006 10:50 AM

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.

balinor 10-05-2006 10:52 AM

Re: Showng Icon for Free Shipping
 
Heh...funny guy :)


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

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