|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
is there a way to have a LIST view show a message if the target record
folder is empty? I have a client that wanted to put the site us asap, but not all product categories are filled with records. some are empty. So if you goto the front end, it jst shows blank. I want it to say "There are no products in this category". Any hints? Thanks, Andrew Davis _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#2
|
|||
|
|||
|
Hello Andrew,
> is there a way to have a LIST view show a message if the target record > folder is empty? > > I have a client that wanted to put the site us asap, but not all product > categories are filled with records. some are empty. So if you goto the > front end, it jst shows blank. > > I want it to say "There are no products in this category". You must adapt the code for this. tt_products/view/class.tx_ttproducts_list_view.php: function &printView( ... .... if ($theCode != 'SEARCH' || ($theCode == 'SEARCH' && $sword)) { .... } if ($out) { .... } elseif ($sword && $allowedItems!='0' && $theCode=='SEARCH') { .... } else { // *** new code for the case where no products are listed *** $content = 'no products are listed'; } return $conten } _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-shop] Empty Basket with Version 2.5.2 | Tobias Vollmer | typo3-project-tt-products@lists.netfielders.de | 3 | 25.04.2008 18:05 |
| [TYPO3-shop] noImageAvailable for products | Unai Aizpurua | typo3-project-tt-products@lists.netfielders.de | 2 | 18.10.2007 16:26 |
| [TYPO3-shop] Can fe users add products? | Jogvan Olsen | typo3-project-tt-products@lists.netfielders.de | 1 | 02.10.2007 14:19 |
| Re: [TYPO3-shop] ordering of products | Andrew Davis | typo3-project-tt-products@lists.netfielders.de | 1 | 27.09.2007 20:23 |
| [TYPO3-shop] Different dicounts for different products ? | Gunnar Jonsson | typo3-project-tt-products@lists.netfielders.de | 0 | 09.02.2007 20:49 |