[TYPO3-commerce] List products by manufacturer
E. Boer
commerce4me at edbo.xs4all.nl
Tue Jul 17 20:50:32 CEST 2007
Op dinsdag 17-07-2007 om 14:22 uur [tijdzone +0200], schreef Christoph
Nikic:
> Hi,
>
> "place this in your localconf.php"
> ^^^^
Done, now I'm able to display the manufacturer in the singleview. I want
it also in the listview, but I got this not working.
I looked into the tx_commerce_pibase.php and tried several objects to
get the data, but without any luck :-(
In singleview I use:
$singleViewPlugin->product->getField('manufacturer_uid');
In listview I use as test:
$listViewPlugin->category->getField('title');
I have to print it directly with the "echo .."-command to the screen.
Otherwise it won be displayed. Using product instead of category didn't
work.
What am I doing wrong?
Thanks
Eddy
>
> It isnt necessary and recommended to change the commerce-sources
>
> Best regards,
>
> Christoph Nikic
>
> E. Boer schrieb:
> > Hello,
> >
> > Maybe my quesion wasn't clear enough. But I want a list of products from
> > one manufacturer. Category doesn't matter. It seems that this is
> > possible with the help of a hook. I looked around on the list and found
> > some examples of code. The only problem is now, where have I put the
> > code into?
> >
> > E.g. place this in your localconf.php
> >
> > require_once(t3lib_extMgm::extPath($_EXTKEY).'PATH_TO/YOUR_HOOK_CLASS.php');
> > $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/lib/class.tx_commerce_pibase.php']['singleview'][]
> > = 'YOUR_CLASS_NAME';
> >
> > But which localconf.php, from commerce or from my extension? Is it
> > possible to create a very little example of a working hook?
> >
> > Regards,
> >
> > Eddy
> >
> >
> >
> > Op vrijdag 13-07-2007 om 21:01 uur [tijdzone +0200], schreef E. Boer:
> >> Hello all,
> >>
> >> I want to display my products by manufacturer. Building an extension
> >> which displays the manufacturers have been started. An FE-user clicks on
> >> the manufacturername and then a list of products should be diplayed.
> >>
> >> Can I use a hook for this, or should the core be changed?
> >>
> >> Regards,
> >>
> >> Eddy
> >>
> >> _______________________________________________
> >> TYPO3-project-commerce mailing list
> >> TYPO3-project-commerce at lists.netfielders.de
> >> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
> >
> > _______________________________________________
> > TYPO3-project-commerce mailing list
> > TYPO3-project-commerce at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
>
> _______________________________________________
> 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