Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3-shop] Extend tt_products is not working within the typo3-project-tt-products@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi, I am usually not that bad with extensions but it is kind of not working to extend tt_products. The ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi,
I am usually not that bad with extensions but it is kind of not working to extend tt_products. The new fields are not visible in $row. The fields are shown in the backend form of a record and the hook is called because my print_r is working. My code ----------------------- ext_localconf.php require_once(t3lib_extMgm::extPath($_EXTKEY).'clas s.tx_rgmediaimages_products.php'); $TYPO3_CONF_VARS['EXTCONF']['tt_products']['extendingTCA'][] = $_EXTKEY; $TYPO3_CONF_VARS['EXTCONF']['tt_products']['PRODUCT'][] = t3lib_extMgm::extPath($_EXTKEY).'class.tx_rgmediai mages_products.php:&tx_rgmediaimages_products'; ----- class.tx_rgmediaimages_products.php class tx_rgmediaimages_products { function getItemMarkerArray (&$pObj, &$markerArray, $item, $catTitle, $imageNum, $imageRenderObj, $formInfoArray, $code, $id) { $row = $item['rec']; print_r($row); ... ----------------------- Of course there are the <?php tags and every bracket closed. What did I miss? thanks Georg _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#2
|
|||
|
|||
|
Hi Gregor,
I just had the same problem. You have to update the TS-setup like plugin.tt_products { .... conf.tt_products.ALL { requiredFields = uid,pid,category,price,price2,tax,inStock,yourfiel d1,yourfield2, ... } .... } I hope, that would help you. best regards Thorsten Georg Ringer schrieb: > Hi, > > I am usually not that bad with extensions but it is kind of not working > to extend tt_products. The new fields are not visible in $row. The > fields are shown in the backend form of a record and the hook is called > because my print_r is working. > > My code > ----------------------- > ext_localconf.php > require_once(t3lib_extMgm::extPath($_EXTKEY).'clas s.tx_rgmediaimages_products.php'); > > > $TYPO3_CONF_VARS['EXTCONF']['tt_products']['extendingTCA'][] = $_EXTKEY; > $TYPO3_CONF_VARS['EXTCONF']['tt_products']['PRODUCT'][] = > t3lib_extMgm::extPath($_EXTKEY).'class.tx_rgmediai mages_products.php:&tx_rgmediaimages_products'; > > > ----- > > class.tx_rgmediaimages_products.php > > class tx_rgmediaimages_products { > > function getItemMarkerArray (&$pObj, &$markerArray, $item, > $catTitle, $imageNum, $imageRenderObj, $formInfoArray, $code, $id) { > > $row = $item['rec']; > print_r($row); > ... > > ----------------------- > > Of course there are the <?php tags and every bracket closed. > > What did I miss? > > thanks > Georg _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#3
|
|||
|
|||
|
Sorry for "Gregor"
- Georg!!!!Thorsten Orth schrieb: > Hi Gregor, > > I just had the same problem. > You have to update the TS-setup like > > plugin.tt_products { > ... > conf.tt_products.ALL { > > requiredFields = > uid,pid,category,price,price2,tax,inStock,yourfiel d1,yourfield2, ... > } > ... > } > > I hope, that would help you. > > > best regards > > Thorsten > > Georg Ringer schrieb: >> Hi, >> >> I am usually not that bad with extensions but it is kind of not >> working to extend tt_products. The new fields are not visible in $row. >> The fields are shown in the backend form of a record and the hook is >> called because my print_r is working. >> >> My code >> ----------------------- >> ext_localconf.php >> require_once(t3lib_extMgm::extPath($_EXTKEY).'clas s.tx_rgmediaimages_products.php'); >> >> >> $TYPO3_CONF_VARS['EXTCONF']['tt_products']['extendingTCA'][] = $_EXTKEY; >> $TYPO3_CONF_VARS['EXTCONF']['tt_products']['PRODUCT'][] = >> t3lib_extMgm::extPath($_EXTKEY).'class.tx_rgmediai mages_products.php:&tx_rgmediaimages_products'; >> >> >> ----- >> >> class.tx_rgmediaimages_products.php >> >> class tx_rgmediaimages_products { >> >> function getItemMarkerArray (&$pObj, &$markerArray, $item, >> $catTitle, $imageNum, $imageRenderObj, $formInfoArray, $code, $id) { >> >> $row = $item['rec']; >> print_r($row); >> ... >> >> ----------------------- >> >> Of course there are the <?php tags and every bracket closed. >> >> What did I miss? >> >> thanks >> Georg _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#4
|
|||
|
|||
|
Hi Thorsten,
> plugin.tt_products { > ... > conf.tt_products.ALL { > > requiredFields = > uid,pid,category,price,price2,tax,inStock,yourfiel d1,yourfield2, ... > } > ... > } Thanks so much! I would have never found that! Georg _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-shop] Qty based percentage discount not working,and exception for some products | Juan Pablo Villaverde | typo3-project-tt-products@lists.netfielders.de | 2 | 25.07.2008 08:47 |
| [TYPO3-shop] Alternative Language not working for me | Juan Pablo Villaverde | typo3-project-tt-products@lists.netfielders.de | 2 | 20.12.2007 00:59 |
| [TYPO3-shop] doubt about tt_products.CSS.tt_products.LIST.row.even | Augusto Sacchetto | typo3-project-tt-products@lists.netfielders.de | 1 | 17.10.2007 09:56 |
| [TYPO3-shop] Multi-Language in tt_products working? | Alexander Pelzl | typo3-project-tt-products@lists.netfielders.de | 2 | 17.10.2007 09:44 |
| [TYPO3-shop] tt_products insert record not working anymore | Sscha Falger | typo3-project-tt-products@lists.netfielders.de | 2 | 17.03.2007 00:20 |