|
|||
|
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 """ vorranngestellt. Sieht dann so aus : "CI9CI102 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('\"\"',""",$items[$i]);
if ($replace_quotes){
$items[$i] = str_replace('\"',""",$items[$i]);
$items[$i] = str_replace("\'","'",$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('""',""",$items[$i]);
if ($replace_quotes){
$items[$i] = str_replace('"',""",$items[$i]);
$items[$i] = str_replace("'","'",$items[$i]);
}
}
}
}
}
:grml: :cry: Gruss Hatschi |
|
|||
|
vielen dank f?r diese Info !
ich bekomme diese " nach einem downl. via ep angezeigt bearbeite sie so wie von dir empfolen, lade sie wieder hoch ! und diese " ist weg. aber der import ist nun ohne preis ... naja mal weiter schauen ! vielen dank noch einmal !!! :bounce: |
![]() |
| Lesezeichen |
| Stichworte |
| and#34, artikelnr, import |
| Themen-Optionen | |
| Ansicht | |
|
|