23 unset( $this->_aViewData[
"sumtype"][2]);
26 if ( $soxId !=
"-1" && isset( $soxId)) {
28 $oPayment =
oxNew(
"oxpayment" );
29 $oPayment->loadInLang( $this->_iEditLang, $soxId );
31 $oOtherLang = $oPayment->getAvailableInLangs();
32 if (!isset($oOtherLang[$this->_iEditLang])) {
34 $oPayment->loadInLang( key($oOtherLang), $soxId );
36 $this->_aViewData[
"edit"] = $oPayment;
41 $this->_aViewData[
"posslang"] =
$aLang;
43 foreach ( $oOtherLang as $id => $language) {
44 $oLang=
new stdClass();
45 $oLang->sLangDesc = $language;
47 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
52 $oPaymentCountryAjax =
oxNew(
'payment_country_ajax' );
53 $this->_aViewData[
'oxajax'] = $oPaymentCountryAjax->getColumns();
55 return "popups/payment_country.tpl";
57 return "payment_country.tpl";
69 if ( isset( $sOxId ) && $sOxId !=
"-1" && is_array( $aChosenCntr ) ) {
70 foreach ( $aChosenCntr as $sChosenCntr ) {
71 $oObject2Payment =
oxNew(
'oxbase' );
72 $oObject2Payment->init(
'oxobject2payment' );
73 $oObject2Payment->oxobject2payment__oxpaymentid =
new oxField( $sOxId );
74 $oObject2Payment->oxobject2payment__oxobjectid =
new oxField( $sChosenCntr );
75 $oObject2Payment->oxobject2payment__oxtype =
new oxField(
"oxcountry" );
76 $oObject2Payment->save();
90 if ( isset( $sOxId ) && $sOxId !=
"-1" && is_array( $aChosenCntr ) ) {
91 foreach ( $aChosenCntr as $sChosenCntr ) {
92 $oObject2Payment =
oxNew(
'oxbase' );
93 $oObject2Payment->init(
'oxobject2payment' );
94 $oObject2Payment->delete( $sChosenCntr );