23 if ( $soxId !=
"-1" && isset( $soxId)) {
25 $odeliveryset =
oxNew(
"oxdeliveryset" );
26 $odeliveryset->loadInLang( $this->_iEditLang, $soxId );
28 $oOtherLang = $odeliveryset->getAvailableInLangs();
30 if (!isset($oOtherLang[$this->_iEditLang])) {
32 $odeliveryset->loadInLang( key($oOtherLang), $soxId );
35 $this->_aViewData[
"edit"] = $odeliveryset;
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 $oDeliverysetMainAjax =
oxNew(
'deliveryset_main_ajax' );
53 $this->_aViewData[
'oxajax'] = $oDeliverysetMainAjax->getColumns();
55 return "popups/deliveryset_main.tpl";
58 return "deliveryset_main.tpl";
75 $aParams[
'oxdeliveryset__oxshopid'] = $sShopID;
76 $oDelSet =
oxNew(
"oxdeliveryset" );
79 $oDelSet->loadInLang( $this->_iEditLang, $soxId );
81 $aParams[
'oxdeliveryset__oxid'] = null;
83 if ( !isset( $aParams[
'oxdeliveryset__oxactive']))
84 $aParams[
'oxdeliveryset__oxactive'] = 0;
88 $oDelSet->setLanguage(0);
89 $oDelSet->assign( $aParams);
90 $oDelSet->setLanguage($this->_iEditLang);
108 if( !isset( $aParams[
'oxdeliveryset__oxactive']))
109 $aParams[
'oxdeliveryset__oxactive'] = 0;
113 $aParams[
'oxdeliveryset__oxshopid'] = $sShopID;
114 $oDelSet =
oxNew(
"oxdeliveryset" );
117 $oDelSet->loadInLang( $this->_iEditLang, $soxId );
119 $aParams[
'oxdeliveryset__oxid'] = null;
122 $oDelSet->setLanguage(0);
123 $oDelSet->assign( $aParams);