#1 (permalink)  
Alt 14.05.2004, 23:13
 
Registriert seit: 29.03.2004
Beiträge: 6
Unglücklich

Hallo Miteinander,

ich bastle nun schon eine ganze weile an dem Goilen shop herum, wird auch langsam, aber ein Problem habe ich noch mit dem Import.
Ich nutze Easypop hier aus dem Download.
Wenn ich die Artikel importiere als artikel.txt (Tab Stop getrennt)
dann bekomme ich immer bei der Artikel Nummer "&#34" vorranngestellt.
Sieht dann so aus : &#34CI9CI102 obwohl es so ein sollte CI9CI102
.
(Ist nur sichtbar wenn man die Artikel bearbeitet)

ich nutze den neusten Shop mit allen patches ...

im shop wird der artikel dann so angezeigt :
ArtNr.: " CI9CI102

in easypop*.php habe ich im Code folgendes gefunden :

Code:
	// first we clean up the row of data

	// chop blanks from each end
	$item1 = ltrim(rtrim($item1));

	// blow it into an array, splitting on the tabs
	$items = explode($separator, $item1);

	// make sure all non-set things are set to '';
	// and strip the quotes from the start and end of the stings.
	// escape any special chars for the database.
	foreach( $filelayout as $key=> $value){
 $i = $filelayout[$key];
 if (isset($items[$i]) == false) {
 	$items[$i]='';
 } else {
 	// Check to see if either of the magic_quotes are turned on or off;
 	// And apply filtering accordingly.
 	if (function_exists('ini_get')) {
  //echo "Getting ready to check magic quotes<br>";
  if (ini_get('magic_quotes_runtime') == 1){
  	// The magic_quotes_runtime are on, so lets account for them
  	// check if the last character is a quote;
  	// if it is, chop off the quotes.
  	if (substr($items[$i],-1) == '"'){
   $items[$i] = substr($items[$i],2,strlen($items[$i])-4);
  	}
  	// now any remaining doubled double quotes should be converted to one doublequote
  	$items[$i] = str_replace('\"\"',"&#34",$items[$i]);
  	if ($replace_quotes){
   $items[$i] = str_replace('\"',"&#34",$items[$i]);
   $items[$i] = str_replace("\'","&#39",$items[$i]);
  	}
  } else { // no magic_quotes are on
  	// check if the last character is a quote;
  	// if it is, chop off the 1st and last character of the string.
  	if (substr($items[$i],-1) == '"'){
   $items[$i] = substr($items[$i],1,strlen($items[$i])-2);
  	}
  	// now any remaining doubled double quotes should be converted to one doublequote
  	$items[$i] = str_replace('""',"&#34",$items[$i]);
  	if ($replace_quotes){
   $items[$i] = str_replace('"',"&#34",$items[$i]);
   $items[$i] = str_replace("'","&#39",$items[$i]);
  	}
  }
 	}
 }
	}
da ich aber noch nicht so wirklich fit bin im Coden wie der ein oder andere hier w?rde ich mich ?ber einen kleinen Tip wirklich freuen.
:grml: :cry:
Gruss Hatschi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 15.05.2004, 15:20
Benutzerbild von stp69  
Registriert seit: 02.03.2004
Beiträge: 125
Standard

Moin,

musst Du halt mit [STRG+h] in der Zeile v_products_model das " l?schen.

Stellt sich die Frage wo das " herkommt... importierst Du die Artikel-Nr aus einer anderen Liste? Die Nr sehen schwer nach Hersteller-Teile-Nr aus der Printer Ecke aus...

Na egal? irgendwie mu? das " ja reinkommen. Da solltest Du ansetzen

Gru?

Stephan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 02.06.2004, 21:14
 
Registriert seit: 29.03.2004
Beiträge: 6
Beitrag

vielen dank f?r diese Info !

ich bekomme diese &#34 nach einem downl. via ep angezeigt bearbeite sie so wie von dir empfolen, lade sie wieder hoch ! und diese &#34 ist weg.
aber der import ist nun ohne preis ... naja mal weiter schauen !

vielen dank noch einmal !!! :bounce:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
and#34, artikelnr, import

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 05:23 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand