[Typo3-shop] Digital goods / pass value (pagenumber) from list view page to order

Jens Liesegang sunos at gmx.de
Thu Dec 1 19:27:21 CET 2005


On 30.11.2005 22:42 Uhr, in article
mailman.1.1133386895.14847.typo3-project-tt-products at lists.netfielders.de,
"Franz Holzinger" <franz at fholzinger.com> wrote:

> 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?

> 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

Hello Franz,

Thanks. So I could use an input field and submit ttp_extvars[documentid] =
_page-id_ . But how can I diplay it on the confirmation page and the
confirmation email?

Jens




More information about the TYPO3-project-tt-products mailing list