[TYPO3-commerce] rootline

Niels Kipp niels at egnite.de
Mon Apr 16 18:04:57 CEST 2007


I think the bug is in the
class tx_commerce_db_category
function get_parent_category($uid)

line 82: if (is_int($uid) && ($uid > 0)){

I found out that $uid is not an int. I changed it to

if ($uid > 0){

and it worked :-)

Niels Kipp



> yes seems so that only products are now in rootline.
>
> special.showCategories = 1 has no effect.
>
> A workaround:
>
> in class.tx_commerce_navigation.php->getCategoryRootlineforTS{
> 	$this->category = -1; // add this line
>
> I have absolutly no idea what I am doing here, it works but you should 
> not use it ;)
>
> Problem is:
> 	if ($CategoryObject->parent_category_uid <> $this->category )
> where $this->category is not set.
>
> Regards
> Andreas
>
> Sebastian Schwill wrote:
>   
>> i have added the following ts-code
>> lib.tx_commerce.rootline  = HMENU
>> lib.tx_commerce.rootline {
>>     special = userfunction
>>     special.userFunc =  user_tx_commerce_catmenu_pub->CommerceRootline
>>     special{
>>        #// Root category for the display
>>        category = {$plugin.tx_commerce_lib.catUid}
>>        #// zeige Producte
>>        showProducts = 0
>>        showCategories = 1
>>        #// PID for displaying the products
>>        overridePid = {$plugin.tx_commerce_lib.overridePid}
>>       
>>      
>>     }
>>     1 = TMENU
>>     1.NO.linkWrap = |*|| > |*||
>>   
>> }
>> page.10.marks.INHALT.marks.INHALT{
>>  20 = TEXT
>>  20.data  >
>>  20.wrap (
>>   <br /><br /><br />
>>  )
>>  30 < lib.tx_commerce.rootline
>>  5 < .20
>>  4 < .30
>> }
>>
>>
>> Dear Sebastian,
>>
>>     
>>> hi,
>>> i downloaded from sourcefrog all the files an bulild a new svn version. after updating it to typo, the rootline is not shown correct any more. now only the artikles are shown.
>>> is there a trick to maky it worke right?
>>>       
>> did you add the new TS?
>>
>> ingo
>>
>>
>> Mit freundlichen Gruessen
>>     
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
>   




More information about the TYPO3-project-commerce mailing list