[TYPO3-shop] Problems with tt_products: backlink in Basket, clickintobasket in singleview, continue shopping

Katharina webshopper at arcor.de
Mon Mar 3 18:02:27 CET 2008


Hello Franz Holzinger,

thanks very much for your answers! They already helped a lot:

- redirection from basket to single view is working now that 
PIDitemDisplay is set

- ClickintoBasket for single view is also working with the help of the 
code modification you suggested

The only thing still not working is the update of the item count in the 
basket.
When adding an item which is already in the basket, the item number is 
NOT increased.
Update_mode is set only on the basket page - and there it ist needed. If 
I remove it there, the user can no longer remove items from the basket.

Do you possibly have an idea what's wrong here? Or what I might change 
to acchieve updating of the item count?

Thanks in advance

Katharina Zugberg
>   
>> - When clicking on the links of items in the basket, I am not directed
>> back to the product's detail page but the website's start page.
>> Obviously the parameter backPID is not correct or not used. How can I
>> fix this?
>>     
>
> You must set PIDitemDisplay .
>
>   
>> - ClickIntoBasket does not work properly in single view. When adding a
>> product in single view, the product is added to the basket, but the user
>> remains on the single view page and is not directed to the basket page.
>>     
> The lines in iew/class.tx_ttproducts_single_view.php could be changed:
>
> $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 if ($backPID) {
> 	$pid = $backPID;
> } else {
> 	$pid = $TSFE->id;
> }
>
>   
>> - When I add a product again to the basket, the number of items is not
>> increased but stays 1.
>>     
>
> This is update mode. If you do not want this, you must remove this
> hidden input tag from your page.
>
>   
>> - Is it possible to add a link to the basket view which allows the user
>> to continue shopping from the page where he was last? I mean other than
>> using javascript:history.back(); ;)
>>     
>
> You have the backPID parameter for this. This backPID page should
> normally be used.
>
> - Franz
>   



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