[TYPO3-shop] Click into basket
Franz Holzinger
franz at fholzinger.com
Wed Dec 19 18:39:31 CET 2007
Redvald Hjulstad a écrit :
>> It uses the page from parameter backPID , which is the page where it
>> comes from.
>>
>> You can change the programm code at $pid in
>> view/class.tx_ttproducts_single_view.php to your needs.
>>
>> - Franz
>
> So setting Click into basket to 1 (selected) and PID for basket page to
> 91 (the page where I have the basket content) should not take the
> customer to the page with id 91 after adding a item to the basket?
No, this does not work as intended in version 2.5.4.
It will work in tt_products 2.6.0:
$backPID = $this->pibase->piVars['backPID'];
$backPID = ($backPID ? $backPID : t3lib_div::_GP('backPID'));
$basketPID = $this->conf['PIDbasket'];
if ($this->conf['clickIntoBasket'] && $basketPID) {
$pid = $basketPID;
} else if ($this->conf['clickIntoList'] || !$backPID) {
$pid = $this->page->getPID($this->conf['PIDlistDisplay'],
$this->conf['PIDlistDisplay.'], $row);
} else {
$pid = $backPID;
}
- Franz
More information about the TYPO3-project-tt-products
mailing list