Ankündigung

Einklappen
Keine Ankündigung bisher.

Anzeige des Lagerbestandes bei der Attributauswahl und nicht lagernde ausblenden

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

    Anzeige des Lagerbestandes bei der Attributauswahl und nicht lagernde ausblenden

    Hallo, habe ein Problem, und zwar hätte ich auf der Artikeldetailseite gerne angezeigt, welche Variante eines Produkts ausverkauft bzw. nur noch in geringer Stückzahl vorhanden sind. dazu habe ich "Attributes by stock" installiert. Leider zeigt es jetzt aber nur im Warenkorb an, wenn ein Produkt in der gewünschten Variante nicht mehr vorhanden ist, ich hätte aber gerne, dass das bereits auf der Seite wo die detaillierte Beschreibung ist ersichtlich wird.
    Auch die Lieferampel die ich zu diesem Zweck installiert habe, wird bei mir nicht angezeigt. Ich finde leider auch nicht heraus, woran es liegt. Egal was ich unter "Artikelliste" - "Lieferampel anzeigen" angebe, sie wird nirgends angezeigt.....
    Falls es leichter ist den Fehler zu finden bei der Einsicht des Shops bitte mal kurz anfragen, habe ihn momentan im Wartungsmodus, weil er ja noch nicht fertig ist...

    #2
    DIESE ÄNDERUNGEN SIND IN DER AKTUELLEN VERSION 2.0.0 DIESES MODULS FÜR ZEN CART 1.5.6 NICHT MEHR NÖTIG

    @ Anzeige des Lagerbestands bei den Attributen und Ausblenden nicht lagernder Varianten
    Ist in Stock by Attributes nicht integriert, daher ist das kein Fehler, dass das nur im Warenkorb erscheint.

    Mit folgenden Änderungen lässt sich das aber leicht einbauen (geposteter Code bezieht sich auf Zen Cart 1.5.4)

    1) includes/modules/attributes.php

    Ändere ca. Zeile 76 von:
    Code:
    $sql = "select pov.products_options_values_id,
                            pov.products_options_values_name,
                            pa.*
                  from      " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov
                  where     pa.products_id = '" . (int)$_GET['products_id'] . "'
                  and       pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
                  and       pa.options_values_id = pov.products_options_values_id
                  and       pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                    $order_by;
    auf:
    Code:
    $sql= "SELECT  pov.products_options_values_id,
                                pov.products_options_values_name,
                                pa.*,
                                pwas.*
                    FROM   " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_ATTRIBUTES . " pa LEFT JOIN " . TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK . " pwas ON pwas.stock_attributes = pa.products_attributes_id
                    WHERE   pa.products_id = '" . (int)$_GET['products_id'] . "'
                       and    pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
                    and    (pwas.quantity > 0 or pwas.quantity IS NULL)
                      and    pa.options_values_id = pov.products_options_values_id
                     and       pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                    $order_by;
    Ändere ca. Zeile 105

    von:

    Code:
    $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
    'text' => $products_options->fields['products_options_values_name']);
    auf:

    Code:
    if ($products_options->fields['attributes_display_only'] == 1) {
    $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
    'text' => $products_options->fields['products_options_values_name']);
    } else {
    $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
    'text' => $products_options->fields['products_options_values_name'] . ' [' . $products_options->fields['quantity'] . ' '. TEXT_ATTRIBUTES_PIECES . ']');   
    }
    Ändere ca. Zeile 181 von:
    Code:
    if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_CHECKBOX or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_RADIO or $products_options->RecordCount() == 1 or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
    $products_options_value_id = $products_options->fields['products_options_values_id'];
    if ($products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_TEXT and $products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_FILE) {
    $products_options_details = $products_options->fields['products_options_values_name'];
    } else {
    // don't show option value name on TEXT or filename
     $products_options_details = '';
    }
    if ($products_options_names->fields['products_options_images_style'] >= 3) {
    $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
    $products_options_details_noname = $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
    } else {
    $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '  ' . $products_options_display_weight : '');
    $products_options_details_noname = $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '  ' . $products_options_display_weight : '');
    }
    }
    auf:
    Code:
    if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_CHECKBOX or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_RADIO or $products_options->RecordCount() == 1 or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
          $products_options_value_id = $products_options->fields['products_options_values_id'];
          if ($products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_TEXT and $products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_FILE) {
    // stock by attributes show quantity
    if ($products_options->fields['attributes_display_only'] == 0){
           $products_options_details = $products_options->fields['products_options_values_name'] . ' [' . $products_options->fields['quantity'] . ' '. TEXT_ATTRIBUTES_PIECES . ']';
         } 
         
         if ($products_options->fields['attributes_display_only'] == 1){
             
             $products_options_details = $products_options->fields['products_options_values_name'];
          } else {
           // don't show option value name on TEXT or filename
           $products_options_details = '';
          }
    
      }
    }
          if ($products_options_names->fields['products_options_images_style'] >= 3) {
           $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
    // stock by attributes show quantity
    if ($products_options->fields['attributes_display_only'] == 0){
           $products_options_details_noname = ' [' . $products_options->fields['quantity'] . ' '. TEXT_ATTRIBUTES_PIECES . '] ' . $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
         } 
         
         if ($products_options->fields['attributes_display_only'] == 1){
             $products_options_details_noname = $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
          } else {
           $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '' . $products_options_display_weight : '');
           
    // stock by attribute show quantity
    if ($products_options->fields['attributes_display_only'] == 0){
           $products_options_details_noname = ' [' . $products_options->fields['quantity'] . ' '. TEXT_ATTRIBUTES_PIECES . '] ' . $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '' . $products_options_display_weight : '');
         } else {
             $products_options_details_noname = $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '  ' . $products_options_display_weight : '');
    }
          
         }
       }
    Für die geänderte Datei dann das Override System nutzen und hochladen nach:
    includes/modules/DEINTEMPLATE

    2) Für die Anzeige der Stückzahl ist eine neue Sprachdefinition eingebaut worden: TEXT_ATTRIBUTES_PIECES
    Die noch anlegen in:
    includes/languages/german/DEINTEMPLATE/product_info.php
    z.B.
    Code:
    define('TEXT_ATTRIBUTES_PIECES','Stück verfügbar');
    Falls auch englisch aktiv ist:
    includes/languages/english/DEINTEMPLATE/product_info.php
    Code:
    define('TEXT_ATTRIBUTES_PIECES','pieces available');
    Nach diesen Änderungen erscheint neben jedem Attribut, das einen Lagerbestand mit Stock by Attributes hat, in eckigen Klammern der aktuelle Bestand, sowohl bei Radiobuttons als auch bei Dropdowns:
    z.B.
    grün [10 Stück verfügbar]
    Ist der Lagerbestand eines Attributes 0, dann wird es in der Auswahl nicht mehr angezeigt.

    Bei Attrributwerten, die als "nur zur Darstellung" markiert sind, z.B. "Bitte wählen Sie" wird kein Lagerbestandstext angezeigt.

    Wenn mit einem Attribut "Bitte wählen Sie" gearbeitet wird, das nur nur Darstellung benötigt eingestellt ist, sollte dieses Spezialattribut in Stock by Attributes aber erst gar keinen Lagerbestand bekommen, da der sinnlos wäre.

    Mit folgender Änderung in DEINADMIN/includes/classes/products_with_attributes_stock.php wird ein nur zur Ansicht eingestelltes Attribut beim Zuweisen der Lagerbestände in Stock by Attributes gar nicht erst angeboten:

    ca. Zeile 10 ändern von:
    Code:
                $query = '    select 
                                patrib.products_attributes_id, patrib.options_values_price, patrib.price_prefix,
                                 popt.products_options_name, pval.products_options_values_name
                             from '.TABLE_PRODUCTS_ATTRIBUTES.' as patrib, '.TABLE_PRODUCTS_OPTIONS.' as popt, '.TABLE_PRODUCTS_OPTIONS_VALUES.' as pval
                             where
                                 patrib.products_id = "'.$products_id.'" AND patrib.options_id = popt.products_options_id
                                 AND popt.language_id = "'.$languageId.'" and popt.language_id = pval.language_id
                                and patrib.options_values_id = pval.products_options_values_id';
    auf:
    Code:
    $query = '    select 
                                patrib.products_attributes_id, patrib.options_values_price, patrib.price_prefix, patrib.attributes_display_only,
                                 popt.products_options_name, pval.products_options_values_name
                             from '.TABLE_PRODUCTS_ATTRIBUTES.' as patrib, '.TABLE_PRODUCTS_OPTIONS.' as popt, '.TABLE_PRODUCTS_OPTIONS_VALUES.' as pval
                             where
                                 patrib.products_id = "'.$products_id.'" AND patrib.options_id = popt.products_options_id AND patrib.attributes_display_only = 0
                                 AND popt.language_id = "'.$languageId.'" and popt.language_id = pval.language_id
                                and patrib.options_values_id = pval.products_options_values_id';
    Zuletzt geändert von webchills; 07.09.2019, 10:24. Grund: Änderung für nur zur Ansicht markierte Attribiute aktualisiert

    Kommentar


      #3
      Hmmm...

      Irgendwas hab ich falsch gemacht, jetzt sind die Auswahlfelder für die Varianten leer... Habe die attributes.php wie beschrieben abgeändert und in den Ordner includes/modules/MEINTEMPLATE eingefügt, die "original Datei" unter includes/modules kann ja dann bleiben...
      unter includes/languages/german gab es noch kein .../MEINTEMPLATE, das hab ich dann einfach angelegt, die "normale" product_info.php dahin kopiert, die Zeile eingefügt und... ja, irgendwie sind jetzt eben die Auswahlfelder leer und ich weiß nicht was ich verkehrt gemacht habe


      -- okay, weiß jetzt warum es nichts anzeigt, sobald ich die Attribute alle durch Attributes by stock festlege, zeigt es die Varianten wieder an.... aber farbige Hinweise in Bezug auf vorhandenen Lagerbestand sehe ich immer noch nicht.... geht das nur bei radio buttons oder müsste man das in der Auswahlliste auch sehen?

      Dazu kommt, dass wenn ich die unterschiedlichen Varianten mit Attributes by stock anlege, er mir die jeweilige Farbe z. B. sooft anzeigt, wie ich z. B. unterschiedliche Größen dazu habe, sprich wenn es rotes t-Shirt in Größen s, m, l, xl gibt, steht da 4 Mal rot untereinander in der Auswahlbox :-( - irgendwo ist der Wurm drin....
      Zuletzt geändert von Obersack; 27.04.2011, 16:27.

      Kommentar


        #4
        Hm stoße auf selbiges Problem.
        Ich habe zwei Variablen bei bestimmten Produkten (Größe und Farbe)
        Wenn ich jetzt den Bestand für bestimmte Kombinationen definiere, sollte er natürlich nicht die möglichen 100 Kombinationen aus den beiden variablen anzeigen, sondern der Kunde soll sich zunächst die erste Variable aussuchen ( Größe ) und dann die Farbe wählen.

        Ich habe die unten genannten Codeschnippsel eingefügt und die Override methode benutzt, jetzt schmeißt er defnitiv alle Größen raus, für die kein Bestand definiert wurde. Das ist also schonmal richtig, ABER er zeigt mir im ersten Dropdown die Körpergröße 160 z.B. so oft an, wie es Artikel mi dieser Variable gibt. Die zweite Drop Down Box mit ihren wird dann erst gar nicht berücksichtigt. Heißt er zeigt mir da gar nichts an, obwohl ein bestand für die Farbe weiß in Größe 160 angelegt ist...

        Gibt es dazu bereits Lösungsansätze?

        Zu begutachten gibts das Problem hier: http://www.wu-designs.com/index.php?...&products_id=4

        Kommentar


          #5
          Nach diesen Änderungen erscheint neben jedem Attribut, das einen Lagerbestand mit Stock by Attributes hat in eckigen Klammern der aktuelle Bestand:
          z.B.
          grün [10 Stück]
          würde das auch für 1.5 funktionieren? Ich möchte den Lagerbestand in der Artikeldetails-Seite anzeigen lassen. Unsere Kunden schmeißen, in der Regel, sehr viele Produkte in den Einkaufswagen. Nach man 20 Artikel in den Einkaufswagen hereingelegt hat, wäre es natürlich ärgerlich, wenn man dann hineinguckt und herausfindet, dass mehrere Auswähle nicht vorrätig sind. Am liebsten, würden die Kunden den genauen Lagerbestand schon beim Auswählen sehen können.

          Kommentar


            #6
            Zitat von fish4two Beitrag anzeigen
            würde das auch für 1.5 funktionieren?
            Die oben gepostete Code Änderung funktioniert in 1.5 genauso problemlos.

            Kommentar


              #7
              Zitat von webchills Beitrag anzeigen
              Die oben gepostete Code Änderung funktioniert in 1.5 genauso problemlos.
              Ich habe das oben gepostete Code in meine includes/modules/MEINTEMPLATE/attributes.php eingespielt. Es funktioniert! Danke, das war sehr hilfreich!

              Aktuell versuche ich das Module "Attributes on Product Listing v2.0" einzurichten.
              (Siehe Thread... https://forenarchiv.zen-cart-pro.at/...ise-gerechenet )

              Deswegen habe ich entdekt, dass der Lagerbestand nicht neben den Attributen auf der Product Listing Page (Artikel Liste Seite) ersichtlich waren.


              Dann habe ich mit WinMerge die folgende Dateien verglichen:

              includes/modules/MEINTEMPLATE/attributes.php
              includes/modules/MEINTEMPLATE/attributes_listing.php (Diese Datei ist von "Attributes on Product Listing v2.0"

              Ich habe festgestellt, dass die beiden Dateien sehr ähnlich sind. Dann habe ich die
              oben gepostete Code Änderungen von webchills in includes/modules/MEINTEMPLATE/attributes_listing.php eingespielt. Jetzt sieht es so aus:
              ca. Zeile 79
              Code:
                              //begin changes made by josh on 14.06.2013 to display available stock for each attribute.
                              /*
                              $sql = "select    pov.products_options_values_id,
                                      pov.products_options_values_name,
                                      pa.*
                            from      " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov
                            where     pa.products_id = '" . (int)$listing->fields['products_id'] . "'
                            and       pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
                            and       pa.options_values_id = pov.products_options_values_id
                            and       pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                              $order_by;
                              */
                              $sql = "select    pov.products_options_values_id,
                                      pov.products_options_values_name,
                                      pwas.quantity,
                                      pa.*
                            from   " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK . " pwas
                            where     pa.products_id = '" . (int)$listing->fields['products_id'] . "'
                            and       pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
                            and       pa.options_values_id = pov.products_options_values_id
                            and       pwas.stock_attributes = pa.products_attributes_id
                            and       pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                            $order_by;
                              //end changes made by josh on 14.06.2013 to display available stock for each attribute.

              und ca. Zeile 199
              Code:
                //begin changes made by josh on 14.06.2013 to display available stock for each attribute.
                                /*
                                if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_CHECKBOX or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_RADIO or $products_options->RecordCount() == 1 or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
                                  $products_options_value_id = $products_options->fields['products_options_values_id'];
                                  if ($products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_TEXT and $products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_FILE) {
                                    $products_options_details = $products_options->fields['products_options_values_name'];
                                  } else {
                                    // don't show option value name on TEXT or filename
                                    $products_options_details = '';
                                  }
                                  if ($products_options_names->fields['products_options_images_style'] >= 3) {
                                    $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
                                    $products_options_details_noname = $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
                                  } else {
                                    $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '  ' . $products_options_display_weight : '');
                                    $products_options_details_noname = $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '  ' . $products_options_display_weight : '');
                                  }
                                }
                                */
              
              
                                if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_CHECKBOX or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_RADIO or $products_options->RecordCount() == 1 or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
                                  $products_options_value_id = $products_options->fields['products_options_values_id'];
                                  if ($products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_TEXT and $products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_FILE) {
                                      // stock by attributes show quantity
                                      $products_options_details = $products_options->fields['products_options_values_name'] . ' [' . $products_options->fields['quantity'] . ' '. TEXT_ATTRIBUTES_PIECES . ']';
                                  } else {
                                      // don't show option value name on TEXT or filename
                                      $products_options_details = '';
                                  }
                                  if ($products_options_names->fields['products_options_images_style'] >= 3) {
                                      $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
                                      // stock by attributes show quantity
                                      $products_options_details_noname = ' [' . $products_options->fields['quantity'] . ' '. TEXT_ATTRIBUTES_PIECES . '] ' . $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '<br />' . $products_options_display_weight : '');
                                  } else {
                                      $products_options_details .= $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '' . $products_options_display_weight : '');
                                      // stock by attribute show quantity
                                      $products_options_details_noname = ' [' . $products_options->fields['quantity'] . ' '. TEXT_ATTRIBUTES_PIECES . '] ' . $products_options_display_price . ($products_options->fields['products_attributes_weight'] != 0 ? '' . $products_options_display_weight : '');
                                  }
                                }
                                //end changes made by josh on 14.06.2013 to display available stock for each attribute.

              Das einzige Problem, (außer das keinen MwSt. beim Attributen auf der Artikelliste Seite angezeigt wird) wie Ihr hier seht... http://berlinbeads.de/demo/index.php...&cPath=1_2_106, ist der TEXT_ATTRIBUTES_PIECES wird nicht aufgerufen. Die Defines habe ich doch schon in die Languages Dateien definiert. Das seht ihr, wenn ihr auf der Artikel Details Seite anguckt.

              Könnte jemand mir hier vielleicht helfen? Danke.

              Kommentar


                #8
                TEXT_ATTRIBUTES_PIECES wird nicht aufgerufen. Die Defines habe ich doch schon in die Languages Dateien definiert.
                Na, ganz offenbar war die richtige language-Datei nicht dabei

                versuche es mal dort zu definieren:
                /includes/language/german/index.php
                bzw.
                /includes/language/german/viennablood/index.php

                Gruß
                Thilo

                Kommentar


                  #9
                  Zitat von Thilo Beitrag anzeigen
                  Na, ganz offenbar war die richtige language-Datei nicht dabei

                  versuche es mal dort zu definieren:
                  /includes/language/german/index.php
                  bzw.
                  /includes/language/german/viennablood/index.php

                  Gruß
                  Thilo
                  Ja! Das war es! Vielen Dank!
                  Jetzt muss ich nur noch die oben genannte MwSt.-Problem erledigen. Weiß jemand vielleicht in welche Datei ich anfangen soll?

                  Kommentar


                    #10
                    Hallo,

                    ich klinke mich mal in diesen Thread hier ein,

                    ist es möglich attribute auszublenden wenn von ihnen "0" auf lager sind?

                    lg

                    Edit:

                    was mir auch gerade aufgefallen ist.

                    wenn ich einen Artikel in den Warenkorb packe der ausverkauft ist und einen der nicht ausverkauft ist und keine Attribute verwendet wird dieser auch als ausverkauft angezeigt. war das vorher auch schon so?
                    Zuletzt geändert von 9mm; 31.07.2013, 23:44.

                    Kommentar


                      #11
                      Zitat von 9mm Beitrag anzeigen
                      Hallo,

                      ich klinke mich mal in diesen Thread hier ein,

                      ist es möglich attribute auszublenden wenn von ihnen "0" auf lager sind?
                      Ich denke, ich habe über sowas hier im Forum gelesen, aber sorry, ich finde es gerade nicht.


                      Zitat von 9mm Beitrag anzeigen
                      was mir auch gerade aufgefallen ist.

                      wenn ich einen Artikel in den Warenkorb packe der ausverkauft ist und einen der nicht ausverkauft ist und keine Attribute verwendet wird dieser auch als ausverkauft angezeigt. war das vorher auch schon so?
                      Das ist auch so bei meinem Shop. Das muss iergendwie ein BUG sein! Ich habe bisher keine Lösung gefunden. Ich glaube nur Gott (a.k.a. Webchills) kann das korregieren.

                      Kommentar


                        #12
                        Hallo,

                        Würde mich sehr freuen wenn sich webchills der sache annehmen würde.

                        Lg

                        Edit:

                        Hab eben was Auf google gefunden...

                        damit lassen sich die sachen ausblenden die ausverkauft sind:

                        I read all the info in the archive forums and cannot figure out if it can do what I want: I did install the Contribution (thank you for making it) and am now testing it, however I have the same problem as many other people: - when a size or color (I sell clothes) is out of stock the unavailable color/size still shows on the product page, people can still add it to their cart and it is only there that they have an "out of stock" message. Would it be possible to have a check on
                        Zuletzt geändert von 9mm; 01.08.2013, 17:06.

                        Kommentar


                          #13
                          Hallo,

                          sorry für doppelpost..

                          kann mir jemand sagen welche datei ich ändern muss und am besten auch was damit dieses dropdown menü von Stock by Attributes direkt neben dem Preis ist und nicht ganz unten auf der seite.

                          Ist es möglich dieses Feld als Pflichtfeld einzustellen?

                          lg

                          Kommentar


                            #14
                            Zitat von 9mm Beitrag anzeigen
                            kann mir jemand sagen welche datei ich ändern muss und am besten auch was damit dieses dropdown menü von Stock by Attributes direkt neben dem Preis ist und nicht ganz unten auf der seite.
                            Ist es möglich dieses Feld als Pflichtfeld einzustellen?
                            Wovon sprichst Du? Kann da nicht folgen. Denke anderen wirds ähnlich gehen.
                            Ich vermute mal Du meinst die Positionierung der Attributauswahl. Das hat nichts mit Stock by Attributes zu tun.
                            Positioniere in der includes/templates/DEINTEMPLATE/templates/tpl_product_info_display.php folgenden Block so wie Du ihn haben willst:
                            Code:
                            <!--bof Attributes Module -->
                            <?php
                              if ($pr_attr->fields['total'] > 0) {
                            ?>
                            <?php
                            /**
                             * display the product atributes
                             */
                              require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
                            <?php
                              }
                            ?>
                            <!--eof Attributes Module -->
                            Um zu verhindern, dass der Artikel ohne Auswahl eines Attriobuts in den Warenkorb gelegt wird:


                            Zitat von 9mm Beitrag anzeigen
                            wenn ich einen Artikel in den Warenkorb packe der ausverkauft ist und einen der nicht ausverkauft ist und keine Attribute verwendet wird dieser auch als ausverkauft angezeigt. war das vorher auch schon so?
                            Auch hier hab ich Verständnisschwierigkeiten. Du willst ja anscheinend auch Attribute ausblenden, die nicht lagernd sind. Dann wäre es doch auch nur konsequent im Shop keine Artikel anzuzeigen, die nicht lagernd sind. Also Konfiguration > Lagerverwaltung > Artikel im Shop anzeigen wenn nicht lagernd > 0

                            Kommentar


                              #15
                              Hallo,

                              Ich entschuldige mich für meine nicht eindeutige Ausdrucksweise und danke dir schonmal für deine Hilfe. Das mit den ausverkauften Artikel im Warenkorb war ja noch als ich ausverkaufte Größen zb nicht ausblenden konnte. Dies ist ja durch oberen link behoben.

                              Danke und lg

                              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