[TYPO3-shop] How to put a product into basket out of an own extension?
Sebastian Jurk (Top-Info.Org)
info at top-info.org
Tue Jan 20 21:15:51 CET 2009
Hello Franz,
thanks for your Answer. I looked into the file you mentioned but I didnt
understand fully I think.
The basket is stored in Typo3-Session. And in this session stored in the
key basketExt filled from $this->basketExt. But I dont see whats the
structure of $this->basketExt is.
I have a product with the uid 32124, a pid, a title, price and tax. So
how does the var awaits this data?
By the way... Do I have to do something when the user isnt logged in
when putting something in basket? Maybe save the basket to
$TSFE->fe_user->setKey('user' ?
Thanks!
Sebastian
Franz Holzinger schrieb:
> Hello Sebastian,
>
>> I have a own extension where I let the user put in a lot of data and out
>> of that create a product that is stored in table tt_products. Now I want
>> to put that product into the basket of that user. How?
>
> You can store products into the basket:
>
> $TSFE->fe_user->setKey('ses','basketExt',$this->basketExt);
>
> See the file model/class.tx_ttproducts_basket.php.
>
>
> - Franz
> _______________________________________________
> TYPO3-project-tt-products mailing list
> TYPO3-project-tt-products at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-products
>
More information about the TYPO3-project-tt-products
mailing list