Möchten Sie osCommerce Unterstützen? Teilen Sie in die Community Sponsorship Programm mit!

Willkommen, Gast ( Anmelden | Registrierung )

29 Seiten V  « < 17 18 19 20 21 > »   
Reply to this topicStart new topic
Neuentwicklung Ebay Contrib (auction.LISTER)
gatling
Beitrag 15.03.2008 08:25
Beitrag #361
Daniel



Gruppe: Members
Beiträge: 58
Beigetreten: 26.12.2007
Mitglieds-Nr.: 35.875



QUELLTEXT
Sorry, this is a demo version. Please buy a license to get this file.


Hat jemand evtl. einen besseren Vorschlag? Evtl. sogar selbst getestet?
Go to the top of the page
 
+Quote Post
gatling
Beitrag 15.03.2008 17:49
Beitrag #362
Daniel



Gruppe: Members
Beiträge: 58
Beigetreten: 26.12.2007
Mitglieds-Nr.: 35.875



Ich habe das Problem mit Multiauktionen (wenn man mehrmals den gleichen Artikel von der gleichen Auktion kauft) recht gut identifiziert und ne Menge über arrays gelernt (!der Warenkorb ist so grausam!)

Montag gibts mehr smile.gif

PS: danach kümmer ich mich um den Lagerbestand
Go to the top of the page
 
+Quote Post
gatling
Beitrag 17.03.2008 02:43
Beitrag #363
Daniel



Gruppe: Members
Beiträge: 58
Beigetreten: 26.12.2007
Mitglieds-Nr.: 35.875



Fix für Multiauktionen:

\includes\classes\shopping_cart.php

ändern von (in der Funktion function restore_contents() ca. Zeile 68)

QUELLTEXT
        $this->contents[$myproducts_id] =
            array('qty' => $products['customers_basket_quantity'], 'auctionid' => $products['auctionid']);

in

QUELLTEXT
        $qty_check2=$this->contents[$myproducts_id]['qty'];
        $qty_check=$products['customers_basket_quantity'];
        $qty_check=(int)$qty_check + (int)$qty_check2;
        $this->contents[$myproducts_id] =
            array('qty' => $qty_check, 'auctionid' => $products['auctionid']);


\admin\auctions_list_sold.php

QUELLTEXT
if ($_POST['action']=="delete")
{
    $checkauctions = tep_db_query($auctionssql);
    while ($check_values = tep_db_fetch_array($checkauctions)) {
      $check_id=$check_values['auction_id'];

      if ($$check_id)
      {


      //Multiauktionen - geht schief????  //     tep_db_query("DELETE FROM auction_list WHERE auction_id=$check_id");
      tep_db_query("DELETE FROM auction_details WHERE auction_id=$check_id");




      }
    }
}

if ($_POST['action']=="send_again")
{
    $checkauctions = tep_db_query($auctionssql);
    while ($check_values = tep_db_fetch_array($checkauctions)) {
      $check_id=$check_values['auction_id'];

      $gotnotifiedsql = "SELECT notified FROM auction_details WHERE auction_id= '" .$check_values['auction_id'] . "'";
      $gotnotified = tep_db_query($gotnotifiedsql);
      $gotnotified_value = tep_db_fetch_array($gotnotified);

      if ($$check_id && $gotnotified_value['notified']!=2)
      {
       $email_text = text_sending_again($check_values['buyer_email']);
       sendemail($email_text, $check_values['buyer_email']);
       $notified = "UPDATE auction_details set notified=2 where notified=1 AND buyer_email = '" .$check_values['buyer_email'] . "'";
       tep_db_query($notified);
      }
    }
    $notified = "UPDATE auction_details set notified=1 where notified=2";
    tep_db_query($notified);
}

wird zu:

QUELLTEXT
if ($_POST['action']=="delete")
{
    $checkauctions = tep_db_query($auctionssql);
    while ($check_values = tep_db_fetch_array($checkauctions)) {
      $check_id=$check_values['id'];

      if ($$check_id)
      {


      //Multiauktionen - geht schief????  //     tep_db_query("DELETE FROM auction_list WHERE auction_id=$check_id");

      tep_db_query("DELETE FROM auction_details WHERE id=$check_id");
      tep_db_query("DELETE FROM customers_basket WHERE a_details_id=$check_id");

      //    auctions bleiben erhalten, nur die details werden gelöscht (Kaufbekundung) (logging!)
      }
    }
}

if ($_POST['action']=="send_again")
{
    $checkauctions = tep_db_query($auctionssql);
    while ($check_values = tep_db_fetch_array($checkauctions)) {
      $check_id=$check_values['id'];

      $gotnotifiedsql = "SELECT notified FROM auction_details WHERE id= '" .$check_values['id'] . "'";
      $gotnotified = tep_db_query($gotnotifiedsql);
      $gotnotified_value = tep_db_fetch_array($gotnotified);

      if ($$check_id && $gotnotified_value['notified']!=2)
      {
       $email_text = text_sending_again($check_values['buyer_email']);
       sendemail($email_text, $check_values['buyer_email']);
       $notified = "UPDATE auction_details set notified=2 where notified=1 AND buyer_email = '" .$check_values['buyer_email'] . "'";
       tep_db_query($notified);
      }
    }
    $notified = "UPDATE auction_details set notified=1 where notified=2";
    tep_db_query($notified);
}

und aus:

QUELLTEXT
            $checkbox="<input name=\"".$auctions_values['auction_id']."\" type=\"checkbox\" id=\"".$auctions_values['auction_id']."a\" value=\"1\">"; //dfsdf

wird

QUELLTEXT
            $checkbox="<input name=\"".$auctions_values['id']."\" type=\"checkbox\" id=\"".$auctions_values['id']."a\" value=\"1\">";


außerdem fügen wir noch einen Hinweis hinzu - nach:

QUELLTEXT
          <select name="action" id="action" onChange="form1.submit()">
          <option>-</option>
          <option value=delete>löschen</option>
          <option value=send_again>erneut benachrichtigen</option>
          </select>


schieben wir einfach noch

QUELLTEXT
  Achtung: löschen bedeutet vom Vertrag zurücktreten (Warenkorb wird um Artikel geleert)

ein

\admin\functions\helpers.php
Die Funktion addAuctionsInBasket wird umgeschrieben von

QUELLTEXT
function addAuctionsInBasket($buyeremail){
    $productssql = "SELECT auction_list.auction_id, auction_list.auction_title, auction_list.starttime, auction_details.endtime,
    auction_list.product_id, auction_details.amount, auction_details.auction_endprice, customers.customers_id,
    auction_details.basket FROM auction_list, auction_details, customers WHERE
    customers.customers_email_address = auction_details.buyer_email AND
    auction_list.auction_id = auction_details.auction_id AND
    auction_details.basket =1 AND auction_details.order_number = 0 AND auction_details.buyer_email='".tep_db_input($buyeremail)."'";
    $myproducts = tep_db_query($productssql);
    $products_text = "";
    while ($products_values = tep_db_fetch_array($myproducts)) {
        //if(!$products_values['basket']){
            $my_sql_query = "select distinct(options_id) from ".TABLE_PRODUCTS_ATTRIBUTES." where products_id = '".$products_values['product_id']."'";
            $check_attribute_query = tep_db_query($my_sql_query);
            $myattribute_ids = "";
            
            while ($check_attribute = tep_db_fetch_array($check_attribute_query)) {      
              $products_options_array = array();        
              $sql_query = "SELECT options_values_id FROM " . TABLE_PRODUCTS_ATTRIBUTES . " where
              products_id = '".$products_values['product_id']."'
              and options_id = '".$check_attribute['options_id']."' and options_values_price <= '0'";              
              $attribute_query = tep_db_query($sql_query);
              $products_options = tep_db_fetch_array($attribute_query);
              $myattribute_ids .= "{".$check_attribute['options_id']."}".$products_options['options_values_id'];
            }
                  
            $sqlquery =
            "insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id,
            customers_basket_quantity,  final_price,
            customers_basket_date_added, auction, auctionid)
            values ('" . $products_values['customers_id'] . "',
            '" . tep_db_input($products_values['product_id'].$myattribute_ids) . "',
            '" . $products_values['amount'] . "',
            '" . tep_db_input($products_values['auction_endprice']) . "',
            '" . date('Ymd') . "',
            '1', '" . tep_db_input($products_values['auction_id']) . "')";
            tep_db_query($sqlquery);
            




            $tmpattid = explode("{",$myattribute_ids);
            for($i=1;$i<count($tmpattid);$i++){
                $tmp = explode("}",$tmpattid[$i]);
                $myoptionid = $tmp[0];
                $myattvalueid = $tmp[1];
                $sqlattributequery = "insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . "
                (customers_id, products_id, products_options_id, products_options_value_id, auctionid)
                values ('" . $products_values['customers_id'] . "',
                '" . tep_db_input($products_values['product_id'].$myattribute_ids) . "',
                '" . $myoptionid . "', '" . $myattvalueid . "', '".tep_db_input($products_values['auction_id'])."')";
                tep_db_query($sqlattributequery);                
            }                        
            
            /*$sqlstring = "
            UPDATE `auctions_list` SET `starttime` = '".$products_values['starttime']."',
            `endtime` = '".$products_values['endtime']."',
            `basket` = '1' WHERE `auctions_id` = '".$products_values['auctions_id']."'";*/
            $products_text .= $products_values['amount']." x ".$products_values['auction_title'];
            $products_text .= " = ".($products_values['amount']*$products_values['auction_endprice'])." €\n";
            /*$auctions_update = tep_db_query($sqlstring);*/                            
        //}
    }
    return $products_text;
}

zu

QUELLTEXT
function addAuctionsInBasket($buyeremail){
    $productssql = "SELECT auction_list.auction_id, auction_list.auction_title, auction_list.starttime, auction_details.endtime,
    auction_list.product_id, auction_details.amount, auction_details.auction_endprice, customers.customers_id,
    auction_details.basket, auction_details.id as a_id FROM auction_list, auction_details, customers WHERE
    customers.customers_email_address = auction_details.buyer_email AND
    auction_list.auction_id = auction_details.auction_id AND
    auction_details.basket =1 AND auction_details.order_number = 0 AND auction_details.notified=0  AND auction_details.buyer_email='".tep_db_input($buyeremail)."'";
    $myproducts = tep_db_query($productssql);
    $products_text = "";
    while ($products_values = tep_db_fetch_array($myproducts)) {
        //if(!$products_values['basket']){
            $my_sql_query = "select distinct(options_id) from ".TABLE_PRODUCTS_ATTRIBUTES." where products_id = '".$products_values['product_id']."'";
            $check_attribute_query = tep_db_query($my_sql_query);
            $myattribute_ids = "";
            
            while ($check_attribute = tep_db_fetch_array($check_attribute_query)) {      
              $products_options_array = array();        
              $sql_query = "SELECT options_values_id FROM " . TABLE_PRODUCTS_ATTRIBUTES . " where
              products_id = '".$products_values['product_id']."'
              and options_id = '".$check_attribute['options_id']."' and options_values_price <= '0'";              
              $attribute_query = tep_db_query($sql_query);
              $products_options = tep_db_fetch_array($attribute_query);
              $myattribute_ids .= "{".$check_attribute['options_id']."}".$products_options['options_values_id'];
            }
                  
            $sqlquery =
            "insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id,
            customers_basket_quantity,  final_price,
            customers_basket_date_added, auction, auctionid, a_details_id)
            values ('" . $products_values['customers_id'] . "',
            '" . tep_db_input($products_values['product_id'].$myattribute_ids) . "',
            '" . $products_values['amount'] . "',
            '" . tep_db_input($products_values['auction_endprice']) . "',
            '" . date('Ymd') . "',
            '1', '" . tep_db_input($products_values['auction_id']) . "',
            '" . tep_db_input($products_values['a_id']) . "')";

            tep_db_query($sqlquery);

            //NACHARBEITEN BEI OPTIONS_FIX

            $tmpattid = explode("{",$myattribute_ids);
            for($i=1;$i<count($tmpattid);$i++){
                $tmp = explode("}",$tmpattid[$i]);
                $myoptionid = $tmp[0];
                $myattvalueid = $tmp[1];
                $sqlattributequery = "insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . "
                (customers_id, products_id, products_options_id, products_options_value_id, auctionid)
                values ('" . $products_values['customers_id'] . "',
                '" . tep_db_input($products_values['product_id'].$myattribute_ids) . "',
                '" . $myoptionid . "', '" . $myattvalueid . "', '".tep_db_input($products_values['auction_id'])."')";
                tep_db_query($sqlattributequery);                
            }                        
            
            /*$sqlstring = "
            UPDATE `auctions_list` SET `starttime` = '".$products_values['starttime']."',
            `endtime` = '".$products_values['endtime']."',
            `basket` = '1' WHERE `auctions_id` = '".$products_values['auctions_id']."'";*/
            $products_text .= $products_values['amount']." x ".$products_values['auction_title'];
            $products_text .= " = ".($products_values['amount']*$products_values['auction_endprice'])." €\n";
            /*$auctions_update = tep_db_query($sqlstring);*/                            
        //}
    }
    return $products_text;
}


Jetzt das wichtigste:
geht in eure DB und gebt die Anweisung ein:

ALTER TABLE customers_basket ADD a_details_id INT(11) NULL DEFAULT NULL ;


Wer dazu Erläuterungen möchte kann mir ja eine PN schreiben smile.gif

kurz:
Warenkorb
- gleicher Ebayartikel von Multiauktion gekauft - Anzahl wird nicht überschrieben sondern addiert
Löschung von Artikeln
-Löschung wird per DatenbankID und nicht EBAYid addressiert, deswegen der Eintrag in der DB und in der helpers.php

Hier die Links (weiter oben im Post ist wegen meinem Provider was schief gegangen):

UPDATE_0.0.4c_ref6__0.0.4c_ref7

Voraussetzung:
auctionlister_0.0.4c
+
UPDATE_0.0.4c__0.0.4c_ref3.zip
+
UPDATE_0.0.4c_ref3__0.0.4c_ref4
+
UPDATE_0.0.4c_ref4__0.0.4c_ref5
+
UPDATE_0.0.4c_ref5__0.0.4c_ref6

Grüße,

Gatling
Go to the top of the page
 
+Quote Post
Paulchen_Panther
Beitrag 17.03.2008 08:09
Beitrag #364
Paul



Gruppe: Members
Beiträge: 5.109
Beigetreten: 11.07.2006
Mitglieds-Nr.: 18.905



ZITAT(gatling @ 15.03.2008 17:49) *
PS: danach kümmer ich mich um den Lagerbestand

Supi biggrin.gif

Wird es möglich sein nur den Lagerbestand zwischen eBay und dem Shop abzugleichen

(d.h. wenn ein Artikel bei eBay verkauft wurde dass der dann nach dem Abgleich im Shop vom Lagerbestand abgezogen wird)

ohne den ganzen AL zu installieren ?


Ich frage das weil ich nicht den ganzen checkout über den Shop machen möchte sondern nur den Lagerbestand abgleichen wollte, daher brauche ich eigentlich nicht den ganzen AL obwohl es sehr gute contrib ist und immer besser wird... wink.gif


viele Grüße
Paul
Go to the top of the page
 
+Quote Post
gatling
Beitrag 17.03.2008 14:24
Beitrag #365
Daniel



Gruppe: Members
Beiträge: 58
Beigetreten: 26.12.2007
Mitglieds-Nr.: 35.875



ZITAT(Paulchen_Panther @ 17.03.2008 08:09) *
Supi biggrin.gif

Wird es möglich sein nur den Lagerbestand zwischen eBay und dem Shop abzugleichen

(d.h. wenn ein Artikel bei eBay verkauft wurde dass der dann nach dem Abgleich im Shop vom Lagerbestand abgezogen wird)

ohne den ganzen AL zu installieren ?
Ich frage das weil ich nicht den ganzen checkout über den Shop machen möchte sondern nur den Lagerbestand abgleichen wollte, daher brauche ich eigentlich nicht den ganzen AL obwohl es sehr gute contrib ist und immer besser wird... wink.gif
viele Grüße
Paul



Keine schlechte Überlegung smile.gif

1. AL gibts derzeit nur komplett (wer eine light-version coden will...)

2.
Ich habe es mir so gedacht:

-wird ein Artikel eingestellt, so wird vom Lager abgezogen
-wird der Artikel nicht verkauft, dann wird der Lagerbestand erst durch die Löschung aus der Liste wiederhergestellt

-Eine Löschung eines erfolgreichen Angebotes kann unterteilt werden:
Löschung, weil vom Vertrag zurückgetreten wird, aus welchen Gründen auch immer UND
Löschung, weil Checkout über Ebay erfolgte

Bei ersterem wird der Lagerbestand wieder hergestellt bei letzerem bleibt er abgezogen.
Go to the top of the page
 
+Quote Post
Paulchen_Panther
Beitrag 17.03.2008 20:20
Beitrag #366
Paul



Gruppe: Members
Beiträge: 5.109
Beigetreten: 11.07.2006
Mitglieds-Nr.: 18.905



ZITAT(gatling @ 17.03.2008 14:24) *
Ich habe es mir so gedacht:

-wird ein Artikel eingestellt, so wird vom Lager abgezogen
-wird der Artikel nicht verkauft, dann wird der Lagerbestand erst durch die Löschung aus der Liste wiederhergestellt

find ich nicht so gut, denn man kann ein eBay angebot ja jederzeit beenden, d.h. wenn man den Artikel im Lagerbestand (und somit im Shop) lässt dann kann ihn immer noch ein anderer kaufen, wird er im shop gekauft würde ich den eBay Artikel löschen...

Ich würde da einfacher denken (sofern es einfacher ist):

Lagerbestand = Lagerbestand.Shop - Verkäufe.ebay

Also alle Artikel im Lagerbestand lassen solange sie bei ebay nicht verkauft wurden...


Gruß
Paul
Go to the top of the page
 
+Quote Post
Craxx
Beitrag 18.03.2008 11:34
Beitrag #367
Craxx



Gruppe: Members
Beiträge: 147
Beigetreten: 13.05.2007
Mitglieds-Nr.: 26.613



Ich habe das bisher so gelöst, dass ich die Ebayartikel mit der Contrib enable_disable_categories "ausgeblendet" habe. Damit ist der Artikel im Shop nicht mehr sichtbar, das war quasi eine Notlösung.

Ich kann zwar einen Artikel bei Ebay wieder rausnehmen, wast Du aber Paul, wenn zufällig gleichzeitig der Artikel in Ebay UND im Shop verkauft werden??

Neene die angedachte Lösung von gatling wäre schon klasse.

Schönen Tag
Craxx;)

Der Beitrag wurde von Craxx bearbeitet: 18.03.2008 11:34
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 18.03.2008 12:14
Beitrag #368
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



ZITAT(Paulchen_Panther @ 17.03.2008 20:20) *
Also alle Artikel im Lagerbestand lassen solange sie bei ebay nicht verkauft wurden...

Das ist bei Unternehmen, die viel über das Netz handeln der beste Schritt, Kunden zu vergraulen, wenn der Artikel auf einmal doch nicht mehr vorrätig ist und erst wieder geliefert werden muss.
Dabei spreche ich aus Erfahrung, da wir über 3 verschiedene Wege die Ware an verschiedene Kundenkreise bringen und Anfangs ernsthafte Probleme damit hatten.

Die Käufer im Internet reagieren wirklich auf JEDE Unstimmigkeit - und sei sie noch so klein - ziemlich sensibel. Das geht wirklich ohne Übertreibung und én mass los bei "Freitag Abend kaufen - Montag früh fragen, wo die Ware bleibt".
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 18.03.2008 23:55
Beitrag #369
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



Endlich habe ich Zeit gefunden, meine Änderungen konform zu diesem Thread mal aufzubereiten.
Diese sind noch sehr experimentell und sollen eher als Zuarbeit zu den von gatling angedacheten Änderungen der Version 0.0.5 dienen.

Da ich vermutlich noch keine Dateianhänge hier einbinden darf, gibt es hier die Beschreibung.
Falls jemand die kompletten Dateien wünscht, schickt mir einfach eine PM mit Eurer Mailadresse.

So, hier nun meine Version 0.0.4c Rev. 7.1:
(die seltsam großen Zeilenumbrüche tun mir leid, liegt an Linux bzw am Board, dass mit DOS-Umbrüchen zu arbeiten scheint)

AENDERUNGEN AUCTION.LISTER

!!! Hinweis: !!!

Die Punkte 2.3 und 2.15 betreffen die von gatling

gepostete Variante "Vorselektion von Artikeln !



Funtionstüchtig

- Einstellen von Shop-Artikeln (StoresFixedPrice)

- Preis vorschlagen (BestOffer)

TODO: Mindestpreis setzen

- Versandkosten DE und EU

=> in "Konfiguration->auction.Lister" einstellbar

=> Versandkosten mit 3 Optionen DE (geht)

=> Versandkosten mit 3 Optionen EU (begonnen)



TODO / z.T. im Code schon vorhanden

- Ausbau o.g. Features

- "Artikelzustand" / "ItemConditions"

- "Sofort & Neu" / "NowAndNew"



TODO

- Lokale Vorbereitung von Auktionen

z.B. für Import aus CSV-Dateien und Masseneintrag bei eBay

evtl. auch Export für Turbolister oder eBay-eigenen CSV-Import



Vorraussetzung:

auction.LISTER 0.0.4c

+ UPDATE_0.0.4c__0.0.4c_ref3.zip

+ UPDATE_0.0.4c_ref3__0.0.4c_ref4

+ UPDATE_0.0.4c_ref4__0.0.4c_ref5

+ UPDATE_0.0.4c_ref5__0.0.4c_ref6

+ UPDATE_0.0.4c_ref6__0.0.4c_ref7



Datenbank Geänderte Tabellen:

***********************************************************

QUELLTEXT
-- Tabelle 'auction_list'

ALTER TABLE `auction_list` ADD `shipping_options1` TEXT NOT NULL AFTER `buynow`;



-- Tabelle 'auction_predefinition'

ALTER TABLE `auction_predefinition` CHANGE `de` `de` TINYINT( 1 ) DEFAULT '1';

ALTER TABLE `auction_predefinition` ADD `eu` TINYINT( 1 ) AFTER `de`;

ALTER TABLE `auction_predefinition` ADD `shipping_options` TEXT NOT NULL;



-- Tabelle 'configuration'

INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('', 'eBay VERSANDKOSTEN', 'EBAY_SHIPPING_DEST', 'National', 'eBay Versandkosten fuer Deutschland / Europäische Union', 123, 10, '2008-02-25 17:35:22', '2008-02-25 00:00:00', NULL, 'tep_cfg_select_option(array(''National'', ''EU''),');

INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('', 'Anzahl eBay Versandoptionen', 'EBAY_SHIPOPT_POSS', '3', 'Anzahl moeglicher eBay-Versandkosten pro Region', 123, 11, '2008-02-25 17:25:57', '2008-02-25 00:00:00', NULL, 'tep_cfg_select_option(array(''1'', ''2'', ''3''),');



-- Tabelle 'ebay_auctiontype'

INSERT INTO `ebay_auctiontype` (`id`, `name`, `dname`) VALUES (10, 'StoresFixedPrice', 'Shop-Artikel, 1 od. mehrere Artikel');



-- Tabelle 'ebay_config'

ALTER TABLE `ebay_config` ADD `shipping_version` INT( 5 ) DEFAULT '0' NOT NULL , ADD `shipping_update_time` DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL;




Datenbank Neue Tabellen:

***********************************************************

QUELLTEXT
-- Tabellenstruktur für Tabelle `auction_localprepared`

CREATE TABLE `auction_localprepared` (

  `predef_id` bigint(20) NOT NULL auto_increment,

  `product_id` int(11) default NULL,

  `auction_type` int(11) default NULL,

  `title` text,

  `subtitle` text,

  `cat1` bigint(20) default NULL,

  `cat2` bigint(20) default NULL,

  `description` text,

  `duration` int(11) default NULL,

  `amount` int(11) default NULL,

  `startprice` double default NULL,

  `binprice` double default NULL,

  `city` text,

  `country` text,

  `pic_url` text,

  `gallery_pic_url` text,

  `bold` tinyint(1) default NULL,

  `highlight` tinyint(1) default NULL,

  `border` tinyint(1) default NULL,

  `transfer` tinyint(1) default NULL,

  `cod` tinyint(1) default NULL,

  `paypal` tinyint(1) default NULL,

  `cop` tinyint(1) default NULL,

  `cc` tinyint(1) default NULL,

  `de` tinyint(1) default '1',

  `eu` tinyint(1) default NULL,

  `at` tinyint(1) default NULL,

  `ch` tinyint(1) default NULL,

  `shipping_options` text NOT NULL,

  PRIMARY KEY  (`predef_id`)

) TYPE=MyISAM AUTO_INCREMENT=1;



-- Tabellenstruktur für Tabelle `ebay_shippingmodede`

CREATE TABLE `ebay_shippingmodede` (

  `id` int(11) NOT NULL default '0',

  `name` text NOT NULL,

  PRIMARY KEY  (`id`)

) TYPE=MyISAM;



-- Daten für Tabelle `ebay_shippingmodede`

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (1, 'DE_StandardDispatch');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (2, 'DE_InsuredDispatch');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (3, 'DE_Writing');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (4, 'DE_COD');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (5, 'DE_ExpressOrCourier');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (6, 'DE_InsuredExpressOrCourier');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (7, 'DE_SpecialDispatch');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (8, 'DE_InsuredSpecialDispatch');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (9, 'DE_UnversicherterVersand');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (10, 'DE_DeutschePostBrief');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (11, 'DE_DHLPostpaket');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (12, 'DE_DHLPackchen');

INSERT INTO `ebay_shippingmodede` (`id`, `name`) VALUES (13, 'DE_DeutschePostWarensendung');



-- Tabellenstruktur für Tabelle `ebay_shippingmodeeu`

CREATE TABLE `ebay_shippingmodeeu` (

  `id` int(11) NOT NULL default '0',

  `name` text NOT NULL,

  PRIMARY KEY  (`id`)

) TYPE=MyISAM;



-- Daten für Tabelle `ebay_shippingmodeeu`

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (1, 'DE_UnversicherterVersandInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (2, 'DE_VersicherterVersandInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (3, 'DE_DHLPostpaketInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (4, 'DE_DHLPackchenInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (5, 'DE_SonstigerVersandInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (6, 'DE_UnversicherterExpressVersandInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (7, 'DE_VersicherterExpressVersandInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (8, 'DE_DeutschePostBriefLandInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (9, 'DE_DeutschePostBriefLuftInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (10, 'DE_IloxxEuropaInternational');

INSERT INTO `ebay_shippingmodeeu` (`id`, `name`) VALUES (11, 'DE_IloxxWorldWideInternational');




Geänderte Dateien

*************************************************************************

1. admin/includes/languages/german.php



=> add new entry

QUELLTEXT
// StoresFixedPrice

define('AUCTIONS_LIST_ERROR_SHOPPRICE','Bitte geben Sie einen Startpreis an!<br>Dieser wird bei Nur-Shop-Artikeln als Festpreis behandelt.');








2. admin/auctions.php



2.1.

=> find



QUELLTEXT
if(!$startprice && $auction_type!=9){$startprice = 1;}




=> replace with



QUELLTEXT
/** ***********************************

* StoresFixedPrice - Shop-Artikel

* for

* auction.lister v. 0.0.4c

*

* @author phpgnu

* @see    

** ***********************************/

// STARTPREIS-Debugging

//  Next Line is from Update  

//  UPDATE 0.0.4c_ref4 to 0.0.4c_ref5

//   if(!$startprice && $auction_type!=9){$startprice = 1;}





if($startprice<='0') {

    // StoresFixedPrice - Shop-Artikel

    if ($_POST['auction_type']==10){

        // Bei Shop-Artikel

        // leeren Startpreis mit Festpreis fuellen

        // falls fehlerhafter Eintrag

        $startprice = $buyitnow;

        $buyitnow = 0;

    } else {

        // Startpreis-Fehler erzeugen, um

        // versehentliche EIN-EURO-Start zu verhindern

        $startprice = 0;

    }

}



/**

* EOF StoresFixedPrice - Shop-Artikel

**/

/** ***********************************

* Item Attributes - Artikel-Details

* for

* auction.lister v. 0.0.4c

*

* @author phpgnu

* @see    

** ***********************************/

// "Best Offer" / "Preis vorschlagen"

$bestoffer = $_POST['bestoffer'];

if(!$bestoffer){$bestoffer=0;}

// "Item Condition" / "Artikelzustand"

$condition = $_POST['condition'];

if(!$condition){$condition=null;}

/**

* EOF Item Attributes - Artikel-Details

**/




2.2.

=> after

QUELLTEXT
$ch = $products_values['ch'];




=> add new line

QUELLTEXT
// Shipping Options EU

$eu = $products_values['eu'];




2.3

=> find

QUELLTEXT
$sqlstring = "select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' order by pd.products_name";

$selectproducts = tep_db_query($sqlstring);




=> replace with

QUELLTEXT
/** ***********************************

* auction.lister v. 0.0.4c

*

* Vorselektion von Artikeln

*

* @author gatling

* @see    http://forums.oscommerce.de/index.php?showtopic=43695&st=346&#

*

** ***********************************/

/* START ORIGINAL-PRODUCT-DROPDOWN */

// get all products for dropdown

// $sqlstring = "select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' order by pd.products_name";

// $selectproducts = tep_db_query($sqlstring);

/* EOF ORIGINAL-PRODUCT-DROPDOWN */



/**

* START NEW PRODUCT-DROPDOWN

* by gatling (23.02.2008 04:29)

* @see http://forums.oscommerce.de/index.php?showtopic=43695&st=346#

*

**/



$categories_id = $_POST['categories_id'];

if(!$categories_id){$fetch_cat = 1;}

//get all parent directorys

$sqlstring = "select distinct ptc.categories_id, cd.categories_name from "

. TABLE_PRODUCTS_TO_CATEGORIES . " ptc LEFT JOIN "

. TABLE_CATEGORIES_DESCRIPTION . " cd ON ptc.categories_id = cd.categories_id where cd.language_id = '" . $languages_id . "'";

$selectcats = tep_db_query($sqlstring);

//fill dropdown

$optionscats .= '<option selected name="-" value="">-alle-</option>';

while ($cats_values = tep_db_fetch_array($selectcats)) {

    if ( $categories_id==$cats_values['categories_id'])

    {

        $optionscats .= '<option selected name="' . $cats_values['categories_name'] . '" value="' . $cats_values['categories_id'] . '">' .

        $cats_values['categories_name'] . '</option>';

    }

    else

    {

        $optionscats .= '<option name="' . $cats_values['categories_name'] . '" value="' . $cats_values['categories_id'] . '">' .

        $cats_values['categories_name'] . '</option>';

    }

}

//get all products for dropdown

if ($fetch_cat == 1) {

    $sqlstring = "select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd

where pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' order by pd.products_name";

}

else {

    $sqlstring = "select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . "

pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " ptc where pd.products_id = p.products_id and ptc.products_id = p.products_id and

pd.language_id = '" . $languages_id . "' and ptc.categories_id = '" . $categories_id . "' order by pd.products_name";

}

$selectproducts = tep_db_query($sqlstring);



/**

* EOF Vorselektion von Artikeln

**/




2.4

=> after

QUELLTEXT
//fill dorpdown

while ($myproducts_values = tep_db_fetch_array($selectproducts)) {

    $options .= '<option name="' . $myproducts_values['products_name'] . '" value="' . $myproducts_values['products_id'] . '">' . $myproducts_values['products_name'] . '</option>';

}




=> add new lines

QUELLTEXT
/** ***********************************

  * Shipping Options - Versandoptionen

  * for

  * auction.lister v. 0.0.4c

  *

  * @author Martin11180

  * @see      http://sourceforge.net/forum/forum.php?thread_id=1610286&forum_id=581077

  *

  * modified

  * @author phpgnu

  * @see    

  ** ***********************************/



//get Versandart deutschland types

$sqlstring_shippingmodede_type = "select * from ebay_shippingmodede";

$selectshippingmodedetype = tep_db_query($sqlstring_shippingmodede_type);

//fill dropdown

while ($myshippingmodede_values = tep_db_fetch_array($selectshippingmodedetype)) {

    $shippingmodedeoptions .= '<option name="' . $myshippingmodede_values['name'] . '" value="' . $myshippingmodede_values['id'] . '" ';

    if($shippingmodede_type==$myshippingmodede_values['id']){

        $shippingmodedeoptions .= "selected";

    }

    $shippingmodedeoptions .= '>' . $myshippingmodede_values['name'] . '</option>';

}



if (EBAY_SHIPPING_DEST == 'EU') {

    //get Versandart Europa types

    $sqlstring_shippingmodeeu_type = "select * from ebay_shippingmodeeu";

    $selectshippingmodeeutype = tep_db_query($sqlstring_shippingmodeeu_type);

    //fill dropdown

    while ($myshippingmodeeu_values = tep_db_fetch_array($selectshippingmodeeutype)) {

        $shippingmodeeuoptions .= '<option name="' . $myshippingmodeeu_values['name'] . '" value="' . $myshippingmodeeu_values['id'] . '" ';

        if($shippingmodeeu_type==$myshippingmodeeu_values['id']){

            $shippingmodeeuoptions .= "selected";

        }

        $shippingmodeeuoptions .= '>' . $myshippingmodeeu_values['name'] . '</option>';

    }

}

/**

* EOF Shipping Options - Versandoptionen

**/






2.5.

=> after



QUELLTEXT
if(isset($_POST['addItem']) || isset($_POST['saveItem']) || isset($_POST['updateItem'])){

        $error_total=0;

        $error_title=0;




=> add new lines

QUELLTEXT
/** ***********************************

* Shipping Options - Versandoptionen

* for

* auction.lister v. 0.0.4c

** ***********************************/



    $error_VersandkostenDE=0;

    $error_VersandkostenEU=0;

    $error_VersandkostenDE_2=0;

    $error_VersandkostenEU_2=0;

    $error_VersandkostenDE_3=0;

    $error_VersandkostenEU_3=0;

/**

* EOF Shipping Options - Versandoptionen

**/



/** ***********************************

  * StorFixedPrice - Shop-Artikel

  * for

  * auction.lister v. 0.0.4c

  ** ***********************************/

    $error_shopprice = 0;

    $error_retpol=0;

/**

* EOF StorFixedPrice - Shop-Artikel

**/

[code]



2.6

=> after

[code]

    //set auction type

    $auction_type = $_POST['auction_type'];

    $auction_type_name = "";

    $my_selecttype = tep_db_query("select * from ebay_auctiontype");

    while ($mytype_values = tep_db_fetch_array($my_selecttype)) {

        if($mytype_values['id']==$auction_type){

            $auction_type_name = $mytype_values['name'];

        }

    }




=> add new lines

QUELLTEXT
/** ***********************************

* Shipping Options - Versandoptionen

* for

* auction.lister v. 0.0.4c

** ***********************************/

    // Get shipping options GERMANY / National

    $my_selectVersandartDe_type = tep_db_query("select * from ebay_shippingmodede");

    

    //set Versandartde 1

    $VersandartDe_type = $_POST['VersandartDe_type'];

    $VersandartDe_type_name = "";

    while ($myVersandartDe_type_values = tep_db_fetch_array($my_selectVersandartDe_type)) {

        if($myVersandartDe_type_values['id']==$VersandartDe_type){

            $VersandartDe_type_name = $myVersandartDe_type_values['name'];

        }

    }

    

    //set Versandartde 2

    $set_versand_2 = false;

    if ($_POST['VersandartDe_type_2'] != '0') {

        $set_versand_2 = true;

        $VersandartDe_type_2 = $_POST['VersandartDe_type_2'];

        $VersandartDe_type_name_2 = "";

        while ($myVersandartDe_type_values_2 = tep_db_fetch_array($my_selectVersandartDe_type)) {

            if($myVersandartDe_type_values_2['id']==$VersandartDe_type_2){

                $VersandartDe_type_name_2 = $myVersandartDe_type_values_2['name'];

            }

        }

    }

    

    //set Versandartde 3

    $set_versand_3 = false;

    if ($_POST['VersandartDe_type_3'] != '0') {

        $set_versand_3 = false;

        $VersandartDe_type_3 = $_POST['VersandartDe_type_3'];

        $VersandartDe_type_name_3 = "";

        while ($myVersandartDe_type_values_3 = tep_db_fetch_array($my_selectVersandartDe_type)) {

            if($myVersandartDe_type_values_3['id']==$VersandartDe_type_3){

                $VersandartDe_type_name_3 = $myVersandartDe_type_values_3['name'];

            }

        }

    }



    if (EBAY_SHIPPING_DEST == 'EU') {

        

        // Get shipping options EUROPE / International

        $my_selectVersandartEu_type = tep_db_query("select * from ebay_shippingmodeeu");

        

        if ($_POST['VersandartEu_type'] != '0') {

            //set Versandarteu

            $VersandartEu_type = $_POST['VersandartEu_type'];

            $VersandartEu_type_name = "";

            while ($myVersandartEu_type_values = tep_db_fetch_array($my_selectVersandartEu_type)) {

                if($myVersandartEu_type_values['id']==$VersandartEu_type){

                    $VersandartEu_type_name = $myVersandartEu_type_values['name'];

                }

            }

        }

    }

/** ***********************************

* EOF Shipping Options - Shop-Artikel

** ***********************************/




2.7

=> find

QUELLTEXT
//duration error

if($auction_type==9 && $duration==1){$error_total=1; $error_dur=1;}




=> replace with

QUELLTEXT
// duration error Fixprice and Store Items

if($auction_type>=9 && $duration==1){$error_total=1; $error_dur=1;}




2.8

=> after

QUELLTEXT
//fixprice error

    if($auction_type==9 && $buyitnow==0){$error_total=1; $error_fixprice=1;}//fix price auction must have a startprice




=> add new lines

QUELLTEXT
    //shopprice error

    // => Shop-Items use startprice as fixprice

    //    (must have a startprice)!!

    if($auction_type==10 && (!isset($startprice) || $startprice<'1')){

        $error_total=1; $error_shopprice=1;

    }




2.9

=> find

QUELLTEXT
//set shipping countries

        if($_POST['de']=="1"){

            $ship2de = "de";

            $de = 1;

        }else{$de = 0;}

        if($_POST['at']=="1"){

            $ship2at = "at";

            $at = 1;

        }else{$at=0;}

        if($_POST['ch']=="1"){

            $ship2ch = "ch";

            $ch = 1;

        }else{$ch=0;}




=> replace with

QUELLTEXT
/** ***********************************

* Shipping Options - Shop-Artikel

* for

* auction.lister v. 0.0.4c

** ***********************************/

        

        //set shipping countries

        $ship2de = "de";

        $de = 1;

        

        if($_POST['eu']=="1"){

            $ship2eu = "eu";

            $eu = 1;

        }else{

            $eu = 0;

        }

        if($_POST['at']=="1"){

            $ship2at = "at";

            $at = 1;

        }else{

            $at=0;

        }

        if($_POST['ch']=="1"){

            $ship2ch = "ch";

            $ch = 1;

        }else{

            $ch=0;

        }



    //Versankosten für Deutschland

    $VersandkostenDE = $_POST['VersandkostenDE'];

    //Versankostem error

    if($VersandkostenDE==""){$error_total=1; $error_VersandkostenDE=1;}

    

    if ($set_versand_2 == true) {

        //Versankosten 2 für Deutschland

        $VersandkostenDE_2 = $_POST['VersandkostenDE_2'];

        //Versankosten 2 error

        if($VersandkostenDE_2==""){$error_total=1; $error_VersandkostenDE_2=1;}

    }

    

    if ($set_versand_3 == true) {

        //Versankosten 3 für Deutschland

        $VersandkostenDE_3 = $_POST['VersandkostenDE_3'];

        //Versankosten 3 error

        if($VersandkostenDE_3==""){$error_total=1; $error_VersandkostenDE_3=1;}

    }

    

    if (EBAY_SHIPPING_DEST == 'EU') {

        //Versankosten für Europa

        $VersandkostenEU = $_POST['VersandkostenEU'];

        //Versankostem error

        if($VersandkostenEU==""){$error_total=1; $error_VersandkostenEU=1;}

    }

    

/** ***********************************

* EOF Shipping Options - Shop-Artikel

** ***********************************/




2.10

=> after

QUELLTEXT
//auction type

            $item->setListingType($auction_type_name);

            $item->Currency = 'EUR'; //currency

            $item->Site = 'Germany'; //site (ebay.de)




=> add new lines

QUELLTEXT
/** ***********************************

* Best Offer - Preisvorschlag

* for

* auction.lister v. 0.0.4c

** ***********************************/

        if ($bestoffer==1) {

        

            $bo_details = new BestOfferDetailsType();

            $bo_details->BestOfferEnabled = 1;

            if (isset($minbestoffer)) {

                // TODO: Mindestpreis setzen

                

            }

            // $item->BestOfferDetails = $bo_details;

            $item->setBestOfferDetails($bo_details);

        }

/**

* EOF BEST OFFER / PREISVORSCHLAG

**/

        



/** ***********************************

* Shipping Options - Versand-Optionen

* for

* auction.lister v. 0.0.4c

** ***********************************/

        //Versand Deutschland

        // if(isset($ship2de)){

            $item->ShipToLocations[] = 'DE';

        // }

        if(isset($ship2eu)){

            $item->ShipToLocations[] = 'EuropeanUnion';

        }

        if(isset($ship2at)){

            $item->ShipToLocations[] = 'AT';                

        }

        if(isset($ship2ch)){

            $item->ShipToLocations[] = 'CH';                

        }

        

        $ShippingServiceOptions = new ShippingServiceOptionsType();

        $cost = new AmountType();

        $cost->setTypeValue($amount);

        $cost->setTypeAttribute('currencyID', 'EUR');

        $ShippingServiceOptions->setShippingService($VersandartDe_type_name);

        $ShippingServiceOptions->setShippingServiceCost($VersandkostenDE);

        $ShippingServiceOptions->setShippingServicePriority(1);

        $shipping[]=$ShippingServiceOptions;

        

        if ($set_versand_2 == true) {

            $ShippingServiceOptions_2 = new ShippingServiceOptionsType();

            $cost = new AmountType();

            $cost->setTypeValue($amount);

            $cost->setTypeAttribute('currencyID', 'EUR');

            $ShippingServiceOptions_2->setShippingService($VersandartDe_type_name_2);

            $ShippingServiceOptions_2->setShippingServiceCost($VersandkostenDE_2);

            $ShippingServiceOptions_2->setShippingServicePriority(1);

            $shipping[]=$ShippingServiceOptions_2;

        }

        if ($set_versand_3 == true) {

            $ShippingServiceOptions_3 = new ShippingServiceOptionsType();

            $cost = new AmountType();

            $cost->setTypeValue($amount);

            $cost->setTypeAttribute('currencyID', 'EUR');

            $ShippingServiceOptions_3->setShippingService($VersandartDe_type_name_3);

            $ShippingServiceOptions_3->setShippingServiceCost($VersandkostenDE_3);

            $ShippingServiceOptions_3->setShippingServicePriority(1);

            $shipping[]=$ShippingServiceOptions_3;

        }

        

        if (EBAY_SHIPPING_DEST == 'EU') {

            $InternationalShippingServiceOptions = new InternationalShippingServiceOptionsType();

            $cost = new AmountType();

            $cost->setTypeValue($amount);

            $cost->setTypeAttribute('currencyID', 'EUR');

            $InternationalShippingServiceOptions->setShippingService($VersandartEu_type_name);

            $InternationalShippingServiceOptions->setShippingServiceCost($VersandkostenEU);

            $InternationalShippingServiceOptions->setShippingServicePriority(1);

            $InternationalShippingServiceOptions->setShipToLocation('Europe');

            $shippingInternational[]=$InternationalShippingServiceOptions;

        }

        

        $shippingObj = new ShippingDetailsType();

        $shippingObj->ShippingType='Flat';

        $shippingObj->setShippingServiceOptions($shipping, 0);

        

        if (EBAY_SHIPPING_DEST == 'EU') {

            $shippingObj->setInternationalShippingServiceOption(

            $InternationalShippingServiceOptions, 0);

        }

        

        $item->setShippingDetails($shippingObj,0);

        /*

        $item->setPaymentMethods($Facet_BuyerPaymentMethodCodeType->PayPal, 5);

        $item->setPayPalEmailAddress('developer@rausjetzt.de');

        */

/** ***********************************

* EOF Shipping Options - Shop-Artikel

** ***********************************/




2.11

=> find

QUELLTEXT
//set duration

            $item->ListingDuration = 'Days_'.$duration;




=> replace with

QUELLTEXT
//set duration in Days or GTC (Shop)

        if (is_numeric($duration)) {

            $item->ListingDuration = 'Days_'.$duration;

        } elseif ($duration == 'GTC') {

            $item->ListingDuration = $duration;

        }




2.12

=> find

QUELLTEXT
//set shipping locations

            if(isset($ship2de)){

                $item->ShipToLocations[] = 'DE';

            }

            if(isset($ship2at)){

                $item->ShipToLocations[] = 'AT';                

            }

            if(isset($ship2ch)){

                $item->ShipToLocations[] = 'CH';                

            }




=> replace with (comment out) or delete this section

QUELLTEXT
/** ***********************************

* Shipping Options - Shop-Artikel

* for

* auction.lister v. 0.0.4c

*

* AUSKOMMENTIERT

** ***********************************/



/**

=>



            //set shipping locations

            if(isset($ship2de)){

                $item->ShipToLocations[] = 'DE';

            }

            if(isset($ship2at)){

                $item->ShipToLocations[] = 'AT';                

            }

            if(isset($ship2ch)){

                $item->ShipToLocations[] = 'CH';                

            }



<= EOF AUSKOMMENTIERUNG

**/




2.13.

=> find

QUELLTEXT
}else{//if there is no error - and you don't wanna send it to ebay - just save a predefinition

    $sql_data_array = array('product_id' => tep_db_prepare_input($product_id),

                            'auction_type' => tep_db_prepare_input($auction_type),

                            'title' => tep_db_prepare_input(utf8_decode($title)),

                            'subtitle' => tep_db_prepare_input(utf8_decode($subtitle)),

                            'cat1' => tep_db_prepare_input($cat1),

                            'cat2' => tep_db_prepare_input($cat2),

                            'description' => tep_db_prepare_input(utf8_decode($desc)),

                            'duration' => tep_db_prepare_input($duration),

                            'amount' => tep_db_prepare_input($quantity),

                            'startprice' => tep_db_prepare_input($startprice),

                            'binprice' => tep_db_prepare_input($buyitnow),

                            'city' => tep_db_prepare_input(utf8_decode($location)),

                            'country' => tep_db_prepare_input($country),

                            'pic_url' => tep_db_prepare_input($picurl),

                            'gallery_pic_url' => tep_db_prepare_input($gallerypicurl),

                            'bold' => tep_db_prepare_input($isbold),

                            'highlight' => tep_db_prepare_input($ishighlight),

                            'border' => tep_db_prepare_input($isborder),

                            'transfer' => tep_db_prepare_input($istransfer),

                            'paypal' => tep_db_prepare_input($paypal),                                    

                            'cod' => tep_db_prepare_input($iscod),

                            'cop' => tep_db_prepare_input($iscop),

                            'cc' => tep_db_prepare_input($iscc),

                            'de' => tep_db_prepare_input($de),

                            'at' => tep_db_prepare_input($at),

                            'ch' => tep_db_prepare_input($ch));




=> replace with

[code]

}else{//if there is no error - and you don't wanna send it to ebay - just save a predefinition
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 19.03.2008 00:12
Beitrag #370
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



Auf Grund der Längenbeschränkung hier nun Teil II
ab Punkt 2.13
Und wegen der Umbrüche jetzt von einem DOSen-Rechner.

2.13.
=> find
QUELLTEXT
}else{//if there is no error - and you don't wanna send it to ebay - just save a predefinition
    $sql_data_array = array('product_id' => tep_db_prepare_input($product_id),
                            'auction_type' => tep_db_prepare_input($auction_type),
                            'title' => tep_db_prepare_input(utf8_decode($title)),
                            'subtitle' => tep_db_prepare_input(utf8_decode($subtitle)),
                            'cat1' => tep_db_prepare_input($cat1),
                            'cat2' => tep_db_prepare_input($cat2),
                            'description' => tep_db_prepare_input(utf8_decode($desc)),
                            'duration' => tep_db_prepare_input($duration),
                            'amount' => tep_db_prepare_input($quantity),
                            'startprice' => tep_db_prepare_input($startprice),
                            'binprice' => tep_db_prepare_input($buyitnow),
                            'city' => tep_db_prepare_input(utf8_decode($location)),
                            'country' => tep_db_prepare_input($country),
                            'pic_url' => tep_db_prepare_input($picurl),
                            'gallery_pic_url' => tep_db_prepare_input($gallerypicurl),
                            'bold' => tep_db_prepare_input($isbold),
                            'highlight' => tep_db_prepare_input($ishighlight),
                            'border' => tep_db_prepare_input($isborder),
                            'transfer' => tep_db_prepare_input($istransfer),
                            'paypal' => tep_db_prepare_input($paypal),                                    
                            'cod' => tep_db_prepare_input($iscod),
                            'cop' => tep_db_prepare_input($iscop),
                            'cc' => tep_db_prepare_input($iscc),
                            'de' => tep_db_prepare_input($de),
                            'at' => tep_db_prepare_input($at),
                            'ch' => tep_db_prepare_input($ch));


=> replace with
QUELLTEXT
}else{//if there is no error - and you don't wanna send it to ebay - just save a predefinition
    $sql_data_array = array('product_id' => tep_db_prepare_input($product_id),
                            'auction_type' => tep_db_prepare_input($auction_type),
                            'title' => tep_db_prepare_input(utf8_decode($title)),
                            'subtitle' => tep_db_prepare_input(utf8_decode($subtitle)),
                            'cat1' => tep_db_prepare_input($cat1),
                            'cat2' => tep_db_prepare_input($cat2),
                            'description' => tep_db_prepare_input(utf8_decode($desc)),
                            'duration' => tep_db_prepare_input($duration),
                            'amount' => tep_db_prepare_input($quantity),
                            'startprice' => tep_db_prepare_input($startprice),
                            'binprice' => tep_db_prepare_input($buyitnow),
                            'city' => tep_db_prepare_input(utf8_decode($location)),
                            'country' => tep_db_prepare_input($country),
                            'pic_url' => tep_db_prepare_input($picurl),
                            'gallery_pic_url' => tep_db_prepare_input($gallerypicurl),
                            'bold' => tep_db_prepare_input($isbold),
                            'highlight' => tep_db_prepare_input($ishighlight),
                            'border' => tep_db_prepare_input($isborder),
                            'transfer' => tep_db_prepare_input($istransfer),
                            'paypal' => tep_db_prepare_input($paypal),
                            'cod' => tep_db_prepare_input($iscod),
                            'cop' => tep_db_prepare_input($iscop),
                            'cc' => tep_db_prepare_input($iscc),
                            'de' => tep_db_prepare_input($de),
                            'at' => tep_db_prepare_input($at),
                            'ch' => tep_db_prepare_input($ch),
                            'eu' => tep_db_prepare_input($eu)); // Shipping option Europe


2.14
=> after (Javascript section)
QUELLTEXT
function loadcategories2(){
    mycategories = window.open("getCategoriesSQL2.php","Categories", "width=300,height=500,scrollbars=yes");
    mycategories.focus();
}

=> add new lines
QUELLTEXT
//** ***********************************
//* TODO: Update all Shipping-Services from eBay
//*
//* Shipping Options - Shop-Artikel
//* for
//* auction.lister v. 0.0.4c
// ** ***********************************/

function updateshippingservices(){
    myshippserv = window.open("getShippingServices.php","ShippingServices", "width=300,height=300,scrollbars=no");
    myshippserv.focus();
}


2.15
=> after
QUELLTEXT
<!-- body_text //-->
    <td width="100%" valign="top"><br><span class="pageHeading">Neue Auktion anlegen</span><br><br>
    <?php
    echo "<span class='smallText'>".$resultstring."</span><br><br>";
    ?>


=> add new lines
QUELLTEXT
<?
/** ***********************************
* auction.lister v. 0.0.4c
*
* Vorselektion von Artikeln
*
* @author gatling
* @see    http://forums.oscommerce.de/index.php?showtopic=43695&st=347&#
*
** ***********************************/
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTableRow">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent">Kategoriefilter:</td>
</tr>
<tr>
<td class=main>
<form name="f_categorie" method="post" action="auctions.php">
<select name="categories_id">
<?php
echo $optionscats;
?>
</select>
<input name="i_cat" type="submit" id="i_cat" value="filtern">
</form>
</td>
</tr>
</table>
<?
/**
* EOF Vorselektion von Artikeln
**/
?>


2.16
=> after
QUELLTEXT
        <tr>
            <td class=main>Zweite Kategorie:</td>
            <td class=main><input name="cat2" type="text" id="cat2" value="<?php echo $cat2; ?>"><a href="#" onClick="loadcategories2()">wählen</a>
            <?php if ($cat_name2) {echo " ($cat_name2)";}?></td>
        </tr>


=> add new lines
QUELLTEXT
        
<!-- "Item Condition" / "Artikelzustand" //-->

        <tr>
            <td class="main">Artikelzustand:</td>
            <td class="main">
                <select name="condition">
                    <option value='0'></option>
                    <option value="1" <?php if($condition==1){ echo "selected"; } ?>>Neu</option>
                    <option value="2" <?php if($condition==2){ echo "selected"; } ?>>Gebraucht</option>
                </select><br>
                <b>Hinweis:</b> Im Moment müssen weitere Optionen - wie z.B. <i>"Instandgesetzt"</i> - in der der Artikelbeschreibung hinterlegt werden. Eine Erweiterung um die kategoriespezifischen Optionen ist in Arbeit.
            </td>
        </tr>
<!-- EOF "Item Condition" / "Artikelzustand" //-->


2.17
=> find
QUELLTEXT
            <select name="duration">
              <option value="1" <?php if($duration==1){ echo "selected"; } ?>>1</option>
              <option value="3" <?php if($duration==3){ echo "selected"; } ?>>3</option>
                 <option value="5" <?php if($duration==5){ echo "selected"; } ?>>5</option>
              <option value="7" <?php if($duration==7){ echo "selected"; } ?>>7</option>
              <option value="10" <?php if($duration==10){ echo "selected"; } ?>>10</option>
            </select> Tage


=> replace with
QUELLTEXT
            <select name="duration">
              <option value="1" <?php if($duration==1){ echo "selected"; } ?>>1</option>
              <option value="3" <?php if($duration==3){ echo "selected"; } ?>>3</option>
                 <option value="5" <?php if($duration==5){ echo "selected"; } ?>>5</option>
              <option value="7" <?php if($duration==7){ echo "selected"; } ?>>7</option>
              <option value="10" <?php if($duration==10){ echo "selected"; } ?>>10</option>
              <option value="GTC" <?php if($duration=='GTC'){ echo "selected"; } ?>>Bis auf Widerruf (nur Shop)</option>
            </select> Tage


2.18
=> find
QUELLTEXT
        <?php
        if($error_startprice){        
            echo "<tr class='messageStackError'>";
            echo "<td class=main></td>";
            echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_STARTPRICE."</td>";
            echo "</tr>";
        }
        ?>        
        <tr>
            <td class=main>Startpreis:</td>
            <td class=main><input name="startprice" type="text" id="startprice"  value="<?php echo $startprice; ?>"></td>
        </tr>
        <?php
        if($error_fixprice){
            echo "<tr class='messageStackError'>";
            echo "<td class=main></td>";
            echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_FIXPRICE."</td>";
            echo "</tr>";
        }
        ?>        
        <tr>
            <td class=main>Sofortkaufen-Preis:</td>
            <td class=main><input name="buyitnow" type="text" id="buyitnow" value="<?php echo $buyitnow; ?>"> Lassen Sie dieses Feld auf "0" oder leer , um KEIN SOFORTKAUFEN anzubieten.</td>
        </tr>


=> replace with
QUELLTEXT
        <?php
        if($error_startprice){        
            echo "<tr class='messageStackError'>";
            echo "<td class=main></td>";
            echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_STARTPRICE."</td>";
            echo "</tr>";
        }
        // Error Price StoreFixedPrice / Fehler Preis Shop-Artikel
        if($error_shopprice){
            echo "<tr class='messageStackError'>";
            echo "<td class=main></td>";
            echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_SHOPPRICE."</td>";
            echo "</tr>";
        }
        ?>        
        <tr>
            <td class=main>Startpreis:</td>
            <td class=main><input name="startprice" type="text" id="startprice"  value="<?php echo $startprice; ?>"></td>
        </tr>
        <tr class="dataTableHeadingRow">
            <td class="dataTableHeadingContent" colspan="2">Festpreis-Optionen:</td>
        </tr>
        <?php
        if($error_fixprice){
            echo "<tr class='messageStackError'>";
            echo "<td class=main></td>";
            echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_FIXPRICE."</td>";
            echo "</tr>";
        }
        ?>        
        <tr>
            <td class=main>Sofortkaufen-Preis:</td>
            <td class=main><input name="buyitnow" type="text" id="buyitnow" value="<?php echo $buyitnow; ?>"> Lassen Sie dieses Feld auf "0" oder leer , um KEIN SOFORTKAUFEN anzubieten.</td>
        </tr>
        
        <tr>
            <td class=main>Preisvorschläge zulassen:</td>
            <td class=main><input name="bestoffer" type="checkbox" id="bestoffer" value="1" <?php if($bestoffer){ echo "checked"; } ?>></td>
        </tr>
        <tr>
            <td class=main></td>
            <td class=main>Lassen Sie folgendes Feld auf "0" oder leer , um Preisvorschläge PERSÖNLICH ZU PRÜFEN.<br />
               Preisvorschläge unter <input name="minbestoffer" type="text" id="minbestoffer" value="<?php if ($minbestoffer) { echo $minbestoffer; } else { echo '0'; } ?>"> EUR automatisch ablehnen.</td>
        </tr>
        
        
        <?php
        if($error_nowandnew){
            echo "<tr class='messageStackError'>";
            echo "<td class=main></td>";
            echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_NOWANEW."</td>";
            echo "</tr>";
        }
        ?>
        <tr>
            <td class=main>Sofort & Neu:</td>
            <td class=main><input name="nowandnew" type="checkbox" id="nowandnew" value="1"  <?php if($nowandnew){ echo "checked"; } ?>></td>
        </tr>


2.19
=> find
QUELLTEXT
        <tr class="dataTableHeadingRow">
            <td class="dataTableHeadingContent" colspan="2">Versanddetails:</td>
        </tr>
        <tr>
            <td class=main>Innerhalb Deutschland:</td>
            <td class=main><input name="de" type="checkbox" value="1" <?php //if($de){ echo "checked"; } ?>checked></td>
        </tr>
        <tr>
            <td class=main>Österreich:</td>
            <td class=main><input name="at" type="checkbox" value="1" <?php if($at){ echo "checked"; } ?>></td>
        </tr>
        <tr>
            <td class=main>Schweiz:</td>
            <td class=main><input name="ch" type="checkbox" value="1" <?php if($ch){ echo "checked"; } ?>></td>
        </tr>
        <tr>
            <td class=main></td>
            <td class=main><input name="addItem" type="submit" id="addItem" value="Auktion einstellen">
             <input name="saveItem" type="submit" id="saveItem" value="Neue Vorlage speichern">
            <?php if(isset($_POST['id'])){ ?>
             <input name="updateItem" type="submit" id="updateItem" value="Vorlage aktualisieren">
             <input name="deletePredefinition" type="submit" id="deletePredefinition" value="Auktionsvorlage löschen" onClick="return confirm('Wollen Sie diese Auktionsvorlage wirklich löschen?')">
            <input type="hidden" name="id" id="id" value="<?php echo $_POST['id']; ?>">
            <?php }?></form></td>
        </tr>                                
    </table>
    </td>
<!-- products_attributes_eof //-->


=> replace with
QUELLTEXT
<?
/** ***********************************
* Shipping Options - Versandoptionen
* for
* auction.lister v. 0.0.4c
** ***********************************/
?>

        <tr class="dataTableHeadingRow">
            <td class="dataTableHeadingContent" colspan="2">Versanddetails für Deutschland:</td>
        </tr>
    
<?php
/** VERSANDART DE 1 **/
if($error_VersandartDE){
    echo "<tr class='messageStackError'>";
    echo "<td class=main></td>";
    echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDARTDE."</td>";
    echo "</tr>";
}

if($error_VersandkostenDE){
    echo "<tr class='messageStackError'>";
    echo "<td></td>";
    echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDKOSTENDE."</td>";
    echo "</tr>";
}
?>

        <tr>
            <td class=main><b>1. Versandart:</b></td>
            <td class=main>
            <select name="VersandartDe_type" id="VersandartDe_type">
            <?php echo $shippingmodedeoptions; ?>
            </select>   
            Kosten:
            <input name="VersandkostenDE" type="text" id="VersandkostenDE" value="<?php echo $VersandkostenDE; ?>">
            </td>
        </tr>

<?php
/** VERSANDART DE 2 **/
if (EBAY_SHIPOPT_POSS == '2' || EBAY_SHIPOPT_POSS == '3') {
    if($error_VersandartDE_2){
        echo "<tr class='messageStackError'>";
        echo "<td class=main></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDARTDE."</td>";
        echo "</tr>";
    }

    if($error_VersandkostenDE_2){
        echo "<tr class='messageStackError'>";
        echo "<td></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDKOSTENDE."</td>";
        echo "</tr>";
    }
?>

        <tr>
            <td class=main><b>2. Versandart:</b></td>
            <td class=main>
            <select name="VersandartDe_type_2" id="VersandartDe_type_2">
            <option value="0"></option>
            <?php echo $shippingmodedeoptions; ?>
            </select>   
            Kosten:
            <input name="VersandkostenDE_2" type="text" id="VersandkostenDE_2" value="<?php echo $VersandkostenDE_2; ?>">
            </td>
        </tr>
        
<?php
}

/** VERSANDART DE 3 **/
if (EBAY_SHIPOPT_POSS == '3') {
    if($error_VersandartDE_3){
        echo "<tr class='messageStackError'>";
        echo "<td class=main></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDARTDE."</td>";
        echo "</tr>";
    }
    
    if($error_VersandkostenDE_3){
        echo "<tr class='messageStackError'>";
        echo "<td></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDKOSTENDE."</td>";
        echo "</tr>";
    }
?>

        <tr>
            <td class=main><b>3. Versandart:</b></td>
            <td class=main>
            <select name="VersandartDe_type_3" id="VersandartDe_type_3">
            <option value="0"></option>
            <?php echo $shippingmodedeoptions; ?>
            </select>   
            Kosten:
            <input name="VersandkostenDE_3" type="text" id="VersandkostenDE_3" value="<?php echo $VersandkostenDE_3; ?>">
            </td>
        </tr>
<?
}
?>
        
        
<?php
if (EBAY_SHIPPING_DEST == 'EU') {
?>
        <tr class="dataTableHeadingRow">
            <td class="dataTableHeadingContent" colspan="2">Versanddetails für Europa:</td>
        </tr>
<?php
    /** VERSANDART EU 1 **/
    if($error_VersandkostenEU){
        echo "<tr class='messageStackError'>";
        echo "<td class=main></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDKOSTENEU."</td>";
        echo "</tr>";
    }

    if($error_VersandartEU){
        echo "<tr class='messageStackError'>";
        echo "<td class=main></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDARTDE."</td>";
        echo "</tr>";
    }
?>
        <tr>
            <td class=main><b>1. Versandart:</b></td>
            <td class=main><select name="VersandartEu_type" id="VersandartEu_type">
            <option value="0"></option>
            <?php echo $shippingmodeeuoptions; ?>
            </select>   
            Kosten:
            <input name="VersandkostenEU" type="text" id="VersandkostenEU" value="<?php echo $VersandkostenEU; ?>">
            </td>
        </tr>

<?php
    /** VERSANDART EU 2 **/
    if($error_VersandkostenEU_2){
        echo "<tr class='messageStackError'>";
        echo "<td class=main></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDKOSTENEU."</td>";
        echo "</tr>";
    }

    if($error_VersandartEU_2){
        echo "<tr class='messageStackError'>";
        echo "<td class=\"main\"></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDARTDE."</td>";
        echo "</tr>";
    }
?>
        <tr>
            <td class=main><b>2. Versandart:</b></td>
            <td class=main><select name="VersandartEu_type_2" id="VersandartEu_type_2">
            <option value="0"></option>
            <?php echo $shippingmodeeuoptions; ?>
            </select>   
            Kosten:
            <input name="VersandkostenEU_2" type="text" id="VersandkostenEU_2" value="<?php echo $VersandkostenEU_2; ?>">
            </td>
        </tr>

<?php
    /** VERSANDART EU 3 **/
    if($error_VersandkostenEU_3){
        echo "<tr class='messageStackError'>";
        echo "<td class=main></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDKOSTENEU."</td>";
        echo "</tr>";
    }

    if($error_VersandartEU_3){
        echo "<tr class='messageStackError'>";
        echo "<td class=main></td>";
        echo "<td class='errorText'>".AUCTIONS_LIST_ERROR_VERSANDARTDE."</td>";
        echo "</tr>";
    }
?>
        <tr>
            <td class=main><b>3. Versandart:</b></td>
            <td class=main><select name="VersandartEu_type_3" id="VersandartEu_type_3">
            <option value="0"></option>
            <?php echo $shippingmodeeuoptions; ?>
            </select>   
            Kosten:
            <input name="VersandkostenEU_3" type="text" id="VersandkostenEU_3" value="<?php echo $VersandkostenEU_3; ?>">
            </td>
        </tr>


        <tr class="dataTableHeadingRow">
            <td class="dataTableHeadingContent" colspan="2">Versandziele in Europa:</td>
        </tr>
        <tr>
            <td class=main>Europäische Union:</td>
            <td class=main><input name="eu" type="checkbox" value="1" <?php if($eu){ echo "checked"; } ?>></td>
        </tr>
        <tr>
            <td class=main>Österreich:</td>
            <td class=main><input name="at" type="checkbox" value="1" <?php if($at){ echo "checked"; } ?>></td>
        </tr>
        <tr>
            <td class=main>Schweiz:</td>
            <td class=main><input name="ch" type="checkbox" value="1" <?php if($ch){ echo "checked"; } ?>></td>
        </tr>


<?
}

/** ***********************************
* EOF Shipping Options - Versandoptionen  
** ***********************************/
?>

<!--//--
/** ***********************************
* TODO / BEGONNEN
* Lokal oder durch DB-Import vorbereitete Auktionen
* for
* auction.lister v. 0.0.4c
** ***********************************/
--//-->
        <tr>
            <td class=main> </td>
            <td class=main></td>
        </tr>
        <tr>
            <td class=main></td>
            <td class=main><input name="addItem" type="submit" id="addItem" value="Auktion SOFORT einstellen">
             <input name="prepareItem" type="submit" id="prepareItem" value="Auktion lokal vorbereiten">
            </td>
        </tr>
        <tr>
            <td class=main></td>
            <td class=main><input name="saveItem" type="submit" id="saveItem" value="Neue Vorlage speichern">
            <?php if(isset($_POST['id'])){ ?>
             <input name="updateItem" type="submit" id="updateItem" value="Vorlage aktualisieren">
             <input name="deletePredefinition" type="submit" id="deletePredefinition" value="Auktionsvorlage löschen" onClick="return confirm('Wollen Sie diese Auktionsvorlage wirklich löschen?')">
            <input type="hidden" name="id" id="id" value="<?php echo $_POST['id']; ?>">
            <?php }?></form></td>
        </tr>                                
    </table>
    </td>
<!--//--
/** ***********************************
* EOF Lokal vorbereitete Auktionen
** ***********************************/
--//-->
<!-- products_attributes_eof //-->
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 27.03.2008 12:19
Beitrag #371
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



Auch wenn im Moment das große Schweigen hier angesagt ist, trotzdem mal eine Frage:

Ich versuche gerade vergeblich, die Option "Sofort & Neu" hin zu bekommen.
Leider kann der Artikelzustand "Neu" insbesondere bei technischen Geräten oft nur mit den Kategorie-spezifischen Attributen gesetzt werden.
Das Beispiel aus der Doku zum "eBay Acellerator Toolkit" klappt also in den meisten fällen nicht.

Hat jemand schon mit den Kategorie-Attributen und EbatNs vor allem unter PHP4 was gemacht?
Die Versandkosten (siehe vorherigen Beitrag) und auch das Widerrufsrecht in folgendem Code werden zwar gesendet, aber der Artikelzustand "Neu" will nicht durch.

Folglich erhalte ich eine Fehlermeldung, dass die Option "Sofort & Neu" nicht gesetzt werden kann.

QUELLTEXT
if ($condition >= '1')
{        
    // create a new AttributeSet (CsSet 1950 / site-wide condition)
    $attSet = new AttributeSetType();
    $attSet->setTypeAttribute('attributeSetID', 1950);
    // create a Attribute with id 10244
    $att = new AttributeType();
    $att->setTypeAttribute('attributeID', 10244);
    // create the value for the attribute
    // and associate the value new/used
    $attValue = new ValType();
    if ($condition == '1')
    {
        $attValue->setValueID('10425'); // neu
        $attValue->setValueLiteral('Neu');
    }
    elseif ($condition == '2')
    {
        $attValue->setValueID('10426'); // gebraucht<br>
        $attValue->setValueLiteral('Gebraucht');
    }
    // append the value to the attribute ...
    $att->setValue($attValue, 0);
    // ... and attach the value to the attribute
    $attSet->Attribute[] = $att;
    
    // create the AttributeSet Array for the item ...
    $atts = new AttributeSetArrayType();
    // ... and attach the set to it
    $atts->setAttributeSet($attSet, 0);
    // finally attach the set-array to the item
}

// set / overwrite (after 2008/04/01) eBay Return Policy
if ($set_retpol = 1) {
    $attSet = new AttributeSetType();
    $attSet->setTypeAttribute('attributeSetID', 2136);
    // create a Attribute with id 3803
    $att = new AttributeType();
    $att->setTypeAttribute('attributeID', 3803);
    // create the value for the attribute
    // and associate the value
    $attValue = new ValType();
    $attValue->setValueID('32040');
    // append the value to the attribute ...
    $att->setValue($attValue, 0);
    // ... and attach the value to the attribute
    $attSet->Attribute[] = $att;
    $att->setTypeAttribute('attributeID', 3806);
    // create the value for the attribute
    // and associate the value
    $attValue = new ValType();
    $attValue->setValueID('-3');
    // set own return policy
    $attValue->setValueLiteral($my_retpol);
    // append the value to the attribute ...
    $att->setValue($attValue, 0);
    // ... and attach the value to the attribute
    $attSet->Attribute[] = $att;
    // create the AttributeSet Array for the item ...
    $atts = new AttributeSetArrayType();
    // ... and attach the set to it
    $atts->setAttributeSet($attSet, 0);

}

if (!empty($atts)) { $item->AttributeSetArray = $atts; }

if ($nowandnew = 1) {
    $item->NowAndNew = true;
}
Go to the top of the page
 
+Quote Post
mcmilling
Beitrag 27.03.2008 13:01
Beitrag #372
jens



Gruppe: Members
Beiträge: 8
Beigetreten: 25.10.2005
Wohnort: berlin
Mitglieds-Nr.: 14.119



Sorry bei Neu & Sorfort kann ich dir leider nicht helfen. Solltest du Skype nutzen wollen oder anderes helfe ich dir gerne.

Aber vielleicht hast du ja eine Ahnung wie ich den Mehrwertsteuersatz und/oder Payment Instructions hinzufügen kann.
Go to the top of the page
 
+Quote Post
mcmilling
Beitrag 27.03.2008 13:22
Beitrag #373
jens



Gruppe: Members
Beiträge: 8
Beigetreten: 25.10.2005
Wohnort: berlin
Mitglieds-Nr.: 14.119



so sollte es funktionieren:

QUELLTEXT
            // setting item-condition for site Germany
            $condition = 1;
            if ($condition !== null)
            {
                // create a new AttributeSet (CsSet 1950 / site-wide condition)
                $attSet = new AttributeSetType();
                $attSet->setTypeAttribute('attributeSetID', 1950);
                
                // create a Attribute with id 10244
                $att = new AttributeType();
                $att->setTypeAttribute('attributeID', 10244);
                $attValue = new ValType();
                if ($condition == '1') {
                    $attValue->setValueID('10425'); // neu
                }else{
                    $attValue->setValueID('10426'); // gebraucht
                }
                $att->setValue($attValue, 0);
                $attSet->Attribute[] = $att;


                $atts = new AttributeSetArrayType();
                $atts->setAttributeSet($attSet, 0);
                
//                $item->AttributeSetArray = $atts;


                $condAttSet = new AttributeSetType();
                $condAttSet->setTypeAttribute('attributeSetID', 1950);
                $condAtt = new AttributeType();
                $condAtt->setTypeAttribute('attributeID', 10244);
                $condAttValue = new ValType();
                $condAttValue->setValueID(10425);
                $condAttValue->setValueLiteral("Neu");
                $condAtt->setValue($condAttValue, 0);

                $condAttSet->Attribute[] = $condAtt;
                $attSet = new AttributeSetType();
                $attSet->setTypeAttribute('attributeSetID', 2136);
                $att = new AttributeType();
                $att->setTypeAttribute('attributeID', 3803);
                $attValue = new ValType();
                $attValue->setValueID('32040');
                $att->setValue($attValue, 0);
                $attSet->Attribute[] = $att;

                $att2 = new AttributeType();
                $att2->setTypeAttribute('attributeID',3806);
                $attValue2 = new ValType();
                $attValue2->setValueID(-3);
                $attValue2->setValueLiteral('Der Käufer hat das Recht, den Artikel zurückzugeben');
                $att2->setValue($attValue2, 0);
                $attSet->Attribute[] = $att2;

                $attSetArray = new AttributeSetArrayType();
                $attSetArray->AttributeSet[] = $attSet;
                $attSetArray->AttributeSet[] = $condAttSet;

                $item->AttributeSetArray = $attSetArray;

            }

                $item->NowAndNew = true;
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 28.03.2008 11:44
Beitrag #374
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



Vielen Dank, werde ich mal probieren.

Übrigens scheint ein Update der EbatNs bei einigen Features zwingend erforderlich, ich bekam ständig eine Rückmeldung bezüglich des ebay-eigenen De-Serializers, der mit der neuen Version weg ist.
Das Update bezieht sich auf Version 555 der ebay Api, ich hoffe aber, dass die Version schnell geup't wird, da dort schon die Version 557 raus ist.
Ich hoffe und bete, dass in der ebay-Version 557 auch schon die Änderungen für die ab 1.4. gültigen neuen Regeln für gewerbliche Verkäufer drin sind.

@mcmilling: sollte ich was finden, oder über das Problem stolpern, gebe ich Bescheid. Da wir nur B2C-Handel machen, steht bei uns der Hinweis "Preis inkl. Märchensteuer" momentan für händisch eingepflegten Artikel in der Artikel-Beschreibung.

Noch was: Zumindest die Widerrufsbelehrung geht schon mal durch seit dem Update des Ebat. smile.gif
Ich hatte da mal den Wysiwyg-Editor drübergelegt - was völliger Quatsch ist! Das Feld ist bei ebay ein reines Textfeld und scheint keine HTML-Tags zu nehmen.
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 28.03.2008 17:11
Beitrag #375
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



Sofort und Neu geht jetzt erst mal prinzipiell.
Hier der Code
QUELLTEXT
/** ***********************************
  * Item Attributes - Artikel-Details
  * here: Item Condition
  ** ***********************************/
    
        if ($condition !== null)
        {
            // create a new AttributeSet (CsSet 1950 / site-wide condition)
            $condAttSet = new AttributeSetType();
            $condAttSet->setTypeAttribute('attributeSetID', 1950);
            
            // create a Attribute with id 10244
            $condAtt = new AttributeType();
            $condAtt->setTypeAttribute('attributeID', 10244);
            $condAttValue = new ValType();
            if ($condition == '1') {
                $condAttValue->setValueID(10425); // neu
                $condAttValue->setValueLiteral("Neu");
            }else{
                $condAttValue->setValueID(10426); // gebraucht
            }
            $condAtt->setValue($condAttValue, 0);
            $condAttSet->Attribute[] = $condAtt;
        }
                
        if ($set_retpol == '1')
        {
            $attSet = new AttributeSetType();
            $attSet->setTypeAttribute('attributeSetID', 2136);
            $att = new AttributeType();
            $att->setTypeAttribute('attributeID', 3803);
            $attValue = new ValType();
            $attValue->setValueID('32040');
            $att->setValue($attValue, 0);
            $attSet->Attribute[] = $att;

            $att2 = new AttributeType();
            $att2->setTypeAttribute('attributeID',3806);
            $attValue2 = new ValType();
            $attValue2->setValueID(-3);
            $attValue2->setValueLiteral($my_retpol);
            $att2->setValue($attValue2, 0);
            $attSet->Attribute[] = $att2;
        }

        if ($condition !== null || $set_retpol == '1') {
            $attSetArray = new AttributeSetArrayType();
            if ($set_retpol == '1') $attSetArray->AttributeSet[] = $attSet;
            if ($condition !== null) $attSetArray->AttributeSet[] = $condAttSet;
            $item->AttributeSetArray = $attSetArray;
        }


/** ***********************************
  * EOF Item Condition
  ** ***********************************/

/** ***********************************
* Now & New - Sofort & Neu
* for
* auction.lister v. 0.0.4c
** ***********************************/

        if ($nowandnew == 1) {
            $item->NowAndNew = true;
        }
        
/** ***********************************
* EOF Now & New - Sofort & Neu
** ***********************************/

Da das Widerrufsrecht nichts mit dem Artikelzustand zu tun hat, habe ich hier eine separate Checkbox im Formular, ob dieses gesendet werden soll, ebenso bei "Sofort & Neu".
Für den Text zum Widerrufsrecht habe ich eine Textarea, die mit einem Standardtext aus der german.php gefüllt wird und ggf. geändert werden kann.

Wie genau das ab 1.4.08 gehändelt wird, muss ich noch schauen.
Da kann man ja dann das Widerrufsrecht automatisch setzen lassen und würde mit dem Senden das bei eBay abgelegte WR für den aktuellen Artikel überschreiben.

Immer noch (m)ein Problem:
Ist in den Attributen der Kategorie der Artikelzustand separat definiert, kommt eBay mit einer Meldung, dass man die kategorie-eigene AttributeID anstatt der globalen (CsSet 1950 / site-wide condition) nehmen soll.
Z.B.: Bei einer Grafikkarte in der Kategorie "Computer > Grafikkarten > PCI > 6-16 MB" müsste also anstatt
QUELLTEXT
$condAttSet->setTypeAttribute('attributeSetID', [b]1950[/b]);

der Code
QUELLTEXT
$condAttSet->setTypeAttribute('attributeSetID', [b]3111[/b]);

stehen.
Soweit geht das auch - aber irgendwie komme ich an der Stelle nicht weiter bzw. mit dem "scheinbaren" Durcheinander in dem XML-Stream von "GetAttributesCS" nicht klar ...

Sollte jemand interesse haben, kann ich die Änderungen inklusive der anderen (s.o.) mal zusenden.
Einfach kurze PM mit E-Mail-Address senden und ich schicke die Dateien zu.
Go to the top of the page
 
+Quote Post
TommyBerlin
Beitrag 02.04.2008 13:53
Beitrag #376
Tommy



Gruppe: Members
Beiträge: 2.587
Beigetreten: 04.11.2005
Wohnort: Berlin
Mitglieds-Nr.: 14.333



So, hab jetzt auch nochmal die contrib mit all den pdates installiert und habe noch dasselbe Problem wenn ich die Kategorien holen will:
QUELLTEXT
Fatal error: Call to undefined method EbatNs_ResponseError::getCategoryVersion() in /srv/www/vhosts/xxxxx.eu/httpdocs/test/admin/getCategoriesSQL.php on line 54


Warum funktioniert dies bei all den anderen? Liegt es vielleicht an einer php-Einstellung auf dem Server (1und1).

Bei einem anderen Provider funktioniert die contrib dem ersten Augenschein nach...

Gruß Tommy


--------------------
Verba docent, exempla trahunt.
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 02.04.2008 14:08
Beitrag #377
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



ZITAT(TommyBerlin @ 02.04.2008 14:53) *
QUELLTEXT
Fatal error: Call to undefined method EbatNs_ResponseError::getCategoryVersion() in /srv/www/vhosts/xxxxx.eu/httpdocs/test/admin/getCategoriesSQL.php on line 54


Warum funktioniert dies bei all den anderen? Liegt es vielleicht an einer php-Einstellung auf dem Server (1und1).

Existiert die Datei GetCategoriesResponseType
und steht dort ab Zeile 93 die Funktion getCategoryVersion() ?
Ist vielleicht beim Upload ein Fehler entstanden? Manchmal machen einige FTP-Progs einen Einzeiler aus den Dateien, da sie mit den Zeilenumbrüchen nicht klar kommen
Go to the top of the page
 
+Quote Post
TommyBerlin
Beitrag 02.04.2008 14:44
Beitrag #378
Tommy



Gruppe: Members
Beiträge: 2.587
Beigetreten: 04.11.2005
Wohnort: Berlin
Mitglieds-Nr.: 14.333



Die Datei existiert und die Funktion steht in Zeile 90 - Ratlos huh.gif

Gruß Tommy


--------------------
Verba docent, exempla trahunt.
Go to the top of the page
 
+Quote Post
PHPGnu
Beitrag 04.04.2008 13:58
Beitrag #379
Guido Nultsch



Gruppe: Members
Beiträge: 31
Beigetreten: 22.09.2006
Mitglieds-Nr.: 20.565



WICHTIGER HINWEIS:
In der Datei "auction_list_helper.php" ist eine Änderung erforderlich.
Dieser hängt eventuell mit den aktuellen Änderungen der API zusammen.
Die Änderung ist zwar Minimal, aber zum Verständnis hole ich mal etwas aus.

Motivation:
Bei mir wurde seit einiger Zeit bei der Abruf des aktuellen Status nichts mehr aktualisiert. Auch die Zeit des letzten eBay-Abgleichs wurde nicht gesetzt.
eBay lieferte die Meldung, dass die Eingabedaten für den Tag <NewItemFilter> ungültig sind oder fehlen.

Problem:
Nach einigem Suchen habe ich den Fehler gefunden.
Der Wert 'false' wird in der entsprechenden Funktion in der PHP-Datei als "boolscher" Wert gesetzt, daher wird die XML-Anfrage mit dem leeren Tag gesendet:
QUELLTEXT
...
  <NewItemFilter></NewItemFilter>
...

Dort muss neuerdings aber 'false' drin stehen:
QUELLTEXT
...
  <NewItemFilter>false</NewItemFilter>
...


Lösung:
In der Datei "auction_list_helper.php" etwa bei Zeile 108 die Funktion
function get_new_Events($session, $to)
suchen.
Dort in der folgenden Zeile aus dem boolschen Wert false
QUELLTEXT
$req->setNewItemFilter(false);

durch setzen von Anführungszeichen einen String machen:
QUELLTEXT
$req->setNewItemFilter('false');

Wer es genauer überprüfen will, fügt in der Funktion einfach den Logger ein.
Go to the top of the page
 
+Quote Post
rs4net
Beitrag 04.04.2008 20:42
Beitrag #380



Gruppe: Members
Beiträge: 48
Beigetreten: 22.10.2003
Wohnort: Bayern
Mitglieds-Nr.: 1.972



Hallo Zusammen,

ich würde gerne eine komplette Neuinstallation machen.
Basis + Contrib auction Lister.

Welche Downloads benötige ich?
Und welche manuellen Änderungen muss ich noch vornehmen.

Danke schon mal

RS
Go to the top of the page
 
+Quote Post

29 Seiten V  « < 17 18 19 20 21 > » 
Reply to this topicStart new topic

 



Vereinfachte Darstellung Aktuelles Datum: 09.09.2010 22:33

Trademark Policy | Copyright Policy | Sitemap

Copyright © 2000-2008 osCommerce. All rights reserved.
Webmaster: Harald Ponce de Leon (Impressum)