[Typo3-shop] Howto show a SINGLE product?

redacted name redacted-user at example.org
Thu Dec 23 19:10:15 CET 2004


Volker Graubaum wrote:

> Hi Tim,
> 
> I'm not sure about the param displayCurrentRecord, have a look at it.
> 
> The other way is changing this lines.
> 
> else {
> $this->tt_product_single = $GLOBALS["HTTP_GET_VARS"]["tt_products"];
>  }
> 
> to
> 
> else {
>    $this->tt_product_single = $GLOBALS['HTTP_GET_VARS']['tt_products'];
>    if(!$this->tt_product_single && $this->config['code'] == 'SINGLE'){
>        $this->tt_product_single = $this->conf['defaultProductID'];
>    }
> }
> 
> and add the param 'defaultProductID' to the typoScript Setup for 
> tt_products.
> 
> ( not tried yet, but should work )
> 
> Greetings Volker

Hello,

Made it your way, but absolutely nothing happens. I put 
'defaultProductID = 0' in typo3/ext/tt_products/ext_typoscript_setup.txt 
and override it in my setup with

[globalVar = TSFE:id = 223]
plugin.tt_products.defaultProductID = 41
[global]

for the page http://www.volarte.at/Serie_Cuadros.223.0.html

Do you have one more hint why its not functioning?

Thanks,
Tim




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