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

Date Added Displayed on Product details?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-03-2007, 11:03 AM
 
Victoria Feemster Victoria Feemster is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 45
 

Default Date Added Displayed on Product details?

Is it possible to have the date that the product was added to the store displayed on the product listings?
__________________
Thank you,
Victoria Feemster
x-cart pro - 4.1.8
Reply With Quote
  #2  
Old 09-04-2007, 06:29 AM
 
Victoria Feemster Victoria Feemster is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 45
 

Default Re: Date Added Displayed on Product details?

Anyone have any idea if this is possible? Thanks so much!
__________________
Thank you,
Victoria Feemster
x-cart pro - 4.1.8
Reply With Quote
  #3  
Old 09-04-2007, 07:54 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Date Added Displayed on Product details?

1) For displaying on the main product page...

In skin1/customer/main/product.tpl

Add...

Code:
Added: {$product.add_date|date_format:"%d-%m-%Y"}

You could show the time also...

Code:
Added: {$product.add_date|date_format:"%d-%m-%Y %H:%M:%S"}

2) For displaying on your productS pages...

In skin1/customer/main/products.tpl

OR, if displaying products in columns...

In skin1/customer/main/products_t.tpl

Add...

Code:
Added: {$products[product].add_date|date_format:"%d-%m-%Y"}

---

For US date format, use...

Code:
"%m-%d-%Y"
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 09-04-2007, 02:05 PM
 
Victoria Feemster Victoria Feemster is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 45
 

Default Re: Date Added Displayed on Product details?

Is there a certain place I need to add it on that file?
__________________
Thank you,
Victoria Feemster
x-cart pro - 4.1.8
Reply With Quote
  #5  
Old 09-04-2007, 02:06 PM
 
Victoria Feemster Victoria Feemster is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 45
 

Default Re: Date Added Displayed on Product details?

I noticed you said or? Do I choose which one to edit? I think I am kinda confused. I am new at doing this coding stuff so please bear with me
__________________
Thank you,
Victoria Feemster
x-cart pro - 4.1.8
Reply With Quote
  #6  
Old 09-04-2007, 02:27 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Date Added Displayed on Product details?

Post updated
__________________
xcartmods.co.uk
Reply With Quote
  #7  
Old 09-04-2007, 02:36 PM
 
Victoria Feemster Victoria Feemster is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 45
 

Default Re: Date Added Displayed on Product details?

Thanks so much! I appreciate it!
__________________
Thank you,
Victoria Feemster
x-cart pro - 4.1.8
Reply With Quote
  #8  
Old 09-04-2007, 02:44 PM
 
Victoria Feemster Victoria Feemster is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 45
 

Default Re: Date Added Displayed on Product details?

Worked perfectly!
__________________
Thank you,
Victoria Feemster
x-cart pro - 4.1.8
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 12:26 PM.

   

 
X-Cart forums © 2001-2020