[TYPO3-commerce] products as menu sub-items

alessandro amerio alessandro.amerio at yahoo.it
Wed Mar 17 18:04:18 CET 2010


ok i was in a wrong way, now it works better but I have still a problem: the code {$plugin.tx_commerce_lib.catUid} always return me the same number (2) instead of the category which I clicked on, can't understand the why.
What I'm doing wrong?
Thank you very much if you can help me! :)

The following in my setup:

includeLibs.user_tx_commerce_catmenu_pub=typo3conf/ext/commerce/lib/class.tx_commerce_navigation.php

# product subpart menu
temp.catmenu = HMENU
temp.catmenu {
  special = userfunction
  special.userFunc = user_tx_commerce_catmenu_pub->init   
  special {
    category = {$plugin.tx_commerce_lib.catUid}
    showProducts =1
    overridePid = {$plugin.tx_commerce_lib.overridePid}
  }
  1 = TMENU
  1 {
    wrap = <ulclass="mainmenu">|</ul>
    itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
    expAll = 1
    noBlur = 1
    NO.wrapItemAndSub = <li>|</li>
    ACT = 1
    ACT.wrapItemAndSub = <li>|</li>
  }
  2 < .1
  3 < .1
}


# site menu
temp.mainmenu=HMENU
temp.mainmenu{
  1=TMENU
  1{
    expAll=1
    NO.allWrap=<divclass="menu1-level1-no">|</div>
    NO.stdWrap.htmlSpecialChars=1
    ACT=1
    ACT.stdWrap.htmlSpecialChars=1
    ACT.allWrap=<divclass="menu1-level1-act">|</div>
  }
  2=TMENU
  2{
    expAll=1
    NO.allWrap=<divclass="menu1-level2-no">|</div>
    NO.stdWrap.htmlSpecialChars=1
    ACT=1
    ACT.stdWrap.htmlSpecialChars=1
    ACT.allWrap=<divclass="menu1-level2-act">|</div>
  }
  3=TMENU
  3{
    expAll=1
    NO.allWrap=<divclass="menu1-level3-no">|</div>
    NO.stdWrap.htmlSpecialChars=1
    ACT=1
    ACT.stdWrap.htmlSpecialChars=1
    ACT.allWrap=<divclass="menu1-level3-act">|</div>
  }
}


# pid 86 of products page
[PIDinRootline = 86]
temp.mainmenu.2{
  ACT{
    after.cObject=HMENU
    after.cObject<temp.catmenu
  }
}
[END]






________________________________
Da: alessandro amerio <alessandro.amerio at yahoo.it>
A: TYPO3 commerce extension project <typo3-project-commerce at lists.typo3.org>
Inviato: Mar 16 marzo 2010, 12:24:28
Oggetto: Re: [TYPO3-commerce] products as menu sub-items

Thank you very much Ingo!
That's very useful but it insn't enough for me :(

I start with this setup for my working menu:

<...>

but the result is always the same, I never can see the products tree in the menu :(

What I'm doing wrong? Maybe I've to write also some php? Or am I missing someting?
Please you can save me! :)
Thak you very much!!!

ale



________________________________
Da: Ingo Schmitt <is at marketing-factory.de>
A: TYPO3 commerce extension project <typo3-project-commerce at lists.typo3.org>
Inviato: Lun 15 marzo 2010, 17:59:48
Oggetto: Re: [TYPO3-commerce] products as menu sub-items

Hi Alessandro,

this is possible. Have a look at the TYPOScript variables in setup.txt

Ingo

> 
> Unfortunately I'm new with TYPO3 and Commerce extension, anyway, I've installed it and I've my categories and my products.
> 
> I've done a menu with categories as sub-items and clicking on them I can see on the right the list of products for that categories. Something like this:
> - products
>> category_one
>> category_two
> 
> Now I would like to make a dynamic sub-sub-menu with the products under the category, but I'm getting crazy looking for the right way. To be more clear, it should be like this:
> - products
>> category_one
>      * product one of categoty one
>      * product two of categoty one
>      * product three of categoty one
>> category_two
>      * product one of categoty two 
>      * product two of categoty two 
> and clicking on the product should show me the product page on the right.
> 
> Is this possible?
> 
> Thak you all for any help!
> 
> 
> 
> 
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
> 
> 


Mit freundlichen Gruessen
Ingo Schmitt

-- 
Marketing Factory Consulting GmbH  *   mailto:is at marketing-factory.de
Stephanienstrasse 36               *          Tel.: +49 211-361176-63
D-40211 Duesseldorf, Germany       *          Fax:  +49 211-361176-99
Amtsgericht Duesseldorf HRB 53971  * http://www.marketing-factory.de/

Geschaeftsfuehrer:    Peter Faisst   |   Katja Faisst
Karoline Steinfatt   |   Christoph Allefeld   |   Markus M. Kimmel

_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce



      
_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce



      


More information about the TYPO3-project-commerce mailing list