[Typo3-shop] new: plugin.tt_products.withoutHighlight, plugin.tt_products.withoutOffer, plugin.tt_products.withoutSpecial_preparation
Michael Hoppe
michael at hoppefamily.de
Sat Jan 7 23:43:29 CET 2006
Hi,
in: class.tx_ttproducts_list_view.php
behind:
1.. $wherestock = ($this->config['showNotinStock'] ? '' : 'AND (inStock <>
0) ');
2.. $selectConf['where'] = '1=1 '.$wherestock.$where;
enter this Code:
1.. $wherestock = ($this->config['withoutHighlight'] ? '' : ' AND
(highlight = 0) ');
2.. $selectConf['where'] .= $wherestock;
3..
4.. $wherestock = ($this->config['withoutOffer'] ? '' : ' AND (offer = 0)
');
5.. $selectConf['where'] .= $wherestock;
6..
7.. $wherestock = ($this->config['withoutSpecial_preparation'] ? '' : '
AND (special_preparation = 0) ');
8.. $selectConf['where'] .= $wherestock;
The exists new parameters:
1.. plugin.tt_products.withoutHighlight =
2.. plugin.tt_products.withoutOffer =
3.. plugin.tt_products.withoutSpecial_preparation =
If you set it to 1 (in setup) the products will be not found.
I think the Parameter explain themself.
Useful if you want to display highlight products first an then the others.
(two tt_products content objects on one page)
Michael Hoppe
More information about the TYPO3-project-tt-products
mailing list