[TYPO3-shop] [Typo3-shop] LISTOFFERS: own template
Simon Tuck
e-mailNO at SPAMeyejet.com
Sun Feb 19 15:33:46 CET 2006
Joern Bock wrote:
> Yes Simon, I had such a workaround with two different template files in
> mind. But to be honest, a solutions as described by Franz would be a
> much more tailor-made solution, don't you think?
Hi Joern,
Well, of course: If you are implementing a shop for a client then I expect it to be tailored to the customers needs. But I see no advantage in
modifying the extension code when a couple of lines of TS will achieve the same result.
However, if you still want to modify the code, then you should do as follows:
In class.tx_ttproducts_list_view.php go to the method printView.
Where it says:
// Getting various subparts we're going to use here:
$area = '';
if ($memoItems != '') {
$area = '###MEMO_TEMPLATE###';
} else if ($theCode=='LISTGIFTS') {
$area = '###ITEM_LIST_GIFTS_TEMPLATE###';
} else {
$area = '###ITEM_LIST_TEMPLATE###';
}
Modify the code to read:
// Getting various subparts we're going to use here:
$area = '';
if ($memoItems != '') {
$area = '###MEMO_TEMPLATE###';
} else if ($theCode=='LISTGIFTS') {
$area = '###ITEM_LIST_GIFTS_TEMPLATE###';
} else if ($theCode=='LISTOFFERS') {
$area = '###ITEM_LISTOFFERS_TEMPLATE###';
} else {
$area = '###ITEM_LIST_TEMPLATE###';
}
That ought to do the trick...
Cheers,
Simon
More information about the TYPO3-project-tt-products
mailing list