Gelöst Fehler(Warn)meldungen bei Installation

  • Ersteller des Themas Ersteller des Themas HEPI
  • Erstellungsdatum Erstellungsdatum

HEPI

Gut bekanntes Mitglied
5. Dezember 2006
123
1
Hier die es.log

http://xxx/jtlwawi_connector/dbeS/mytest.php

uID=xxx

0;OSC

http://xxx/jtlwawi_connector/dbeS/getCountArtikel.php

userID=xxx

0;0

http://xxx/jtlwawi_connector/dbeS/Artikel.php

KeyArtikel=283&KeyKategorie=0&ArtikelNo=TEST_01&ArtikelName=Testartikel%20f%fcr%20b%f6se%20Varianten&
ArtikelKurzBeschreibung=die%20kurze%20Beschreibung&ArtikelBeschreibung=die%20gaaaaaaaaaaanz%20lange%
20Beschreibung&ArtikelVKBrutto=11.9000&ArtikelVKNetto=10.0000&ArtikelUVP=15.0000&ArtikelMwSt=19.0000&
ArtikelAnmerkung=Alle%20Felder%20wurden%20ausgef%fcllt.%20Keine%20Lagerverwaltung.&ArtikelLagerbestand=0.0000&
ArtikelEinheit=Stk&ArtikelMindBestell=1&ArtikelBarcode=&ArtikelVKHaendlerBrutto=10.0000&ArtikelVKHaendlerNetto=8.4034&
TopAngebot=N&Gewicht=0.5000&Neu=N&LagerVariation=N&Hersteller=HEPI&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/KategorieArtikel.php

KeyKategorieArtikel=282&KeyKategorie=15&KeyArtikel=283&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/Variation.php

KeyEigenschaft=514&KeyArtikel=283&Name=Gr%f6%dfe&Waehlbar=Y&Sort=1&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=1&KeyEigenschaft=514&Name=S&Aufpreis=0.0000&Sort=0&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=2&KeyEigenschaft=514&Name=M&Aufpreis=0.0000&Sort=1&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=3&KeyEigenschaft=514&Name=L&Aufpreis=0.0000&Sort=2&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=4&KeyEigenschaft=514&Name=XL&Aufpreis=0.5355&Sort=3&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/Variation.php

KeyEigenschaft=515&KeyArtikel=283&Name=Farbe&Waehlbar=Y&Sort=2&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=5&KeyEigenschaft=515&Name=white&Aufpreis=-1.0710&Sort=1&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=6&KeyEigenschaft=515&Name=blue&Aufpreis=0.0000&Sort=2&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=7&KeyEigenschaft=515&Name=red&Aufpreis=0.0000&Sort=3&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/VariationWert.php

KeyEigenschaftWert=8&KeyEigenschaft=515&Name=black&Aufpreis=0.0000&Sort=4&GewichtDiff=0.0000&Lager=0.0000&ArtikelNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/SetFirma.php

KeyFirma=1&Name=&Unternehmer=&Strasse=&PLZ=&Ort=&Land=&Tel=&Fax=&EMail=&WWW=&BLZ=&KontoNr=&Bank=&USTID=&SteuerNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/GetHaendlerKunden.php

userID=xxx

0

eS:0993

http://xxx/jtlwawi_connector/dbeS/GetBestellung.php

userID=xxx

0
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
300
Köln
Hallo,

ne, das kann dies nicht sein. Duhast bestimmt einen Artikel in JTLWawi erstellt und nciht im OSC Adminbereich. Wir wollen hier aus OSC in JTL Wawi importieren - oder etwa andersrum?

Laut Logdatei wurde ein Artikel von JTL Wawi nach OSC exportiert. Dort sollte er erscheinen - inkl. Variationen.
 

HEPI

Gut bekanntes Mitglied
5. Dezember 2006
123
1
Die es.log nach dem Import aus dem Shop:

http://xxx/jtlwawi_connector/dbeS/mytest.php

uID=xxx

0;OSC

http://xxx/jtlwawi_connector/dbeS/getCountArtikel.php

userID=xxx

0;1

http://xxx/jtlwawi_connector/dbeS/getArtikel.php

userID=xxx

0;
"P";"287";"TEST_2_Export";"Testartikel";"

Langtextbeschreibung hier rein
ist NUR ein Test</P>";;"10";"10";;;;"Y";"Y";"0";;"1";;;"0";"0";;"N";"N";"0.00";"N";"N";"N";"N";"0";"0";"Fruit of the Loom";"http://xxx/images/produktbilder/fol/F963.jpg";
"K";"Unterwäsche";;"54";"1";;;
"V";"1";"Farbe";"Y";
"W";"1";"2840";"white (WH)";"-0.45";"-0.45";
"W";"1";"2842";"ash (AS)";"0";"0.0000";
"W";"1";"2843";"kelly green (KG)";"0";"0.0000";
"W";"1";"2844";"red (RD)";"0";"0.0000";
"W";"1";"2845";"black (BK)";"0";"0.0000";
"V";"2";"Größe";"Y";
"W";"2";"2846";"XS";"0";"0.0000";
"W";"2";"2847";"S";"0";"0.0000";
"W";"2";"2848";"M";"0";"0.0000";
"W";"2";"2849";"L";"1";"1.0000";


"P";"287";"TEST_2_Export";"Testartikel";"

Langtextbeschreibung hier rein
ist NUR ein Test</P>";;"10";"10";;;;"Y";"Y";"0";;"1";;;"0";"0";;"N";"N";"0.00";"N";"N";"N";"N";"0";"0";"Fruit of the Loom";"http://xxx/images/produktbilder/fol/F963.jpg";

http://xxx/images/produktbilder/fol/F963.jpg

userID=xxx

"K";"Unterwäsche";;"54";"1";;;

"V";"1";"Farbe";"Y";

"W";"1";"2840";"white (WH)";"-0.45";"-0.45";

"W";"1";"2842";"ash (AS)";"0";"0.0000";

"W";"1";"2843";"kelly green (KG)";"0";"0.0000";

"W";"1";"2844";"red (RD)";"0";"0.0000";

"W";"1";"2845";"black (BK)";"0";"0.0000";

"V";"2";"Größe";"Y";

"W";"2";"2846";"XS";"0";"0.0000";

"W";"2";"2847";"S";"0";"0.0000";

"W";"2";"2848";"M";"0";"0.0000";

"W";"2";"2849";"L";"1";"1.0000";

http://xxx/jtlwawi_connector/dbeS/setArtikel.php

userID=xxx&data=P%3b284%3b287%3b%0aK%3b16%3b54%3b%0aW%3b0%3b2840%3b284%3b%0aW%3b0%
3b2842%3b284%3b%0aW%3b0%3b2843%3b284%3b%0aW%3b0%3b2844%3b284%3b%0aW%3b0%3b2845%
3b284%3b%0aW%3b0%3b2846%3b284%3b%0aW%3b0%3b2847%3b284%3b%0aW%3b0%3b2848%3b284%3b%
0aW%3b0%3b2849%3b284%3b%0a

0

P;284;287;
K;16;54;
W;0;2840;284;
W;0;2842;284;
W;0;2843;284;
W;0;2844;284;
W;0;2845;284;
W;0;2846;284;
W;0;2847;284;
W;0;2848;284;
W;0;2849;284;


userID=xxx&data=P%3b284%3b287%3b%0aK%3b16%3b54%3b%0aW%3b0%3b2840%3b284%3b%0aW%3b0%
3b2842%3b284%3b%0aW%3b0%3b2843%3b284%3b%0aW%3b0%3b2844%3b284%3b%0aW%3b0%3b2845%
3b284%3b%0aW%3b0%3b2846%3b284%3b%0aW%3b0%3b2847%3b284%3b%0aW%3b0%3b2848%3b284%
3b%0aW%3b0%3b2849%3b284%3b%0a

0

------ ARTIKEL ENDE ------

http://xxx/jtlwawi_connector/dbeS/SetFirma.php

KeyFirma=1&Name=&Unternehmer=&Strasse=&PLZ=&Ort=&Land=&Tel=&Fax=&EMail=
&WWW=&BLZ=&KontoNr=&Bank=&USTID=&SteuerNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/GetHaendlerKunden.php

userID=xxx

0

eS:0993

http://xxx/jtlwawi_connector/dbeS/GetBestellung.php

userID=xxx

0
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
300
Köln
HAllo,

die Logdatei ist korrekt.

In JTL-Wawi sollte der Artikel korrekt mit den Variationen übrnmmen worden sein.

Was steht unter Variationen bei diesem Artikel in JTL Wawi?
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
300
Köln
Ah, OK. Wunderbar, hast uns weitergeholfen.


In dbeS/getArtikel.php

die Funktion getVariationswerte (zeile 200-230) umschreiben auf:


Code:
function get_variationswerte($products_id,$options_id)
{
	$variationswerte="";
	//existieren Variationen für diesen Artikel?
	$cur_query = eS_execute_query("select * from products_attributes where options_id=".$options_id." and products_id=".$products_id);
	while ($variation = mysql_fetch_object($cur_query))
	{
		if ($variation->options_values_id>0)
		{
			//hole Variationswertnamen etc.
			$opt_query = eS_execute_query("select products_options_values_name, products_options_values_id from products_options_values where language_id=".$GLOBALS['einstellungen']->languages_id." and products_options_values_id=".$variation->options_values_id);
			$var_name = mysql_fetch_object($opt_query);
			if ($var_name->products_options_values_id>0)
			{
				if ($variation->price_prefix=="-")
					$variation->options_values_price*=-1;
				$variationswerte.=CSVkonform("W").";".			
					CSVkonform($variation->options_id).";".
					CSVkonform($variation->products_attributes_id).";".
					CSVkonform($var_name->products_options_values_name).";".
					CSVkonform($variation->options_values_price+$variation->options_values_price*$GLOBALS['currency']->value*$GLOBALS['tax']/100).";".
					CSVkonform($variation->options_values_price).";";
					CSVkonform(0).";".
					";".
					CSVkonform(0).";".
					CSVkonform(0).";\n";
			}
		}		
	}
	return $variationswerte;
}

Dann erneut versuchen. Dies muss mit einer der letzten Versionen untergegangen sein.

Ab der nächsten Version vom OSC Connector wird dieser Fehler behoben sein.
 

HEPI

Gut bekanntes Mitglied
5. Dezember 2006
123
1
Stimmt noch nicht ganz. In der Wawi sieht es jetzt so aus:

Farbe (0)
white (WH)[Aufpreis:-0.45 EUR Anz:0.00 Gew.Diff:0.00 Sort:26 ArtNr:1]
XS[Aufpreis:0.00 EUR Anz:0.00 Gew.Diff:0.00 Sort:31 ArtNr:2]

Die es.log wie folgt:

http://xxx/jtlwawi_connector/dbeS/mytest.php

uID=xxx

0;OSC

http://xxx/jtlwawi_connector/dbeS/getCountArtikel.php

userID=xxx

0;1

http://xxx/jtlwawi_connector/dbeS/getArtikel.php

userID=xxx

0;
"P";"287";"TEST_2_Export";"Testartikel";"

Langtextbeschreibung hier rein
ist NUR ein Test</P>";;"10";"10";;;;"Y";"Y";"0";;"1";;;"0";"0";;"N";"N";"0.00";"N";"N";"N";"N";"0";"0";"Fruit of the Loom";"http://xxx/images/produktbilder/fol/F963.jpg";
"K";"Unterwäsche";;"54";"1";;;
"V";"1";"Farbe";"Y";
"W";"1";"2840";"white (WH)";"-0.45";"-0.45";"W";"1";"2842";"ash (AS)";"0";"0.0000";"W";"1";"2843";"kelly green (KG)";"0";"0.0000";"W";"1";"2844";"red (RD)";"0";"0.0000";"W";"1";"2845";"black (BK)";"0";"0.0000";"V";"2";"Größe";"Y";
"W";"2";"2846";"XS";"0";"0.0000";"W";"2";"2847";"S";"0";"0.0000";"W";"2";"2848";"M";"0";"0.0000";"W";"2";"2849";"L";"1";"1.0000";

"P";"287";"TEST_2_Export";"Testartikel";"

Langtextbeschreibung hier rein
ist NUR ein Test</P>";;"10";"10";;;;"Y";"Y";"0";;"1";;;"0";"0";;"N";"N";"0.00";"N";"N";"N";"N";"0";"0";"Fruit of the Loom";"http://xxx/images/produktbilder/fol/F963.jpg";

http://xxx/images/produktbilder/fol/F963.jpg

userID=xxx

"K";"Unterwäsche";;"54";"1";;;

"V";"1";"Farbe";"Y";

"W";"1";"2840";"white (WH)";"-0.45";"-0.45";"W";"1";"2842";"ash (AS)";"0";"0.0000";"W";"1";"2843";"kelly green (KG)";"0";"0.0000";"W";"1";"2844";"red (RD)";"0";"0.0000";"W";"1";"2845";"black (BK)";"0";"0.0000";"V";"2";"Größe";"Y";

"W";"2";"2846";"XS";"0";"0.0000";"W";"2";"2847";"S";"0";"0.0000";"W";"2";"2848";"M";"0";"0.0000";"W";"2";"2849";"L";"1";"1.0000";

http://xxx/jtlwawi_connector/dbeS/setArtikel.php

userID=xxx&data=P%3b285%3b287%3b%0aK%3b16%3b54%3b%0aW%3b9%3b2840%3b285%3b%0aW%3b10%3b2846%3b285%3b%0a

0

P;285;287;
K;16;54;
W;9;2840;285;
W;10;2846;285;


userID=xxx&data=P%3b285%3b287%3b%0aK%3b16%3b54%3b%0aW%3b9%3b2840%3b285%3b%0aW%3b10%3b2846%3b285%3b%0a

0

------ ARTIKEL ENDE ------

http://xxx/jtlwawi_connector/dbeS/SetFirma.php

KeyFirma=1&Name=&Unternehmer=&Strasse=&PLZ=&Ort=&Land=&Tel=&Fax=&EMail=&WWW=&BLZ=&KontoNr=&Bank=&USTID=
&SteuerNr=&action=1&userID=xxx

http://xxx/jtlwawi_connector/dbeS/GetHaendlerKunden.php

userID=xxx

0

eS:0993

http://xxx/jtlwawi_connector/dbeS/GetBestellung.php

userID=xxx

0
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
300
Köln
Hallo,

fast.

Es geht hierum:
Code:
"V";"1";"Farbe";"Y"; 
"W";"1";"2840";"white (WH)";"-0.45";"-0.45";"W";"1";"2842";"ash (AS)";"0";"0.0000";"W";"1";"2843";"kelly green (KG)";"0";"0.0000";"W";"1";"2844";"red (RD)";"0";"0.0000";"W";"1";"2845";"black (BK)";"0";"0.0000";"V";"2";"Größe";"Y";
Ein "W" ist ein Wert, er muss 8 Werte haben, bei Dir hat er 5 - das ist die alte Version.
Weiterhin muss jedes W in einer Zeile stehen. Ist auch nicht der Fall.
 

HEPI

Gut bekanntes Mitglied
5. Dezember 2006
123
1
In der DB ist

eazysales_mvariation = 0 Einträge
eazysales_mvariationswert = 2 Einträge
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
300
Köln
OK, Du hattest Recht:

Ändere noch die Funktion get_variationen um in:
Zeile 232-256
Code:
function get_variationen($products_id)
{
	$variationen="";
	//existieren Variationen zu diesem Artikel?
	$cur_query = eS_execute_query("select * from products_attributes where products_id=".$products_id." group by options_id");
	while ($variation = mysql_fetch_object($cur_query))
	{
		if ($variation->options_id>0)
		{
			//hole Variationsname etc.
			$opt_query = eS_execute_query("select products_options_name, products_options_id from products_options where language_id=".$GLOBALS['einstellungen']->languages_id." and products_options_id=".$variation->options_id);
			$var_name = mysql_fetch_object($opt_query);
			if ($var_name->products_options_id>0)
			{
				$variationen.=CSVkonform("V").";".			
					CSVkonform($variation->options_id).";".
					CSVkonform($var_name->products_options_name).";".					
					CSVkonform("Y").";".
					CSVkonform(0).";\n";
			}
			$variationen.=get_variationswerte($products_id,$variation->options_id);
		}
	}
	return $variationen;
}

Das sollte dann klappen
 

HEPI

Gut bekanntes Mitglied
5. Dezember 2006
123
1
Immer noch das Gleiche. In der Log sieht es jetzt so aus:

"K";"Unterwäsche";;"54";"1";;;
"V";"1";"Farbe";"Y";"0";
"W";"1";"2840";"white (WH)";"-0.45";"-0.45";"W";"1";"2842";"ash (AS)";"0";"0.0000";"W";"1";"2843";"kelly green (KG)";"0";"0.0000";"W";"1";"2844";"red (RD)";"0";"0.0000";"W";"1";"2845";"black (BK)";"0";"0.0000";"V";"2";"Größe";"Y";"0";
"W";"2";"2846";"XS";"0";"0.0000";"W";"2";"2847";"S";"0";"0.0000";"W";"2";"2848";"M";"0";"0.0000";"W";"2";"2849";"L";"1";"1.0000";
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
300
Köln
Ohh, ein dummer Fehler:

Es muss ein Symikolon durch einen Punkt ersetzt werden:
Code:
function get_variationswerte($products_id,$options_id) 
{ 
   $variationswerte=""; 
   //existieren Variationen für diesen Artikel? 
   $cur_query = eS_execute_query("select * from products_attributes where options_id=".$options_id." and products_id=".$products_id); 
   while ($variation = mysql_fetch_object($cur_query)) 
   { 
      if ($variation->options_values_id>0) 
      { 
         //hole Variationswertnamen etc. 
         $opt_query = eS_execute_query("select products_options_values_name, products_options_values_id from products_options_values where language_id=".$GLOBALS['einstellungen']->languages_id." and products_options_values_id=".$variation->options_values_id); 
         $var_name = mysql_fetch_object($opt_query); 
         if ($var_name->products_options_values_id>0) 
         { 
            if ($variation->price_prefix=="-") 
               $variation->options_values_price*=-1; 
            $variationswerte.=CSVkonform("W").";".          
               CSVkonform($variation->options_id).";". 
               CSVkonform($variation->products_attributes_id).";". 
               CSVkonform($var_name->products_options_values_name).";". 
               CSVkonform($variation->options_values_price+$variation->options_values_price*$GLOBALS['currency']->value*$GLOBALS['tax']/100).";". 
               CSVkonform($variation->options_values_price).";".
               CSVkonform(0).";". 
               ";". 
               CSVkonform(0).";". 
               CSVkonform(0).";\n"; 
         } 
      }       
   } 
   return $variationswerte; 
}

Genau geht es um die Zeile:
Code:
               CSVkonform($variation->options_values_price).";".
 

HEPI

Gut bekanntes Mitglied
5. Dezember 2006
123
1
Oh ja - gestolpert bin ich darüber, aber ... :roll:

Jetzt funktioiert der Import. Werde es nun mit allen Artikeln machen. Die Sortierung denke ich ist im Wertk die Pos. 4 und die Artikelnummer Pos. 5.
 

Ähnliche Themen