[TYPO3-shop] pageAsCategory not working
Franz Holzinger
franz at ttproducts.de
Mon Mar 5 10:25:18 CET 2012
On 06/11/11 19:38, Ian Solo wrote:
> I'm unable to make tt_products to work with pageAsCategory = 2
>
> I have some pages with products records inside, but each of these pages
> shows all the products, not only the products in the selected page.
>
> I debugged the code and found that in class.tx_ttproducts_list_view.php
> line 379:
> $pid = $pageViewObj->getModelObj()->getParamDefault($theCode,
> $this->pibase->piVars[$pageViewObj->piVar]);
> after this line $pid is empty, but I guess that is should be set to the
> PID of the current page.
No, this is wrong. The pid is taken from the parameter tt_products[pid].
It will be empty if this parameter is missing in the url.
> If I hack it, setting manually $pid with the page ID of the current
> page, then it works.
>
> TYPO3 4.5.7
> tt_products 2.7.2
Maybe this is an improvement for your case. I however do not understand
this. Maybe you did not set the pid_list.
- Franz
More information about the TYPO3-project-tt-products
mailing list