23 if ($soxId !=
'-1' && isset($soxId)) {
25 $oDiscount =
oxNew(
'oxdiscount');
26 $oDiscount->load($soxId);
27 $this->_aViewData[
'edit'] = $oDiscount;
30 if ($oDiscount->isDerived()) {
31 $this->_aViewData[
'readonly'] =
true;
40 $oDiscountArticlesAjax =
oxNew(
'discount_articles_ajax');
41 $this->_aViewData[
'oxajax'] = $oDiscountArticlesAjax->getColumns();
43 return "popups/discount_articles.tpl";
44 } elseif ($iAoc == 2) {
45 $oDiscountCategoriesAjax =
oxNew(
'discount_categories_ajax');
46 $this->_aViewData[
'oxajax'] = $oDiscountCategoriesAjax->getColumns();
48 return "popups/discount_categories.tpl";
51 return 'discount_articles.tpl';