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

"New Product" Tag

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-16-2009, 02:34 AM
 
jon@leapfrogcomputers.co. jon@leapfrogcomputers.co. is offline
 

Member
  
Join Date: Jul 2006
Posts: 21
 

Default "New Product" Tag

Hi,

I am trying to create a little tag that will show on new products - eg products added less that 30 days ago - but i am having problems finding the right {if} code, can anybody help?

Here is a little demo of what i would like it to eventually look like:
http://i40.tinypic.com/kls1h.gif

Cheers,
Carl
__________________
Version 4.4.1 Gold
Reply With Quote
  #2  
Old 04-16-2009, 03:08 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: "New Product" Tag

Code:
{if $smarty.now-$product.add_date<30*24*60*60 && $smarty.now-$product.add_date>0}New product{/if}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote

The following user thanks Victor D for this useful post:
  #3  
Old 04-16-2009, 04:03 AM
 
jon@leapfrogcomputers.co. jon@leapfrogcomputers.co. is offline
 

Member
  
Join Date: Jul 2006
Posts: 21
 

Default Re: "New Product" Tag

Thanks a million victor!!
__________________
Version 4.4.1 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 09:53 PM.

   

 
X-Cart forums © 2001-2020