22 if ( $soxId !=
"-1" && isset( $soxId)) {
24 $odeliveryset =
oxNew(
"oxdeliveryset" );
25 $odeliveryset->setLanguage($this->_iEditLang);
26 $odeliveryset->load( $soxId);
28 $oOtherLang = $odeliveryset->getAvailableInLangs();
30 if (!isset($oOtherLang[$this->_iEditLang])) {
32 $odeliveryset->setLanguage(key($oOtherLang));
33 $odeliveryset->load( $soxId );
36 $this->_aViewData[
"edit"] = $odeliveryset;
39 if ($odeliveryset->isDerived())
40 $this->_aViewData[
'readonly'] =
true;
45 $oDeliverysetPaymentAjax =
oxNew(
'deliveryset_payment_ajax' );
46 $this->_aViewData[
'oxajax'] = $oDeliverysetPaymentAjax->getColumns();
48 return "popups/deliveryset_payment.tpl";
49 } elseif ( $iAoc == 2 ) {
50 $oDeliverysetCountryAjax =
oxNew(
'deliveryset_country_ajax' );
51 $this->_aViewData[
'oxajax'] = $oDeliverysetCountryAjax->getColumns();
53 return "popups/deliveryset_country.tpl";
55 return "deliveryset_payment.tpl";