Author Topic: 'Date Added' variable  (Read 1611 times)

wastedspace

  • Beginner
  • *
  • Posts: 22
'Date Added' variable
« on: September 23, 2009, 10:56:30 am »
Hi there,

Is there a variable that can tell you the date a product was added? And accessible through the fly page AND browse products page?

The reason being I'd like to write a bit of code that displays a 'new product' icon if a product was added within the week...

Many thanks,

Ali.

wastedspace

  • Beginner
  • *
  • Posts: 22
Re: 'Date Added' variable
« Reply #1 on: September 23, 2009, 12:14:32 pm »
It's ok. Solved it myself  :)

If I'd bothered to look here at the pre-defined variables - http://virtuemart.net/documentation/Developer_Manual/Modifying_the_Layout.html I would have found that there is a variable called $cdate!

Sorted :)

Stefanos

  • Jr. Member
  • **
  • Posts: 93
Re: 'Date Added' variable
« Reply #2 on: September 29, 2010, 16:40:53 pm »
Do you have any idea in how to modify the cdate (The Product's Creation Date) without entering phpmyadmin ?

the reason is that I would like the RSS feeds to sort by creation date, because every time you modify a product, it goes UP in the RSS list.

any help appreciated
cheers