| Author | Message |
|---|---|
|
Written on: 23. 05. 2011 [13:04]
|
|
|
Bravehartk2
Marcel
Topic creator
registered since: 11.02.2011
Posts: 3
|
Hallo, I have successsfully installed TypoGento and it works fine. But there is one thing I cannot figure out: The cart-sidebar that I have inserted via Typoscript on every page (in the head), on some pages don´t show the correct data (wrong subtotal / qty). On category-listings or on product-detail- pages it works as aspected, but not on cms-pages, even if there are magento-blocks inside these pages (also includes via TS). Perhaps somebody can give me a hint to solve this problem. My installation: TypoGento: 1.0 Mage: 1.4.1.1 Typo3: 4.4.5 |
|
Written on: 23. 05. 2011 [17:02]
|
|
|
Bravehartk2
Marcel
Topic creator
registered since: 11.02.2011
Posts: 3
|
Hallo again, I have found out, that it is nesseccary to include at leat one plugin content-Element on each cms-page to get it work. But when i try to include the magento plugin from the root-page via TypoScript (RECORDS), the plugin shows a page-not-fount message,even when i use an own controller und action in the flexform, tah actuelle do nothing than loadLayout() and renderLayout(). When I take the same plugin configurations(FlexFormValues) on every cms-page, it works well. How can i force the Typo3-plugin to include the instanze from root-page on every page? |
|
Written on: 23. 05. 2011 [19:31]
|
|
|
Bravehartk2
Marcel
Topic creator
registered since: 11.02.2011
Posts: 3
|
Have found a solution, that is not nice but it works for me In an XCLASS of the plugin I redifined the method getRoutingDataFromPage PHP protected function getRoutingDataFromPage(){
$rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('pi_flexform', 'tt_content', 'pid=\''.$GLOBALS ['TSFE']->id.'\' AND list_type=\'fb_magento_pi1\' '.$this->cObj->enableFields('tt_content'), 'sorting');
//t3lib_div::debug($this->rootLine,'$this->conf[\'copypid\']');
if(count($rows) == 0){
//t3lib_div::debug($select, '$select');
$rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('pi_flexform', 'tt_content', 'pid=\'1\' AND list_type=\'fb_magento_pi1\' '.$this->cObj->enableFields('tt_content'), 'sorting');
}
foreach ((array) $rows as $row){
if(!$row['pi_flexform']) continue;
$this->cObj->data['pi_flexform'] = t3lib_div:<img src="typo3conf/ext/mm_forum//res/smilies/icon_mad.gif" alt="icon_mad.gif" />ml2array($row['pi_flexform']);
$this->view = $this->pi_getFFvalue ( $this->cObj->data ["pi_flexform"], 'show', 'main' );
if($this->view){
return true;
}
}
return false;
}And append a plugin instance on every page via Typoscript, except those who already hav the plugin. In the siteroot i have an instance of the plugin that calls my dummy-controller with its dummy action that do only load the layout and reders it. TYPOSCRIPT [globalVar = TSFE:id=3, TSFE:id=35, TSFE:id=70, TSFE:id=81, TSFE:id=126, TSFE:id=132, TSFE:id=133, TSFE:id=158] [else] page.15 = TEXT page.15.value = <div class="dummy"> page.20 = USER_INT page.20.userFunc = tx_fbmagento_pi1->main page.20.copy = 1 page.25 = TEXT page.25.value = </div> [global] Sorry for my bad english [This article was edited 1 times, at last 23.05.2011 at 19:32.] |
|
Written on: 28. 06. 2011 [01:27]
|
|
|
TomTime
Tom
registered since: 26.06.2011
Posts: 2
|
Hello, can you explain, how do you integrate the cart_sidebar in the header on any side in typo? You would help me very much. Thanks Tom |