[TYPO3-shop] Problem with backPID

Franz Holzinger franz at ttproducts.de
Fri Jan 23 09:03:06 CET 2009


Hello Christian,

> Hi Franz,
>>> I'm now using version 2.5.10 and the problem as described above is
>>> gone. However, the fix seems to introduce a new problem. Now, if I
>>> put an item into the cart from the single view, the POST will go to
>>> the single view. So far, so good. However, tt_products will
>>> determine the backPID as the id I posted from which is already the
>>> single view. Therefore hitting the back button will now take me in
>>> loops and I will always stay on the single view page. While
>>> logically this makes perfect sense, it is obviously not what the
>>> user what expect the back button to do. Is this really a new bug or
>>> do I just lack some config? I'm setting PIDitemDisplay and
>>> PIDlistDisplay in my TS...
>> There is a new bug, because the backPID is always reassigned in the 
>> single view.
>>
>> Check the attached patch.
> 
> The patch only partly fixes the problem. Now the backPID is correct but
> the parameter tx_ttproducts_pi1[product] does not get deleted from the
> URL, so that the list view on return will display a single item, too. :(

I have fixed this now. There only must be no product parameter if you do 
allow the list view on the single view (NoSingleViewOnList is empty or 
zero). But it must remain otherwise in order not to end in the error message
"Wrong parameters. GET/POST var 'tx_ttproducts_pi1[product]' is missing 
or no product with uid = 0 found on allowed pages."


- Franz


More information about the TYPO3-project-tt-products mailing list