[TYPO3-commerce] Problem with Commerce payment method
Fam Maier
blaugelb at t-online.de
Sat Apr 6 16:40:53 CEST 2013
Hi Georg,
yes it is still the same error message, tried " defaultPaymentArticleId =1"
in ext-config and in Main-config without conditions.
Some other possibilities?
Regards, Gregor
-----Ursprüngliche Nachricht-----
Von: typo3-project-commerce-bounces at lists.typo3.org
[mailto:typo3-project-commerce-bounces at lists.typo3.org] Im Auftrag von Georg
Schönweger
Gesendet: Mittwoch, 3. April 2013 14:30
An: TYPO3 commerce extension project
Betreff: Re: [TYPO3-commerce] Problem with Commerce payment method
Am 03.04.2013 13:42, schrieb Fam Maier:
> Hi Georg,
> the german part is working well, i can put articles in to cart as
> well. My problem is the english part of the page, only there is the
problem.
> I tried your work around without conditions but I wonder what it will
> do, because this part is working (uid of the default language, in my
> case german).
so is it working in german AND english if you don't use conditions; just
with plugin.tx_commerce_pi2.defaultPaymentArticleId =1 ?
I mean if you go to englich version of your frontend, is the error message
gone with this setting?
regards,
Georg
> I need the workarounf for the english version:
> plugin.tx_commerce_pi2.defaultPaymentArticleId =1 working, german part
> plugin.tx_commerce_pi2.defaultPaymentArticleId =6 (depends as an
> translation to the german payment article with the uid 6) not working
>
> Hope you get me right, sorry
> Gregor
>
>
> -----Ursprüngliche Nachricht-----
> Von: typo3-project-commerce-bounces at lists.typo3.org
> [mailto:typo3-project-commerce-bounces at lists.typo3.org] Im Auftrag von
> Georg Schönweger
> Gesendet: Mittwoch, 3. April 2013 12:55
> An: TYPO3 commerce extension project
> Betreff: Re: [TYPO3-commerce] Problem with Commerce payment method
>
> Try to put
> plugin.tx_commerce_pi2.defaultPaymentArticleId = x x = the uid of the
> default language (in your case german?) payment record
>
> as far as i remember it should not be necessary to make a condition
> just for plugin.tx_commerce_pi2.defaultPaymentArticleId
>
> regards,
> Georg
>
> Am 03.04.2013 12:04, schrieb Fam Maier:
>> Thanks Georg,
>> in the german version it's not a problem, the problem is the english
>> version. When i add your hint into the L=3 global part of the english
>> version it won't work.
>> Its really a problem of the new commerce 12.x.x in common with the
>> tr_language extension I think.
>> plugin.tx_commerce_pi2.defaultPaymentArticleId = x is the uid from
>> the first English payment record like "select a payment record" right?
>> So it's not working in this case.
>>
>> Greets Gregor
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: typo3-project-commerce-bounces at lists.typo3.org
>> [mailto:typo3-project-commerce-bounces at lists.typo3.org] Im Auftrag
>> von Georg Schönweger
>> Gesendet: Dienstag, 2. April 2013 17:13
>> An: georg.schoenweger at gmail.com; TYPO3 commerce extension project
>> Betreff: Re: [TYPO3-commerce] Problem with Commerce payment method
>>
>> sry, of course you have to set
>> plugin.tx_commerce_pi2.defaultPaymentArticleId = not ".defaultpayment"
...
>>
>> Am 02.04.2013 14:48, schrieb Georg Schönweger:
>>> Hi Gregor,
>>>
>>> as far as i remember this error message indicates that there is no
>>> payment Article in the basket. Be sure that the payment article you
>>> set via plugin.tx_commerce_pi3.defaultpayment = is existend. If i
>>> remember correctly you have to set payment article uid of default
>>> language here.
>>>
>>> regards,
>>> Georg
>>>
>>> Am 30.03.2013 14:09, schrieb Fam Maier:
>>>> Hi list,
>>>>
>>>> here is the full error list (System is TYPO3 4.5.25 and Commerce
>> 0.13.12):
>>>>
>>>>
>>>> Uncaught TYPO3 Exception
>>>> #1305675802: Expected variable of type string for $paymentType but
>>>> a NULL was given.
>>>>
>>>> Exception thrown in file
>>>> .../typo3cms/projekt5/typo3conf/ext/commerce/lib/class.tx_commerce_
>>>> p
>>>> i
>>>> base.ph
>>>> p in line 130.
>>>>
>>>> 11 tx_commerce_pibase::getPaymentObject(NULL)
>>>>
>>>>
>>
>
.../typo3cms/projekt5/typo3conf/ext/commerce/pi2/class.tx_commerce_pi2.php:
>>>> 00634: $articleObj->load_data();
>>>> 00635: $paymentType = $articleObj->classname;
>>>> 00636: $payment = $this->getPaymentObject($paymentType);
>>>> 00637: if (method_exists($payment, 'isAllowed')) {
>>>> 00638: if ($payment->isAllowed()) {
>>>>
>>>> 10 tx_commerce_pi2::makePayment(array)
>>>>
>>>>
>>
>
.../typo3cms/projekt5/typo3conf/ext/commerce/pi2/class.tx_commerce_pi2.php:
>>>> 00459: $template = $this->cObj->substituteSubpart($template,
>>>> '###PAYMENTBOX###', $contentPayment);
>>>> 00460: } else {
>>>> 00461: $paymentArray = $this->makePayment(array());
>>>> 00462: $contentPayment =
>>>> $this->substituteMarkerArrayNoCached($contentPayment, $paymentArray);
>>>> 00463: $template = $this->cObj->substituteSubpart($template,
>>>> '###PAYMENTBOX###', $contentPayment);
>>>>
>>>> 9 tx_commerce_pi2::generateBasket()
>>>>
>>>>
>>
>
.../typo3cms/projekt5/typo3conf/ext/commerce/pi2/class.tx_commerce_pi2.php:
>>>> 00150: break;
>>>> 00151: default:
>>>> 00152: $this->generateBasket();
>>>> 00153: }
>>>> 00154: } else {
>>>>
>>>> 8 tx_commerce_pi2::main("", array)
>>>> 7 call_user_func_array(array, array)
>>>>
>>>> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_co
>>>> n
>>>> t
>>>> ent.php
>>>> :
>>>> 06402: ), array(
>>>> 06403: $content, $conf
>>>> 06404: ));
>>>> 06405: } else {
>>>> 06406: $GLOBALS['TT']->setTSlogMessage('Method "' . $parts[1] . '"
>> did
>>>> not exist in class "' . $parts[0] . '"', 3);
>>>>
>>>> 6 tslib_cObj::callUserFunction("tx_commerce_pi2->main", array, "")
>>>>
>>>> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/content/class.
>>>> t
>>>> s
>>>> lib_con
>>>> tent_user.php:
>>>> 00054: }
>>>> 00055: $this->cObj->includeLibs($conf);
>>>> 00056: $tempContent =
$this->cObj->callUserFunction($conf['userFunc'],
>>>> $conf, '');
>>>> 00057: if ($this->cObj->doConvertToUserIntObject) {
>>>> 00058: $this->cObj->doConvertToUserIntObject = FALSE;
>>>>
>>>> 5 tslib_content_User::render(array)
>>>>
>>>> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_co
>>>> n
>>>> t
>>>> ent.php
>>>> :
>>>> 00920: return $this->getContentObject('USER_INT')->render($conf);
>>>> 00921: } else {
>>>> 00922: return $this->getContentObject('USER')->render($conf);
>>>> 00923: }
>>>> 00924: }
>>>>
>>>> 4 tslib_cObj::USER(array)
>>>>
>>>>
.../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_fe.php:
>>>> 03306: break;
>>>> 03307: case 'FUNC':
>>>> 03308: $incContent =
>>>> $INTiS_cObj->USER($INTiS_config[$INTiS_key]['conf']);
>>>> 03309: break;
>>>> 03310: case 'POSTUSERFUNC':
>>>>
>>>> 3 tslib_fe::INTincScript_process(array)
>>>>
>>>>
.../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_fe.php:
>>>> 03244: $INTiS_config = $this->config['INTincScript'];
>>>> 03245: $this->INTincScript_includeLibs($INTiS_config);
>>>> 03246: $this->INTincScript_process($INTiS_config);
>>>> 03247: // Check if there were new items added to INTincScript
during
>> the
>>>> previous execution:
>>>> 03248: $INTiS_config =
> array_diff_assoc($this->config['INTincScript'],
>>>> $INTiS_config);
>>>>
>>>> 2 tslib_fe::INTincScript()
>>>>
>>>> .../typo3cms/typo3_src-4.5.25/typo3/sysext/cms/tslib/index_ts.php:
>>>> 00463: if ($TSFE->isINTincScript()) {
>>>> 00464: $TT->push('Non-cached objects','');
>>>> 00465: $TSFE->INTincScript();
>>>> 00466: $TT->pull();
>>>> 00467: }
>>>>
>>>> 1
>>>> require(".../typo3cms.po3_src-4.5.25/typo3/sysext/cms/tslib/index_ts.
>>>> php")
>>>>
>>>> .../typo3cms/projekt5/index.php:
>>>> 00082: // ******************
>>>> 00083:
>>>> 00084: require (PATH_tslib.'index_ts.php');
>>>> 00085:
>>>> 00086: ?>
>>>>
>>>> Thanks for Help
>>>> Greets Gregor
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Hi list,
>>>>
>>>> set an commerce shop up to a second spech: English. But now I got
>>>> this error message if I put an article into basket:
>>>>
>>>> Uncaught TYPO3 Exception
>>>> #1305675802: Expected variable of type string for $paymentType but
>>>> a NULL was given.
>>>>
>>>> Exception thrown in file
>>>> .../typo3cms/projekt5/typo3conf/ext/commerce/lib/class.tx_commerce_
>>>> p
>>>> i
>>>> base.ph
>>>> p in line 130.
>>>>
>>>> After a two hour search I think it's about the English types of the
>>>> payment methods because they are not 1,2,3 instead they were 381,382,..
>>>> Think this is the problem because as I added a new payment method
>>>> the uid was 422 and I got the same error message on the german page.
>>>>
>>>> Could someone help me fix this problem?
>>>>
>>>> Greets Gregor
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> TYPO3-project-commerce mailing list
>>>> TYPO3-project-commerce at lists.typo3.org
>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-comme
>>>> r
>>>> c
>>>> e
>>>>
>> _______________________________________________
>> TYPO3-project-commerce mailing list
>> TYPO3-project-commerce at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerc
>> e
>>
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
>
_______________________________________________
TYPO3-project-commerce mailing list
TYPO3-project-commerce at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
More information about the TYPO3-project-commerce
mailing list