X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   How to show "New Arrival!" Icon (https://forum.x-cart.com/showthread.php?t=8589)

markwhoo 01-05-2005 12:31 PM

Quote:

Originally Posted by CC
I havent tested this, but see if this works in customer/main/product.tpl:

Code:

{* // 60 * 60 * 24 * 20 days in unix time = 1728000  *}
{if ($product.add_date gt $smarty.now - 1728000) and ($product.add_date lt $smarty.now)}
[img]{$ImagesDir}/mynew.gif[/img]
{/if}


If you have this showing after the product name inside the main table on the product page the code has to be altered to fit within the dialog code.

All of that is untested, but i am sure it will work.


Works Great!

Thanks so much for the time you have helped me AND the original posting for the mod itself!

eaglemobiles 01-07-2005 07:07 PM

how add the new image to product
 
i have done what you said, but i dont know how to add this image to product

markwhoo 01-07-2005 07:58 PM

Re: how add the new image to product
 
Quote:

Originally Posted by eaglemobiles
i have done what you said, but i dont know how to add this image to product


If you have done what is posted (and it does work), then all that is left to do is upload modified files unless it was done via webmasters mode window, and then upload the image you have chosen to use as your "NEW Product" pic.

That is it, easy as pie :wink:

CC 01-08-2005 12:18 AM

and make sure you upload your .gif file to the skin1/images directory.

markwhoo 01-08-2005 10:03 AM

Quote:

Originally Posted by CC
and make sure you upload your .gif file to the skin1/images directory.


lol, this is true,

I guess I should have reiterated this myself. I assumed since the instructions were followed it would be done. However, this may have been the issue the entire time...

File structure IS important :wink:

Thanks CC

jamtots 01-10-2005 07:09 PM

Oooh that works great--thanks SO much!! :)

Holly

taltos1 06-01-2006 12:12 PM

Update: To get the "New Product" image in your detailed product pages,
Put the above mentioned code right under

Code:

<TD valign="top" align="left" rowspan="2" width="100">
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}
</TD>
<TD valign="top">
<SPAN class=>


In the /customer/main/product.tpl file

It will put the "new product" image right next to the image thumb.
4.0.18

aescalante 06-01-2006 04:08 PM

Where is the image?
 
I can not see/download the icon image. Can someone re-post it please.

Thanks

taltos1 06-01-2006 08:34 PM

It does not really matter, you can create your own (so it matches you site) and then use that. Just make sure it is not to big. It may push your tables around a bit if it is.

Brainary 11-11-2008 08:44 PM

Re: How to show "New Arrival!" Icon
 
could someone please tell me where I find the skin1/images file to add the graphic there.
and where abouts the skin1/customer/mina/products.tpl file is


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

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