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)
-   -   Adding Free Shipping Image (https://forum.x-cart.com/showthread.php?t=37503)

Duramax 6.6L 02-13-2008 05:30 PM

Re: Adding Free Shipping Image
 
Code changed as per Balinor recommendations.

Works perfect!!!!!

Duramax 6.6L 02-13-2008 05:46 PM

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!!

balinor 02-13-2008 06:53 PM

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.

petsafe 02-16-2009 03:55 AM

Re: Adding Free Shipping Image
 
Anyone know the syntax to make this work in LiteCommerce?

Mudjocky 10-22-2009 08:16 PM

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?


All times are GMT -8. The time now is 02:04 AM.

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