[TYPO3-shop] PIDitemDisplay type=pid not working
Franz Holzinger
franz at ttproducts.de
Mon Aug 10 21:49:41 CEST 2009
Claude Unterleitner a écrit :
> Hello,
>
> It's my fist onlineshop with tt_products. Almost everything worked fine
> inspite of this:
>
> I don't manage to get work PIDitemDisplay with the setting (manual, page
> 16):
>
> # If you set the type to pid then the pid of the record will be used.
> PIDitemDisplay {
> 10.type = pid
> }
>
> I use Typo3 Vers. 4.2.8 and tt_products Vers. 2.6.0
>
> I tried almost everything. I put the code both under TS Setup as TS
> Constants. I use the static template "TS Shop System Old Style".
>
> Does anybody have an idear? Have I forgotten something?
Change the code of model/class.tx_ttproducts_page.php line 266:
function getPID
...
if ($isValid == true) {
switch ($type) {
case 'sql':
$rc = $param['pid'];
break;
case 'pid':
$rc = intval($row['pid']);
break;
}
break; //ready with the foreach loop
}
More information about the TYPO3-project-tt-products
mailing list