[Typo3-shop] Digital goods / pass value (pagenumber) from list view page to order
Matthew Manderson
matthew at manderson.co.uk
Thu Dec 1 10:43:11 CET 2005
> 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?
Maybe you can try another approach. This was a route I took for another
project.
This was using tt_news but I expect it would work with products.
1) Add this to a template on the product single page. You will need to
change the table lookup etc.
# get the field data for the current record from
# the db and put it in a temp object
temp.formaldesc = RECORDS
temp.formaldesc.dontCheckPid = 1
temp.formaldesc.tables = tt_news
temp.formaldesc.source.data = GPvar:tx_ttnews|tt_news
temp.formaldesc.conf.tt_news = TEXT
temp.formaldesc.conf.tt_news.field = bodytext
# write this to the page wrapped in a hidden form field
temp.desc.175 = TEXT
temp.desc.175 < temp.formaldesc
temp.desc.175.wrap = <input type="hidden" name="formalDesc" value="|" />
In my project this field along with others was set into a session variable
and I could then retrieve it anytime I liked elsewhere on the site.
Matthew
More information about the TYPO3-project-tt-products
mailing list