[TYPO3-commerce] products as menu sub-items
alessandro amerio
alessandro.amerio at yahoo.it
Thu Mar 18 12:21:36 CET 2010
Thank you again for your answer but it doesn't work, I think I'm on the wrong way.
I've to make it build the whole product tree with also the categories...But I think I can't because I fail the {$plugin.tx_commerce_lib.catUid}.
Could you tell me how I can find the pid of my "rootof the visible product tree"?
BTW: my setup for build the categories and products is the following:
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 = <ul class="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
}
seems to be right?
Really really thank you again
alessandro
________________________________
Da: Morten Olesen <mo at idefa.dk>
A: typo3-project-commerce at lists.typo3.org
Inviato: Gio 18 marzo 2010, 10:04:29
Oggetto: Re: [TYPO3-commerce] products as menu sub-items
Hi Alessandro,
Something like;
var = GPvar : tx_commerce_pi1 | catUid
should work
/Morten Olesen
alessandro amerio wrote:
> Hi Mortenand and thank you very much for your answer!
>
> Ok I understand, I was so wrong, but I can't understand how I can pass the category which I clicked on: now I've done my category pages using as content "Commerce: Product Listing" and selecting for each one his category. But what should I do to generate both category and products? I'm getting crazy with this!
>
> Thank you all for any new suggest!
>
>
> alessandro
>
>
>
> ________________________________
> Da: Morten Olesen <mo at idefa.dk>
> A: typo3-project-commerce at lists.typo3.org
> Inviato: Gio 18 marzo 2010, 08:47:34
> Oggetto: Re: [TYPO3-commerce] products as menu sub-items
>
> Hi Alessandro,
>
> alessandro amerio wrote:
>> 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?
>
> you calling a constant and supprised that it is unchanged?
>
> plugin.txt_commerce_lib.catUid is the base category you chose ( the root of the visible product tree )
>
>
> /Morten Olesen
> _______________________________________________
> 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