[TYPO3-shop] Default product per category

Franz Holzinger franz at fholzinger.com
Sun Oct 14 14:54:18 CEST 2007


Hello,

> In tt_products it can be done to assign a default category and a default
> productitem. So far so good. But how about this one: 
>  
> We have more pages with each a category, 
> when the page is choosen it opens a list in 1 category AND and it should
> open a default product in this category. 
> When another page (with other category) it open list AND should open a
> default producti in that second category.

you should normally provide a URL parameter in the link of the page.
tx_ttproducts_pi1[cat]=2&tx_ttproducts_pi1[product]=12

But otherwise you must create a TypoScript extension template on each
page an set the default category and default product.

Or you can use an IF clause for TypoScript with [...] brackets. Ask for
the current page and make different default settings.

- Franz



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