[TYPO3-shop] Problems with additional marker
Franz Holzinger
franz at ttproducts.de
Tue Jul 14 12:42:50 CEST 2009
Ines Willenbrock a écrit :
> Installing the Extension to a fresh test-system didn't help. I would
> appreciate it, if anybody could point me to my mistake, somehow I seem
> to blind or to inexperienced to find it.
>
> regards, Ines
>
>>> Ines Willenbrock a écrit :
>>>> Thank you, Franz, for your reply.
>>>> I'm feeling rather stupid, but somehow it doesn't help. Shall I
>>>> attach my attempt to write an extension?
>>>>
>>>> I'm using TYPO3 4.2.8 and tt_products 2.6.0 from ter.
There are several mistakes:
1. tt_products 2.8.0 uses a different hook:
Add this into user_ttproducts_test/localconf.php
$TYPO3_CONF_VARS['EXTCONF']['tt_products']['PRODUCT'][] =
'EXT:user_ttproducts_test/hooks/class.tx_ttproducts_markeradd.php:user_ttproducts_markeradd';
There is a hook class now instead of only for a method.
2. The class name must start with a user_ on the beginning.
class user_ttproducts_markeradd
3. no ; at the end of the method:
function getRowMarkerArray($pObj, &$markerArray, &$item, $catTitle,
$imageNum, $imageRenderObj, $forminfoArray, $code, $id)
4. The end of the file must be
?>
- Franz
More information about the TYPO3-project-tt-products
mailing list