[Typo3-shop] empty the ammounts/bananaShop
Franz Holzinger
franz at fholzinger.com
Tue Jul 26 16:47:28 CEST 2005
Eric Vlemmings a écrit :
> I have set that to 1
>
>
> $TYPO3_CONF_VARS['EXTCONF']['tt_products']['pageAsCategory'] = 1; //for page
> as categories: 1
>
> ?>
>
>
So most probably there is an error using this settings.
Open the file pi/class.tx_ttproducts.php with an editor.
Then search the function initBasket.
There you have an if statement:
if
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_products']['pageAsCategory']
== 0)
{ $this->basketExt[$uid][$extVars] = $count;
}
else
{ $this->basketExt[$uid][$extVars] += $count;
}
Change in the second part
$this->basketExt[$uid][$extVars] += $count;
also to
$this->basketExt[$uid][$extVars] = $count;
Tell me if this will work.
Franz
More information about the TYPO3-project-tt-products
mailing list