[Typo3-shop] Digital goods / pass value (pagenumber) from list view page to order
Jens Liesegang
sunos at gmx.de
Sun Dec 4 19:17:10 CET 2005
>> Franz, I have tried my very best but can't figure it out. To add a
>> document-ID to $this->itemArray['pid']['itemnumber'] I'd like to post this
>> with
>>
>> <input type="hidden" name="ttp_basket[7][documentid]" value="3553" />
>> <input type="hidden" name="ttp_basket[7][documenttitle]" value="Schweizer
>> Gesellschaften" />
>>
>> On a product in single view. But how can I add / access / append this to
>> $this->itemArray['pid']['itemnumber'] in lines 974ff. ?
>>
> 1. Add this to $this->basketExt in tx_ttproducts_basket::init()
Hmm. If I add this there to $this->basketExt[$uid]['documentid'] after
Line 202
if (is_array($basketExtRaw)) {
while(list($uid,$basketItem)=each($basketExtRaw)) {
$variant = tx_ttproducts_article_div::getVariantFromRow($basketItem);
$documentid = $basketItem['documentid'];
$documenttitle = $basketItem['documenttitle'];
...
It shows me two products in the basket
Where is my fault?
> 2. use function &getItem (&$row) to add these values to the product
O.k. works
More information about the TYPO3-project-tt-products
mailing list