Ejemplo n.º 1
0
     } else {
         $PayUSt = true;
     }
 } else {
     $PayUSt = true;
 }
 if ($PayUSt != true) {
     $row->Preis = $this->_getDiscountVal($row->Preis) - $this->_getVat($key);
 }
 // Anzahl jedes Artikels
 $item->Anzahl = $value;
 // Preis Zusammenrechnen
 $Preis += $row->Preis;
 // Name des Artikels
 $item->ArtName = $row->ArtName;
 $item->ProdLink = $this->shopRewrite($this->_product_detail . $row->Id . '&categ=' . $row->KatId . '&navop=' . getParentShopcateg($row->KatId));
 $item->Hersteller_Name = $this->_fetchManufacturer($row->Hersteller);
 $item->DelLink = $this->_delete_item . $row->Id;
 // Einzelpreis unter Berьcksichtigung von Kundengruppe und Varianten
 $item->EPreis = $PayUSt != true ? ($this->_getDiscountVal($Einzelpreis) + $SummVarsE) / $this->_getVat($key) : $this->_getDiscountVal($Einzelpreis) + $SummVarsE;
 // Summe unter Berьcksichtung der Anzahl
 $item->EPreisSumme = $PayUSt != true ? ($this->_getDiscountVal($Einzelpreis * $value) + $SummVarsE) / $this->_getVat($key) : ($this->_getDiscountVal($Einzelpreis) + $SummVarsE) * $value;
 $item->Gewicht = $row->Gewicht * $value;
 $item->ArtNr = $row->ArtNr;
 // Endpreis aller Artikel
 $PreisGesamt += $item->EPreisSumme;
 $GewichtGesamt += $item->Gewicht;
 // Preis 2.Wдhrung
 if (defined("WaehrungSymbol2") && defined("Waehrung2") && defined("Waehrung2Multi")) {
     @($item->PreisW2 = $PayUSt != true ? ($this->_getDiscountVal($Einzelpreis * Waehrung2Multi) + $SummVarsE) / $this->_getVat($key) : $this->_getDiscountVal($Einzelpreis) + $SummVarsE);
     //($row->Preis * Waehrung2Multi);
Ejemplo n.º 2
0
 function _getNavigationPath($id, $result = null, $extra = 0, $nav_op = 0)
 {
     global $AVE_DB;
     // daten des aktuellen bereichs
     $item = $AVE_DB->Query("\r\n\t\t\tSELECT\r\n\t\t\t\tId,\r\n\t\t\t\tKatName,\r\n\t\t\t\tparent_id\r\n\t\t\tFROM " . PREFIX . "_modul_shop_kategorie\r\n\t\t\tWHERE Id = '" . $id . "'\r\n\t\t")->FetchRow();
     if (is_object($item)) {
         $link = $this->_shopRewrite(sprintf($this->_link_category, $item->Id, $item->parent_id, getParentShopcateg($item->Id)));
         if ($item->parent_id == 0) {
             $retval = '<a class="mod_shop_navi" href="' . $this->_link_start . '">' . $GLOBALS['mod']['config_vars']['PageName'] . '</a>' . $GLOBALS['mod']['config_vars']['PageSep'] . '<a class="mod_shop_navi" href="' . $link . '">' . $item->KatName . '</a>' . ($result ? $GLOBALS['mod']['config_vars']['PageSep'] : '') . $result;
             return $retval;
         }
         $result = '<a class="mod_shop_navi" href="' . $link . '">' . $item->KatName . '</a>' . ($result ? $GLOBALS['mod']['config_vars']['PageSep'] : '') . $result;
         return $this->_getNavigationPath($item->parent_id, $result, $extra, $nav_op);
     }
     return '';
 }
Ejemplo n.º 3
0
 function getCategoriesSimple($id, $prefix, &$entries, $admin = 0, $dropdown = 0)
 {
     global $AVE_DB;
     $query = $AVE_DB->Query("\r\n\t\t\tSELECT *\r\n\t\t\tFROM " . PREFIX . "_modul_shop_kategorie\r\n\t\t\tWHERE parent_id = '" . $id . "'\r\n\t\t\tORDER BY position ASC\r\n\t\t");
     if (!$query->NumRows()) {
         return '';
     }
     while ($item = $query->FetchRow()) {
         $item->visible_title = $prefix . ($item->parent_id != 0 && $admin != 1 ? '' : '') . $item->KatName;
         $item->expander = $prefix;
         $item->dyn_link = "index.php?module=shop&amp;categ=" . $item->Id . "&amp;parent=" . $item->parent_id . "&amp;navop=" . ($item->parent_id == 0 ? $item->Id : getParentShopcateg($item->parent_id));
         $item->acount = $AVE_DB->Query("\r\n\t\t\t\tSELECT\r\n\t\t\t\t\tId,\r\n\t\t\t\t\tKatId\r\n\t\t\t\tFROM " . PREFIX . "_modul_shop_artikel\r\n\t\t\t\tWHERE KatId = '" . $item->Id . "'\r\n\t\t\t\tAND status = '1'\r\n\t\t\t")->NumRows();
         array_push($entries, $item);
         if ($admin == 1) {
             $this->getCategoriesSimple($item->Id, $prefix . '', $entries, $admin, $dropdown);
         } else {
             $this->getCategoriesSimple($item->Id, $prefix . ($dropdown == 1 ? '&nbsp;&nbsp;' : $this->_expander), $entries, $dropdown);
         }
     }
     return $entries;
 }