[TYPO3-commerce] products as menu sub-items

alessandro amerio alessandro.amerio at yahoo.it
Tue Mar 16 12:24:28 CET 2010


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:


temp.menu_1=HMENU
temp.menu_1.1=TMENU
temp.menu_1.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>
}
temp.menu_1.2=TMENU
temp.menu_1.2{
  NO.allWrap=<divclass="menu1-level2-no">|</div>
  NO.stdWrap.htmlSpecialChars=1
  ACT=1
  ACT.stdWrap.htmlSpecialChars=1
  ACT.allWrap=<divclass="menu1-level2-act">|</div>
}


that gives me this menu:
  - home
  - contacts
    > history
    > address
  - products
    > categ one
    > categ two

but, as you understood, I would like to show products in relatives categories
  - home
  - contacts
    > history
    > address
  - products (pid=25)
    > categ one
      * prod one
      * prod two
    > categ two
      * prod three

To do this I try to modify the setup in different way but without success...for example like this:


# THESE LINES ARE LIKE BEFORE
temp.menu_1=HMENU
temp.menu_1.1=TMENU
temp.menu_1.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>
}
temp.menu_1.2=TMENU
temp.menu_1.2{
  NO.allWrap=<divclass="menu1-level2-no">|</div>
  NO.stdWrap.htmlSpecialChars=1
  ACT=1
  ACT.stdWrap.htmlSpecialChars=1
  ACT.allWrap=<divclass="menu1-level2-act">|</div>
}

# AND THESE ARE THE NEW ADDED LINES
includeLibs.user_tx_commerce_catmenu_pub=typo3conf/et/commerce/lib/class.tx_commerce_navigation.php
lib.tx_commerce.rootline  =HMENU
lib.tx_commerce.rootline{
  special=userfunction
  special.userFunc=  user_tx_commerce_catmenu_pub->CommerceRootline
  special{
    category={$plugin.tx_commerce_lib.catUid}
    showProducts=1
    overridePid={$plugin.tx_commerce_lib.overridePid}
  }
  1=TMENU
  1.NO.linkWrap=|*||>|*||
}
[PIDinRootline = 25]
temp.menu_1.2{
  ACT {
    after.cObject = HMENU
    after.cObject <lib.tx_commerce.rootline
  }
}
[END]

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



      


More information about the TYPO3-project-commerce mailing list