[Typo3-shop] Digital goods / pass value (pagenumber) from list view page to order
Franz Holzinger
franz at fholzinger.com
Wed Nov 30 22:42:40 CET 2005
Hello Jens,
>>>Is it possible (and when how) to pass the value of the pagenumber where the
>>>products list is shown to the basket so that it is present trough the check
>>>out process?
>>>
>>
>>you have to store this pid together with the products in the
>>$this->itemArray when the user puts it into the basket.
>>
>
> Thanx, but I don't get it. As far as I understand $this->itemArray gets
> initialised by function getCalculatedBasket() on line 747 in class basket.
> There is a loop over all pages and _predefined_ values of the items in the
> basket are calculated. These values are then filled in the array.
>
> So I would have to extend the function to include an additional value?
>
> Isn't there a quick and dirty solution if I would make sure that just one
> products is shown on a page?
>
> Since I am not a great programmer our help is very appreciated.
>
You have to store all the necessary info for a product in the
$this->itemArray which is filled by the values from $this->basketExt.
This is needed everywhere to work. If you intend to buy the same product
on e.g. 1000 pages then you will have to store 1000 numbers somewhere,
most probably in $this->basketExt. You can not store this in the
tt_products nor in the tt_products_articles table. And these numbers
have to be displayed again in the order confirmation page and the
notification email. You have only one product with maybe 1000 numbers.
Or you can misuse the order's note field to store and display these numbers.
Franz
More information about the TYPO3-project-tt-products
mailing list