Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Fehlende Konstante SET_OUT_OF_STOCK_PRODUCTS im Backend?

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    So, es ist mal wieder so weit und ich sehe den Wald vor lauter Bäumen nicht.

    Ich gucke gerade ins Backend unter dem Punkt "Lagerverwaltungsoptionen" und prompt empfängt mich folgende Fehlermeldung:

    Code: PHP  [Auswählen]
    Warning: constant() [function.constant]: Couldn't find constant SET_OUT_OF_STOCK_PRODUCTS_TITLE in /www/htdocs/.../admin/configuration.php on line 292
    Warning: constant() [function.constant]: Couldn'
    t find constant SET_OUT_OF_STOCK_PRODUCTS_DESC in /www/htdocs/.../admin/configuration.php on line 294
    Warning: constant() [function.constant]: Couldn't find constant SET_OUT_OF_STOCK_ATTRIBUTES_TITLE in /www/htdocs/.../admin/configuration.php on line 292
    Warning: constant() [function.constant]: Couldn'
    t find constant SET_OUT_OF_STOCK_ATTRIBUTES_DESC in /www/htdocs/.../admin/configuration.php on line 294
    Warning: constant() [function.constant]: Couldn't find constant SET_OUT_OF_STOCK_ATTRIBUTES_SHOW_TITLE in /www/htdocs/.../admin/configuration.php on line 292
    Warning: constant() [function.constant]: Couldn'
    t find constant SET_OUT_OF_STOCK_ATTRIBUTES_SHOW_DESC in /www/htdocs/.../admin/configuration.php on line 294

    Was habe ich denn nun wieder kaputt gespielt, zumal ich diese Konstante auch in keiner Sprachdatei finden kann.

    Gruß
    Ronny

    Linkback: https://www.modified-shop.org/forum/index.php?topic=16775.0

    web28

    • modified Team
    • Beiträge: 9.404
    Re: Fehlende Konstante SET_OUT_OF_STOCK_PRODUCTS im Backend?
    Antwort #1 am: 16. November 2011, 17:03:37
    Hallo Ronny,

    diese Konstanten gibt es in modified eCommerce Shopsoftware nicht, deshalb auch die Fehlermeldungen.

    "Lagerverwaltungsoptionen" angepasst und die Sprachkonstanten vergessen?

    Wenn Du die Sprachkonstanten in "/lang/german/admin/configuration.php" definierst, sind die Fehlermeldungen weg.

    Gradler

    • Viel Schreiber
    • Beiträge: 2.083
    • Geschlecht:
    Re: Fehlende Konstante SET_OUT_OF_STOCK_PRODUCTS im Backend?
    Antwort #2 am: 16. November 2011, 17:06:04
    Hallo,

    kann das sein, daß Du da bei Gambio was ausgebaut hast?

    Code: PHP  [Auswählen]
    // bof gm
    define('GM_SET_OUT_OF_STOCK_PRODUCTS_TITLE',                    'Artikel inaktiv setzen');
    define('GM_SET_OUT_OF_STOCK_PRODUCTS_DESC',                             'Artikel auf inaktiv setzen, wenn diese nach einer Bestellung nicht mehr auf Lager sind?<br /><br /><strong>Hinweis:</strong> &quot;&Uuml;berpr&uuml;fen des Artikelbestandes&quot; und &quot;Artikelmenge abziehen&quot; muss auf &quot;Ja&quot; und &quot;Einkaufen nicht vorr&auml;tiger Artikel erlauben&quot; auf &quot;Nein&quot; eingestellt sein.');

    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_TITLE',                  'Attribut inaktiv setzen');
    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_DESC',                   'Attributwerte/Attribut-Optionswerte ausblenden, wenn diese nicht mehr auf Lager sind?<br /><br /><strong>Hinweis:</strong> Falls alle Attribute eines Artikels nicht mehr auf Lager sind, so wird der Artikel OHNE Attribute in den Warenkorb gelegt! Daher sollten Sie diese Option nur in Verbindung mit der aktivierten folgenden Option nutzen, damit Artikel, die nicht mehr auf Lager sind, nicht mehr angezeigt werden.');

    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_SHOW_TITLE',             'Attributlagerbestand anzeigen');
    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_SHOW_DESC',              'Attributlagerbestand hinter jedem Attribut-Optionswert anzeigen?');

    define('GM_LIVE_CHECK_NOT_READY',               '<br /><br /><font color="#ff0000"><strong>ACHTUNG:</strong></font> Weder die php-Funktion fsockopen noch curl sind auf diesem Server verf&uuml;gbar, so dass Sie diese Option <strong>nicht</strong> aktivieren sollten. Sollten nun generell Ust-Id-Nummern nicht mehr validiert werden k&ouml;nnen, deaktivieren Sie die Ust-IdNr.-Pr&uuml;fung generell.');
    //eof
     

    Entferne mal das GM_ und probier's. Wenn's klappt hier nochmal in englisch:

    Code: PHP  [Auswählen]
    // bof gm
    define('GM_SET_OUT_OF_STOCK_PRODUCTS_TITLE',                    'Deactivate articles');
    define('GM_SET_OUT_OF_STOCK_PRODUCTS_DESC',                             'Deactivate articles being out of stock?<br /><strong>Advice:</strong> Set &quot;Check stock level&quot; and &quot;Subtract stock&quot; on &quot;true&quot; and &quot;Allow Checkout&quot; on &quot;false&quot; to use this option.');

    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_TITLE',                  'Deactivate attributes');
    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_DESC',                   'Hide attributes which are out of stock?<br /><strong>Advice:</strong> Activate the following option too, to deactivte articles being out of stock.');

    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_SHOW_TITLE',             'Show attributes stock');
    define('GM_SET_OUT_OF_STOCK_ATTRIBUTES_SHOW_DESC',              'Show attributes stock');

    define('GM_LIVE_CHECK_NOT_READY',               '<br /><br /><font color="#ff0000"><strong>Attention!</strong></font> The php function fsockopen and curl are not available on this server, so you cannot use this option.');
    //eof
     

    Gerd

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Fehlende Konstante SET_OUT_OF_STOCK_PRODUCTS im Backend?
    Antwort #3 am: 16. November 2011, 17:14:02
    Hallo Gerd, du bringst mich auf den richtigen Weg.

    Der Shop war vorher auf ein Gambio und wurde umgebaut auf modified eCommerce Shopsoftware.

    Dann werde ich mal eben in der DB nachsehen.

    Gruß
    Ronny

    EDIT:
    Da hat sich doch tatsächlich noch ein wenig Gambio-Restmüll in der Tabelle configuration gefunden.

    Danke nochmals Gerd, aber manchmal sieht man als alter Hase auch nicht den Wald vor lauter Bäumen.

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Fehlende Konstante SET_OUT_OF_STOCK_PRODUCTS im Backend?
    Antwort #4 am: 16. November 2011, 17:15:09
    Das selbe kann dir auch bei modifizierten xt:Commerce Shops passieren und nicht nur unter "Lagerverwaltungsoptionen, sondern in jeder "configuration_group", daher geh vorsichtshalber mal alle Konfigurations-Seiten des Shops durch. ;-)

    Grüße

    Torsten

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Fehlende Konstante SET_OUT_OF_STOCK_PRODUCTS im Backend?
    Antwort #5 am: 16. November 2011, 17:34:47
    Habe ich eben zur Vorsicht gemacht, Torsten. Die Lagerverwaltung war Gott sei Dank die einzige Klinke.

    Ich hatte mich nur durch die fehlende Sprachkonstante verwirren lassen und wie bekloppt in "/lang/" und in "/includes/" gesucht.

    Gruß
    Ronny

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Fehlende Konstante SET_OUT_OF_STOCK_PRODUCTS im Backend?
    Antwort #6 am: 16. November 2011, 17:37:15
    Das ist meist wirklich keine große Sache, wenn in der "configuration" solche Meldungen auftreten... Datenbank-Backup anlegen und die Einträge dann aus der DB entfernen.

    Grüße

    Torsten
    2 Antworten
    3033 Aufrufe
    21. Juni 2011, 20:47:03 von Tomcraft
    8 Antworten
    4342 Aufrufe
    24. Februar 2012, 00:33:48 von noRiddle (revilonetz)
    2 Antworten
    2396 Aufrufe
    10. August 2012, 13:32:36 von web28
               
    anything