[TYPO3-shop] Basket contents not re-populating
Franz Holzinger
franz at fholzinger.com
Wed Oct 24 23:33:26 CEST 2007
Gregory S. Hoerner Sr. a écrit :
> I have a site which uses a custom handleScript for payment. When re-directed
> back to the site after the payment gateway has "done it's thing", all of the
> person's information (name, address, etc) as well as shipping options, etc
> chosen are re-populated into the order for use in the "finalize" step. The
> problem is, none of the basket contents are being re-populated.
>
> I've traced the problem to the fact that all other information is stored in
> the session key "recs", while the basket information is being stored in
> "basketExt"...
>
> My question to all is, why would "recs" be re-populated, while "basketExt"
> not be. I used the payment_DIBS.php as an example to start, and I have not
> removed anything, just changed/added as necessary. Is there a particular
> function I should be calling to re-populate the basket?
The basket gets filled from the recs session data of the FE user.
$recs = $TSFE->fe_user->getKey('ses','recs');
This is done in tx_ttproducts_basket::init.
So it is better to redirect only to a page with a tt_products plugin.
Then the basket will always be initalized.
- Franz
More information about the TYPO3-project-tt-products
mailing list