Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3-shop] tt_products 2.7.0 within the typo3-project-tt-products@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi All, I just upgraded to 2.7.0 of tt_products (previous 2.5.5) and there are only two ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi All,
I just upgraded to 2.7.0 of tt_products (previous 2.5.5) and there are only two problems. 1. The price2 markers were not implemented yet wich i could resolve pretty easly. (If anyone needs help with this please mail!) 2. The 'paymentActivity = customized' does not work. I see in the documentation this option is not available but this was also in the previous version. With only a few adjustments to the code in the previous version i made it work but now i can't find why it is going wrong. The error i receive is this : tt_products: $this->pibase and $this->pibase->cObj must be objects! We use this option to implement our own payment service iDeal wich worked great in version 2.5.5 . Does someone have an idea what the problem could be? Maybe I need to post more info? I hope Franz has an idea? Thnx in advanced! _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#2
|
|||
|
|||
|
Hello,
Matt Sturkenboom a écrit : > I just upgraded to 2.7.0 of tt_products (previous 2.5.5) and there are > only two problems. > > 1. The price2 markers were not implemented yet wich i could resolve > pretty easly. (If anyone needs help with this please mail!) priceNoReseller = 2 > 2. The 'paymentActivity = customized' does not work. I see in the > documentation this option is not available but this was also in the > previous version. > With only a few adjustments to the code in the previous version i made > it work but now i can't find why it is going wrong. > The error i receive is this : tt_products: $this->pibase and > $this->pibase->cObj must be objects! Where is this in the most current tt_products 2.7.0? > We use this option to implement our own payment service iDeal wich > worked great in version 2.5.5 . - Franz _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#3
|
|||
|
|||
|
2008/9/23 Franz Holzinger <franz (AT) fholzinger (DOT) com>:
> Hello, > > Matt Sturkenboom a écrit : > >> I just upgraded to 2.7.0 of tt_products (previous 2.5.5) and there are >> only two problems. >> >> 1. The price2 markers were not implemented yet wich i could resolve >> pretty easly. (If anyone needs help with this please mail!) > > priceNoReseller = 2 > >> 2. The 'paymentActivity = customized' does not work. I see in the >> documentation this option is not available but this was also in the >> previous version. >> With only a few adjustments to the code in the previous version i made >> it work but now i can't find why it is going wrong. >> The error i receive is this : tt_products: $this->pibase and >> $this->pibase->cObj must be objects! > > Where is this in the most current tt_products 2.7.0? I had to use the code of the paymentlib_dibs file. So the error is solved. Now i have an other problem because my template wil not show. I think i have an idea where the problem is because i can output the content with an echo. > >> We use this option to implement our own payment service iDeal wich >> worked great in version 2.5.5 . > > - Franz > > > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#4
|
|||
|
|||
|
2008/9/23 Franz Holzinger <franz (AT) fholzinger (DOT) com>:
> Hello, > > Matt Sturkenboom a écrit : > >> I just upgraded to 2.7.0 of tt_products (previous 2.5.5) and there are >> only two problems. >> >> 1. The price2 markers were not implemented yet wich i could resolve >> pretty easly. (If anyone needs help with this please mail!) > > priceNoReseller = 2 > >> 2. The 'paymentActivity = customized' does not work. I see in the >> documentation this option is not available but this was also in the >> previous version. >> With only a few adjustments to the code in the previous version i made >> it work but now i can't find why it is going wrong. >> The error i receive is this : tt_products: $this->pibase and >> $this->pibase->cObj must be objects! > > Where is this in the most current tt_products 2.7.0? I had to use the code of the paymentlib_dibs file. So the error is solved. Now i have an other problem because my template wil not show. I think i have an idea where the problem is because i can output the content with an echo. > >> We use this option to implement our own payment service iDeal wich >> worked great in version 2.5.5 . > > - Franz > > > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#5
|
|||
|
|||
|
This is my config for the payment :
90.title = iDEAL. 90.handleScript = fileadmin/payments/code/payment.php 90.image.file = fileadmin/img/ideal_logo.jpg 90.handleScript { returnURL = http://www.safesupport.eu templateFile = fileadmin/templates/shop/ideal.tmpl } And the code that is in payment.php is very much the same like in payment_dibs.php. And the problem is the content of the template does not show? If I echo the content I see he reads it but it does not show. If it helps I can also post the payment.php code. Franz do you have an idea. Gr, Matthew 2008/9/25 Matt Sturkenboom <m.sturkenboom (AT) gmail (DOT) com>: > 2008/9/23 Franz Holzinger <franz (AT) fholzinger (DOT) com>: >> Hello, >> >> Matt Sturkenboom a écrit : >> >>> I just upgraded to 2.7.0 of tt_products (previous 2.5.5) and there are >>> only two problems. >>> >>> 1. The price2 markers were not implemented yet wich i could resolve >>> pretty easly. (If anyone needs help with this please mail!) >> >> priceNoReseller = 2 >> >>> 2. The 'paymentActivity = customized' does not work. I see in the >>> documentation this option is not available but this was also in the >>> previous version. >>> With only a few adjustments to the code in the previous version i made >>> it work but now i can't find why it is going wrong. >>> The error i receive is this : tt_products: $this->pibase and >>> $this->pibase->cObj must be objects! >> >> Where is this in the most current tt_products 2.7.0? > > I had to use the code of the paymentlib_dibs file. So the error is > solved. Now i have an other problem because my template wil not show. > I think i have an idea where the problem is because i can output the > content with an echo. > > >> >>> We use this option to implement our own payment service iDeal wich >>> worked great in version 2.5.5 . >> >> - Franz >> >> >> _______________________________________________ >> TYPO3-project-tt-products mailing list >> TYPO3-project-tt-products (AT) lists...netfielders.de >> http://lists.netfielders.de/cgi-bin/...ct-tt-products >> > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#6
|
|||
|
|||
|
Matt Sturkenboom a écrit :
> This is my config for the payment : > > 90.title = iDEAL. > 90.handleScript = fileadmin/payments/code/payment.php > 90.image.file = fileadmin/img/ideal_logo.jpg > 90.handleScript { > returnURL = http://www.safesupport.eu > templateFile = fileadmin/templates/shop/ideal.tmpl > } > > And the code that is in payment.php is very much the same like in > payment_dibs.php. > And the problem is the content of the template does not show? If I > echo the content I see he reads it but it does not show. > > If it helps I can also post the payment.php code. Yes, you shall also send the file payment.php to check it. - Franz _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#7
|
|||
|
|||
|
This is the code of payment.php and when I echo the content I see i
reads the template file but i it does not show it: if (!is_object($pibase) || !is_object($this->cObj) || !is_object($this->basket)) die('tt_products: $pibase and $pibase->cObj must be objects!'); // $lConf = $this->basketExtra["payment."]["handleScript."]; // Loads the handleScript TypoScript into $lConf. $lConf = $confScript; $localTemplateCode = $this->cObj->fileResource($lConf['templateFile'] ? $lConf['templateFile'] : 'EXT:tt_products/template/payment_DIBS_template.tmpl'); // Fetches the DIBS template file if (!is_object($basketView)) { $error_code = ''; $basketView = &t3lib_div::getUserObj('tx_ttproducts_basket_view' ,1); $basketView->init ($pibase, array(), FALSE, $this->templateCode, $error_code); } $markerObj = &t3lib_div::getUserObj('&tx_ttproducts_marker') ; $localTemplateCode = $this->cObj->substituteMarkerArrayCached($localTemplateCode, $markerObj->getGlobalMarkerArray()); $tablesObj = &t3lib_div::getUserObj('&tx_ttproducts_tables') ; $order = &$tablesObj->get('sys_products_orders'); $orderUid = $order->getBlankUid(); // Gets an order number, creates a new order if no order is associated with the current session $param = '&FE_SESSION_KEY='.rawurlencode( $GLOBALS['TSFE']->fe_user->id.'-'. md5( $GLOBALS['TSFE']->fe_user->id.'/'. $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] ) ); //echo "tc : " .$localTemplateCode; //echo "bedrag : ".round($this->basket->calculatedArray['priceTax']['total']*100); //echo "Order : ".$this->order->getNumber($orderUid); $content=$basketView->getView($localTemplateCode, 'PAYMENT', $infoViewObj, false, false, false, '###IDEAL_STEP1_TEMPLATE###',$markerArray); $markerArray=array(); $markerArray['###ORDER_ID###'] = $order->getNumber($orderUid); $content=$pibase->cObj->substituteMarkerArrayCached($content, $markerArray); 2008/9/26 Franz Holzinger <franz (AT) fholzinger (DOT) com>: > Matt Sturkenboom a écrit : >> This is my config for the payment : >> >> 90.title = iDEAL. >> 90.handleScript = fileadmin/payments/code/payment.php >> 90.image.file = fileadmin/img/ideal_logo.jpg >> 90.handleScript { >> returnURL = http://www.safesupport.eu >> templateFile = fileadmin/templates/shop/ideal.tmpl >> } >> >> And the code that is in payment.php is very much the same like in >> payment_dibs.php. >> And the problem is the content of the template does not show? If I >> echo the content I see he reads it but it does not show. >> >> If it helps I can also post the payment.php code. > > Yes, you shall also send the file payment.php to check it. > > - Franz > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#8
|
|||
|
|||
|
Matt Sturkenboom a écrit :
> This is the code of payment.php and when I echo the content I see i > reads the template file but i it does not show it: Change in view/class.tx_ttproducts_basket_view.php: $markerArray = array(); if (isset($mainMarkerArray) && is_array($mainMarkerArray)) { $markerArray = array_merge($markerArray, $mainMarkerArray); } But in your script you generate some output. I cannot see this, because I do not have the file ideal.tmpl . - Franz _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#9
|
|||
|
|||
|
The code didn't solved the problem. I hope you understand what the problem is?
The script payment.php gets called and when i put an 'echo $content' at the end of the script the content gets displayed at the top of the browser. Like this: <div id=ideal> test... </div> <html> <head> .......etc So it looks like the content is replaced later. 2008/9/26 Franz Holzinger <franz (AT) fholzinger (DOT) com>: > Matt Sturkenboom a écrit : >> This is the code of payment.php and when I echo the content I see i >> reads the template file but i it does not show it: > > Change in view/class.tx_ttproducts_basket_view.php: > > > $markerArray = array(); > if (isset($mainMarkerArray) && is_array($mainMarkerArray)) { > $markerArray = array_merge($markerArray, $mainMarkerArray); > } > > > But in your script you generate some output. I cannot see this, because > I do not have the file ideal.tmpl . > > > - Franz > > > > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#10
|
|||
|
|||
|
I got it working now!
in *_control.php I changed the following : This : $mainMarkerArray['###MESSAGE_PAYMENT_SCRIPT###'] = $this->processPayment($bFinalize, $basketView, $infoViewObj); To this: $content .= $this->processPayment($bFinalize, $basketView, $infoViewObj); 2008/9/26 Matt Sturkenboom <m.sturkenboom (AT) gmail (DOT) com>: > The code didn't solved the problem. I hope you understand what the problem is? > The script payment.php gets called and when i put an 'echo $content' > at the end of the script the content gets displayed at the top of the > browser. > > Like this: > > <div id=ideal> > test... > </div> > <html> > <head> > ......etc > > So it looks like the content is replaced later. > > > > 2008/9/26 Franz Holzinger <franz (AT) fholzinger (DOT) com>: >> Matt Sturkenboom a écrit : >>> This is the code of payment.php and when I echo the content I see i >>> reads the template file but i it does not show it: >> >> Change in view/class.tx_ttproducts_basket_view.php: >> >> >> $markerArray = array(); >> if (isset($mainMarkerArray) && is_array($mainMarkerArray)) { >> $markerArray = array_merge($markerArray, $mainMarkerArray); >> } >> >> >> But in your script you generate some output. I cannot see this, because >> I do not have the file ideal.tmpl . >> >> >> - Franz >> >> >> >> _______________________________________________ >> TYPO3-project-tt-products mailing list >> TYPO3-project-tt-products (AT) lists...netfielders.de >> http://lists.netfielders.de/cgi-bin/...ct-tt-products >> > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ 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] tt_products 2.7.0 , mbi_products_categories | Thorsten Orth | typo3-project-tt-products@lists.netfielders.de | 4 | 11.07.2008 17:02 |
| [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] Questions about using VAT in tt_products | Eef Weenink | typo3-project-tt-products@lists.netfielders.de | 1 | 16.05.2007 07:53 |
| [TYPO3-shop] tt_products and RealURL | Alexander | typo3-project-tt-products@lists.netfielders.de | 3 | 17.04.2007 21:58 |
| [TYPO3-shop] ability tt_products | Igor Pstyga | typo3-project-tt-products@lists.netfielders.de | 7 | 15.01.2007 10:06 |