[TYPO3-commerce] add "new" to product in a time range
Morten Olesen
mo at idefa.dk
Fri Jun 18 08:36:23 CEST 2010
Hi Rob,
off the top of my head I'd say something like
plugin.tx_commerce_pi1.listView.products.fields.title.append{
if{
isLessThan.data = date: U
value{
field = crdate
stdWrap{
wrap = | + {$commerce.newTimeInSeconds}
}
prioriCalc = 1
}
}
value= <img src="/images/anoyingblinkingnewtag.gif">
}
That isn't really tested tho - and you will of course need to set
commerce.newTimeInSeconds=1209600
in your constants
Let me know how it works - and do post any changes you make to make it
work back here - it's not a bad idea.
/Morten
On 2010-06-17 16:18, Rob De Vries wrote:
> Hey,
>
> does anyone have a solution to state in the front end if a product is
> new if it is posted within a certain time range (for ex 2 weeks) ?
>
> tnx
> Rob De Vries
>
More information about the TYPO3-project-commerce
mailing list