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

How to show "New Arrival!" Icon

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 01-05-2005, 12:31 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

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!
__________________
vs 4.1.12
Reply With Quote
  #22  
Old 01-07-2005, 07:07 PM
  eaglemobiles's Avatar 
eaglemobiles eaglemobiles is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 167
 

Default how add the new image to product

i have done what you said, but i dont know how to add this image to product
__________________
X-Cart Gold 4.3.2
X-Cart Gold 4.4.1
Unix

High Quality CCTV DVRs & Cameras
http://www.eaglemobiles.co.uk/CCTV
Reply With Quote
  #23  
Old 01-07-2005, 07:58 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default 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
__________________
vs 4.1.12
Reply With Quote
  #24  
Old 01-08-2005, 12:18 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

and make sure you upload your .gif file to the skin1/images directory.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #25  
Old 01-08-2005, 10:03 AM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

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

Thanks CC
__________________
vs 4.1.12
Reply With Quote
  #26  
Old 01-10-2005, 07:09 PM
 
jamtots jamtots is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 43
 

Default

Oooh that works great--thanks SO much!!

Holly
__________________
Holly Simard--X-Cart Newbie!!
JamTots Online Baby Store
http://www.jamtots.com
X-Cart Gold 4.0.4
Windows Server
Reply With Quote
  #27  
Old 06-01-2006, 12:12 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

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
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #28  
Old 06-01-2006, 04:08 PM
 
aescalante aescalante is offline
 

Member
  
Join Date: Dec 2004
Posts: 19
 

Default Where is the image?

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

Thanks
Reply With Quote
  #29  
Old 06-01-2006, 08:34 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

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.
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #30  
Old 11-11-2008, 08:44 PM
 
Brainary Brainary is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 41
 

Default 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
__________________
4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 03:03 PM.

   

 
X-Cart forums © 2001-2020