[TYPO3-commerce] Multipage Product Listing, Urls, And Navigation....
Luc Muller
l.mul-nospam-ler at ameos.com
Tue Apr 10 17:10:40 CEST 2007
For this purpose I added a hook that will allow to modify LinkArray (and
then get Params) in tx_commerce_pibase
in method : render_product
just before : $wrapMarkerArray['###PRODUCT_LINK_DETAIL###'] =
explode('|',$this->pi_list_linkSingle('|',$myProduct->getUid(),1,$linkArray,FALSE,$this->conf['overridePid']));
$articleTemplate=$this->cObj->getSubpart($template,'###'.strtoupper($articleSubpart).'###');
here is the hook :
if (is_array
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/lib/class.tx_commerce_pibase.php']['product']))
{
foreach
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/lib/class.tx_commerce_pibase.php']['product']
as $classRef) {
$hookObjectsArr[] =
&t3lib_div::getUserObj($classRef);
}
}
foreach($hookObjectsArr as $hookObj) {
if (method_exists($hookObj, 'additionalinkMarker')) {
$linkArray =
$hookObj->additionalinkMarker($linkArray,$myProduct,$this);
}
}
Please tell me what do you think about this... :)
Best Regards
Luc :)
"Luc Muller" <l.mul-nospam-ler at ameos.com> a écrit dans le message de news:
mailman.1.1176199571.30348.typo3-project-commerce at lists.netfielders.de...
> Hi List.
>
> I think this is going to be very specific, but I would like to know if
> someone already meet this case.
>
> I've got one commerce navigation thats stand on every page of the site
> (commerce and non-commerce page)
> I need to display a product listing of "new product" on a page that is
> different from my regular commerce page.
>
> that mean I've got two pages, with plugin commerce
> one display my General category, one display my New category
>
> I place every product inside the general category (and sub) and
> specificaly new product also inside the new category.
>
> But when I go to the "new product" page, in the listing the product link
> is not generated with category GET params
> and this result in the losing of the path on the navigation when I go on
> the product page.
>
> Does anyone has to display product listing on several page ?
>
> I think I'm going to hook the display of product listing in order to add
> the category Get params that will allow to find the correct depth in
> navigation ?
>
> do you think there could be other method to get the category of the
> product when within another product listing page ?
>
> did you understand what I mean ? lol
>
More information about the TYPO3-project-commerce
mailing list