Ankündigung

Einklappen
Keine Ankündigung bisher.

easy populate master category hauptkategorie

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    easy populate master category hauptkategorie

    hallo liebe forummitglieder,
    vielleicht kann mir ja die eine oder der andere bei meiner frage helfen. ich moechte mittels easy populate artikel warten. die artikel sollen teilweise in mehreren kategorien vorkommen, aber immer einer hauptkategorie zugeordnet sein.
    soweit mir sich easy populate erschliesst, ist es damit nicht moeglich, die hauptkategorie einzutragen.
    bevor ich nun selber dieses feature nachtrage, wollt ich nochmal nachfragen, ob ich´s vielleicht doch übersehen hab.
    danke
    lg
    armin

    #2
    Du hast es nicht übersehen. Auch ich habe diese Problem beim Importieren von Artikeln schon festgestellt.

    Daher wäre ich sehr dankbar, wenn du die Zeit und die Lust hast, diesen Fehler auszumerzen.

    Gruß
    MaleBorg

    Kommentar


      #3
      so dann hab ichs halt selber machen muessen...
      danke an MaleBorg, nach dessen anleitung:

      ich nun die master kategorie hinzufuegen konnte.

      die einzupsielende datei benoetigt ein neues feld "v_master_categories_id"
      immer schon aufpassen mit den tabs, dann klappts auch.


      zeile 1265 dies hinzufuegen. >>>>>>'v_master_categories_id' => $iii++,<<<<<<<

      also so:
      // VJ product attribs begin
      $header_array = array(
      'v_products_price' => $iii++,
      'v_products_priced_by_attribute' => $iii++,
      'v_products_weight' => $iii++,
      'v_products_sort_order' => $iii++,
      'v_date_avail' => $iii++,
      'v_date_added' => $iii++,
      'v_products_quantity' => $iii++,
      'v_master_categories_id' => $iii++,
      );
      zeile 1362 dies hinzufuegen >>>>>>>>>p.master_categories_id as v_master_categories_id<<<<<<<<

      also so:
      $filelayout_sql = "SELECT
      p.products_id as v_products_id,
      p.products_model as v_products_model,
      p.products_image as v_products_image,
      p.products_price as v_products_price,
      p.products_priced_by_attribute as v_products_priced_by_attribute,
      p.products_weight as v_products_weight,
      p.products_sort_order as v_products_sort_order,
      p.products_date_available as v_date_avail,
      p.products_date_added as v_date_added,
      p.products_tax_class_id as v_tax_class_id,
      p.products_quantity as v_products_quantity,
      p.manufacturers_id as v_manufacturers_id,
      subc.categories_id as v_categories_id,
      p.products_status as v_status,
      p.master_categories_id as v_master_categories_id

      FROM
      ".TABLE_PRODUCTS." as p,
      ".TABLE_CATEGORIES." as subc,
      ".TABLE_PRODUCTS_TO_CATEGORIES." as ptoc
      WHERE
      p.products_id = ptoc.products_id AND
      ptoc.categories_id = subc.categories_id
      " . $sql_filter;
      zeile 1839 dies hinzufuegen >>>>>>>>>p.master_categories_id as v_master_categories_id<<<<<<<<

      also so:

      // now do a query to get the record's current contents
      $sql = "SELECT
      p.products_id as v_products_id,
      p.products_model as v_products_model,
      p.products_image as v_products_image,
      p.products_price as v_products_price,
      p.products_priced_by_attribute as v_products_priced_by_attribute,
      p.products_weight as v_products_weight,
      p.products_sort_order as v_products_sort_order,
      p.products_date_added as v_date_avail,
      p.products_tax_class_id as v_tax_class_id,
      p.products_quantity as v_products_quantity,
      p.manufacturers_id as v_manufacturers_id,
      subc.categories_id as v_categories_id,
      p.master_categories_id as v_master_categories_id
      FROM
      ".TABLE_PRODUCTS." as p,
      ".TABLE_CATEGORIES." as subc,
      ".TABLE_PRODUCTS_TO_CATEGORIES." as ptoc
      WHERE
      p.products_id = ptoc.products_id AND
      p.products_model = '" . $items[$filelayout['v_products_model']] . "' AND
      ptoc.categories_id = subc.categories_id
      ";
      zeile 2250 dies hinzufuegen >>>>>>>>>p.master_categories_id as v_master_categories_id<<<<<<<<

      also so:

      // unmcomment these lines if you are running the image mods
      /*
      $query .= . $v_products_mimage . '", "'
      . $v_products_bimage . '", "'
      . $v_products_subimage1 . '", "'
      . $v_products_bsubimage1 . '", "'
      . $v_products_subimage2 . '", "'
      . $v_products_bsubimage2 . '", "'
      . $v_products_subimage3 . '", "'
      . $v_products_bsubimage3 . '", "'
      */

      $query .=" '$v_products_model',
      '$v_products_price',
      '$v_products_priced_by_attribute',
      '$v_db_status',
      CURRENT_TIMESTAMP,
      $v_date_added,
      $v_date_avail,
      '$v_tax_class_id',
      '$v_products_weight',
      '$v_products_sort_order',
      '$v_products_quantity',
      '$v_master_categories_id',
      '$v_manufacturer_id')
      ";
      $result = mysql_query($query);
      und das gleiche in zeile 2290


      also so:

      $query .=
      '", products_priced_by_attribute="'.$v_products_priced _by_attribute .
      '", products_weight="'.$v_products_weight .
      '", products_sort_order="'.$v_products_sort_order .
      '", products_tax_class_id="'.$v_tax_class_id .
      '", products_date_available= ' . $v_date_avail .
      ', products_date_added= ' . $v_date_added .
      ', products_last_modified=CURRENT_TIMESTAMP
      , products_quantity="' . $v_products_quantity .
      '" ,manufacturers_id=' . $v_manufacturer_id .
      ' , master_categories_id="' . $v_master_categories_id .
      '" , products_status=' . $v_db_status . '
      WHERE
      (products_id = "'. $v_products_id . '")';

      $result = mysql_query($query);
      viel spass damit
      lg
      elai76

      Kommentar


        #4
        Wow, das ging ja schnell. Vielen Dank dafür!

        Magst. du mir noch verraten in welcher Version von EP du das angepasst hast. Ich überlege ob ich dsa in die Version von web28 mit einbaue, damit der Fehler dann endlich dauerhaft ausgemerzt ist.

        Gruß
        MaleBorg

        Kommentar


          #5
          Easy Populate Advance2.76d-mod3b Zen-Cart 1.3.x

          lg
          elai76

          Kommentar

          Info zu diesem Forenarchiv:
          Mit Release von 1.5.7 wurde die deutsche Zen Cart Version auf eine reine DIY-Lösung umgestellt.
          Für einen Support via Forum stehen keine personellen und zeitlichen Ressourcen mehr zur Verfügung.
          Dieses Supportforum bleibt im Nur-Lesen-Modus als Wissensarchiv noch online verfügbar.
          PM Funktionalität, Registrierung und Posten neuer Beiträge sind deaktiviert.
          Zugriff auf Anhänge in den Postings ist auch ohne Registrierung/Einloggen möglich.
          FAQ und Downloadbereich des Forums wurden in die neue umfangreiche Knowledgebase auf der zen-cart-pro.at Website übernommen.

          Das Development der deutschen Zen Cart Version geht wie bisher auf Github weiter.
          Wir werden auch weiterhin neue Versionen bereitstellen und die Onlinedokumentation/Knowledgebase aktualisieren.
          Fehler in der Software können auf Github als Issues gemeldet werden.
          Follow us
          aktuelle version
          Zen Cart 1.5.7g deutsch
          vom 12.12.2023
          [Download]
          Lädt...
          X