Ankündigung

Einklappen
Keine Ankündigung bisher.

Mehrere Artikelbilder von JTL Wawi nach ZC

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

    Mehrere Artikelbilder von JTL Wawi nach ZC

    Hallo!

    Ich habe mehrere Artikelbilder von JTL Wawi ZC 1.3.9.h gesndet im 1. Augenblick sieht es auch gut aus doch wenn ich die Bilder vergrößern will kommt immer nur das Hauptbild.
    Meine setArtikelBild.php
    Code:
    <?php
    /**
     * jtlwawi_Connector/dbeS/setArtikelBild.php
     * Synchronisationsscript
     *
     * Es gelten die Nutzungs- und Lizenzhinweise unter [URL]http://www.jtl-software.de/jtlwawi.php[/URL]
     *
     * @author JTL-Software <thomas@jtl-software.de>
     * @copyright 2006, JTL-Software (modified 2007-2008, Vygi)
     * @link [URL]http://jtl-software.de/jtlwawi.php[/URL]
     * @version v1.04V / 30.06.08
     */
    
    require_once("syncinclude.php");
    
    $return = 3;
    $_POST['userID'] = $_POST['euser'];
    $_POST['userPWD'] = $_POST['epass'];
    
    if (auth()) {
      $return = 0;
      if (intval($_POST['kArtikelBild']) > 0 && $_FILES['bild']) {
        // hol products_id
        $products_id = getFremdArtikel(intval($_POST['kArtikelBild']));
        if ($products_id > 0 AND intval($_POST['nNr']) > 0) {
    		if (intval($_POST['nNr']) == 1) {
    			$oldPictureNameQuery = eS_execute_query("select products_image from " . DB_PREFIX . "products where products_id=" . $products_id.";");
    			if ($oldPictureNameQuery){
    				$oldPictureName = mysql_fetch_object($oldPictureNameQuery);
    				$picturePath = DIR_FS_CATALOG_IMAGES.$oldPictureName->products_image;
    				if (!empty($oldPictureName->products_image)){
    					if (file_exists($picturePath)){
    						unlink($picturePath);
    					}
    				}
    			}
    			$bildname = $products_id . '_0.jpg';
    			eS_execute_query("update " . DB_PREFIX . "products set products_image='$bildname' where products_id=" . $products_id);	  
    		} else {
    			$bildname = $products_id . '_0_' . (intval($_POST['nNr'])-1) . '.jpg';			
    			$picturePath = DIR_FS_CATALOG_IMAGES.$bildname;
    			if (file_exists($picturePath)){
    				unlink($picturePath);
    			}
    		}
    		move_uploaded_file($_FILES['bild']['tmp_name'], DIR_FS_CATALOG_IMAGES . $bildname);
    		chmod (DIR_FS_CATALOG_IMAGES . $bildname, 0644);
        }
      }
    }
    mysql_close();
    echo($return);
    logge($return);
    
    ?>
    und meine ArtikelPict.php
    Code:
    <?php
    /**
     * jtlwawi_Connector/dbeS/ArtikelPict.php
     * Synchronisationsscript
     * 
     * Es gelten die Nutzungs- und Lizenzhinweise unter [URL]http://www.jtl-software.de/jtlwawi.php[/URL]
     * 
     * @author JTL-Software <thomas@jtl-software.de>
     * @copyright 2006, JTL-Software
     * @link [URL]http://jtl-software.de/jtlwawi.php[/URL]
     * @version v1.01 / 20.08.06
    */
    
    require_once("syncinclude.php");
    $return=3;
    if (auth()){
    	$return=0;
    	if (intval($_POST["action"]) == 3 && intval($_POST['KeyArtikel'])>0) {
    		$return =0;
    		//hol products_id
    		$products_id = getFremdArtikel(intval($_POST['KeyArtikel']));
    		if ($products_id > 0 AND intval($_POST['Nr']) > 0) {
    			if (intval($_POST['Nr']) == 1) {
    				$oldPictureNameQuery = eS_execute_query("select products_image from " . DB_PREFIX . "products where products_id=" . $products_id.";");
    				if ($oldPictureNameQuery){
    					$oldPictureName = mysql_fetch_object($oldPictureNameQuery);
    					$picturePath = DIR_FS_CATALOG_IMAGES.$oldPictureName->products_image;
    					if (!empty($oldPictureName->products_image)){
    						if (file_exists($picturePath)){
    							unlink($picturePath);
    						}
    					}
    				}			
    				eS_execute_query("update ".DB_PREFIX."products set products_image='' where products_id=".$products_id);
    			} else {
    				$bildname = $products_id . '_0_' . (intval($_POST['Nr'])-1) . '.jpg';			
    				$picturePath = DIR_FS_CATALOG_IMAGES.$bildname;
    				if (file_exists($picturePath)){
    					unlink($picturePath);
    				}
    			}
    		}
    	}
    	
    }
    
    mysql_close();
    echo($return);
    //logge($return);
    ?>
    habe ich abgeändert nach diesem Tipp.
    Und hier mal ein Beispiel.
    Kann mir da jemand helfen?
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