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
und meine ArtikelPict.php
habe ich abgeändert nach diesem Tipp.
Und hier mal ein Beispiel.
Kann mir da jemand helfen?
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); ?>
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); ?>
Und hier mal ein Beispiel.
Kann mir da jemand helfen?