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 an Image to Product info for FREE SHIPPING... (https://forum.x-cart.com/showthread.php?t=11090)

CC 12-23-2004 01:07 AM

Adding an Image to Product info for FREE SHIPPING...
 
Does anyone know which code is required to add an image to product.tpl and products_t.tpl to display an small image that only shows up if the FREE SHIPPING option is selected for that item in admin under product_modify.php?

At the moment there is no way for a customer to see that the item has free shipping on it, until they add it to their cart, so this cant be used as a promo idea unless displayed as such, hence why we want to add an image to show free shipping on that item if it is available.

We have been searching, but not yet found the correct code.
Any ideas?

CC 12-23-2004 01:30 AM

Ignore me, once again just after I posted this I was hit by inspiration and worked it out.

If anyone else wants to do it, here is the code for product.tpl:
Code:

{if $product.free_shipping ne "N"}
[img]{$ImagesDir}/free_shipping_small.gif[/img]
{/if}


Here is the code for products_t.tpl:
Code:

{if $products[product].free_shipping ne "N"}
<td width="40%" align="center">[img]{$ImagesDir}/free_shipping_small.gif[/img]
</td>
{/if}


Hope it helps...

RichieRich 12-23-2004 03:41 AM

Thanks for the info, hopefully similar types of features will be in the upcomgin Special Offers add-on module....

CC 12-23-2004 07:32 AM

No probs.

Do you know what is actually in the Special Offers mod as yet?

I have been trying to find out what that and the feature comparison mod will be about, but I cant find any info on them...


All times are GMT -8. The time now is 01:49 AM.

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