[Typo3-shop] Howto show a SINGLE product?

redacted name redacted-user at example.org
Thu Dec 23 19:35:22 CET 2004


redacted name wrote:

> 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
> 
Got it!
it was in the wrong place and double quotation must be used:


function products_display($theCode, $memoItems=""){
$formUrl = $this->getLinkUrl($this->conf["PIDbasket"]);

if (!$this->tt_product_single && ($theCode=="SINGLE"))	{
	$this->tt_product_single = $this->conf["defaultProductID"];
}

if ($this->tt_product_single && ($theCode=="SINGLE"))	{
$this->setPidlist($this->config["storeRootPid"]);
	$this->initRecursive(999);
	$this->generatePageArray();

.
.
.
.


Thank you and merry christmas!
Tim



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