Modulshop - Eine große Auswahl an neuen und hilfreichen Modulen für die modified eCommerce Shopsoftware
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Modul Freitext in Attribute für shop-Version 2.0

    dasDirk

    • Frisch an Board
    • Beiträge: 63
    Hallo..

    wollte mal nachfragen ob es das Modul "Freitext" auch schon für die Shopversion 2.0 gibt
    oder ob man das vorhandene Modul auch problemlos in den modified 2.0 einsetzen kann

    Danke

    Linkback: https://www.modified-shop.org/forum/index.php?topic=35354.0

    web28

    • modified Team
    • Beiträge: 9.404
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #1 am: 18. Juli 2016, 11:26:16
    Kostenpflichtiges Modul kann bei über meine Homepage angefragt werden.

    Gruss Web28

    dasDirk

    • Frisch an Board
    • Beiträge: 63
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #2 am: 19. Juli 2016, 17:20:42
    Hallo...

    leider kann für das Modul nur reine Anfragen gestellt werden...
    die dann auch nicht beantwortet werden nur ausflüchte und der Hinweis...

    ein Kauf des Modul selbst ist ausgeschlossen,
    Es sei gibt nur den Einbauservice für teure Euro

    ohne Einbauservice ist der Kauf nicht möglich....!!!!!!!!!!

    demnach kaufe ich die Katze im Sack
    Am Ende habe ich nachher ein Modul gekauft, was ich aber nicht besitze...  Toll

    beim 2 und 3 Shop dann wieder den teuren Euro investieren obwohl Du das Modul gekauft hast
    aber nicht besitzt...

    traurig...

    Bonsai

    • Viel Schreiber
    • Beiträge: 4.127
    • Geschlecht:
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #3 am: 20. Juli 2016, 11:42:02
    dasDirk hat die GPL nicht verstanden ........
    https://de.wikipedia.org/wiki/GNU_General_Public_License
    Da modified unter GPL steht, MUSS das Modul auch GPL verwenden, weil das Modul auch andere Teile der Shopsoftware nutzt, die unter GPL stehen.

    Wenn du das Modul extrahieren möchtest, ist das ganz einfach:
    Backup des Shopsystems machen, Modul bestellen und einbauen lassen.
    Danach wieder ein Backup fahren.
    Jetzt mit einem DIFF Tool die beiden Backups vergleichen und voila ... Du hast das Modul. Wenn Du eine Versionsverwaltungssoftware einsetzt, sind das 5 Klicks ... und Du hast einen Patch. Weitere 3 Klicks und der Patch ist im anderen Shop.

    Einbauservice ist der einzige Weg mit solchen Modulen Geld zu verdienen, deshalb der Einbauservice .... Du kaufst eine Dienstleistung und nicht den Code. Der Code gehört weder dem Moduleersteller noch Dir, sondern allen Menschen auf dem Planeten.

    Sorry, aber anstatt hier rumzuschimpfen, beschäftige Dich mal bitte damit was Freie Software wirklich bedeutet! Hier sind Menschen unterwegs, die davon leben, dass jemand den Einbauservice kauft. Ohne diese Menschen gäbe es dieses Projekt gar nicht und Du müsstest Dir einen Closed Source Shop kaufen für mehrere Tausend Euro und dann die Programmierung für das Modul dazukaufen, die es in dem Fall nur beim Hersteller für richtig viel Geld geben würde.

    dasDirk

    • Frisch an Board
    • Beiträge: 63
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #4 am: 20. Juli 2016, 19:07:49
    Hallo...

    Es geht mir nicht um den Einbauservice... den will ich nicht
    Ich würde das Modul auch bezahlen... kein Problem

    Gruß

    toshi66

    • Neu im Forum
    • Beiträge: 6
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #5 am: 31. März 2018, 18:04:53
    Hallo, ich hätte auch Interesse an dem Freitext-Modul, kann aber nirgendwo finden, wo man das kaufen kann...

    InfoCut

    • Neu im Forum
    • Beiträge: 24
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #6 am: 22. Oktober 2018, 23:25:21
    Hallo, gibt es vielleicht auch eine Anpassung an PHP7.1 ? da läuft das Modul leider nicht mehr weiße Seite ;(
    UNDEFINED_ERROR : LoggingManager: Using $this when not in object context in File:/includes/external/textfeld/rpa_custom_inputs.class.php on Line: 148

    Schreinermeister

    • Fördermitglied
    • Beiträge: 415
    • Geschlecht:
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #7 am: 23. Oktober 2018, 16:21:17
    Hallo,

    die Anpassung an PHP7.1 würde mich auch interessieren.

    Auch bei mir wurde das Modul von rpa eingebaut, leider verschlüsselt.

    Gruß Chris.

    InfoCut

    • Neu im Forum
    • Beiträge: 24
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #8 am: 23. Oktober 2018, 20:22:06
    Ne verschlüsselt ist es bei mir nicht ! Alles im Quelltext aber ich steige trotzdem nicht durch.
    Hosteurope stellt morgen auf pHP 7.1 um ab dann kann keine Kunde mehr was in den Warenkorb legen.(weiße Seite)  Bin gerade ziemlich verzweifelt. Der Support (Bezahlt) schreibt mir das gerade andere Projekte Vorrang haben.

    Timm

    • Fördermitglied
    • Beiträge: 6.259
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #9 am: 23. Oktober 2018, 20:46:55
    Hosteurope schaltet morgen nur php 5.6 ab. Php 7.0 am 3.12.2018.

    [ Für Gäste sind keine Dateianhänge sichtbar ]

    [ Für Gäste sind keine Dateianhänge sichtbar ]

    Gruß Timm

    InfoCut

    • Neu im Forum
    • Beiträge: 24
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #10 am: 23. Oktober 2018, 21:16:44
    Komisch meine Info Text sieht aber so aus!
    Zitat
    Die Standard PHP-Version 5.6 wird am 24.10.2018 deaktiviert. Setzen Sie derzeit PHP-Skripte für Ihre Webseite ein, stellen Sie bitte sicher, dass die verwendeten Skripte PHP 7.2 unterstützen. Alle Domains/Verzeichnisse, die zu diesem Zeitpunkt im KIS auf PHP 5.6 eingestellt sind, werden automatisch auf die neue Standard PHP-Version 7.2 umgestellt.

    Timm

    • Fördermitglied
    • Beiträge: 6.259
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #11 am: 23. Oktober 2018, 21:50:53
    Dein Text beißt sich ja nicht mit meiner Aussage. Sie stellen dich auf php 7.2 automatisch um, wenn du noch php 5.6 einsetzt, bieten aber weiterhin php 7.0 und 7.1 an. Entweder du stellst es danach wieder auf php 7.0 oder besser du machst es vorher, damit keine Leerlaufzeit entsteht. Und musst dich dann halt bis 3.12. darum gekümmert haben, dass das Modul funktioniert oder es ansonsten ausbauen.

    Gruß Timm

    InfoCut

    • Neu im Forum
    • Beiträge: 24
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #12 am: 23. Oktober 2018, 21:58:09
    Danke Tim für die Info aber auch php 7.0 blanke Seite  wenn ich was in den Warenkorb legen will!

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #13 am: 23. Oktober 2018, 22:16:46
    Hallo, gibt es vielleicht auch eine Anpassung an PHP7.1 ? da läuft das Modul leider nicht mehr weiße Seite ;(
    UNDEFINED_ERROR : LoggingManager: Using $this when not in object context in File:/includes/external/textfeld/rpa_custom_inputs.class.php on Line: 148

    Was steht denn in /includes/external/textfeld/rpa_custom_inputs.class.php in der Zeile 148 ?

    Gruss
    Hanspeter

    karsta.de

    • Experte
    • Beiträge: 3.157
    Re: Modul Freitext in Attribute für shop-Version 2.0
    Antwort #14 am: 23. Oktober 2018, 23:05:59
    Um das ganze nicht völlig aus dem Zusammenhang zu reißen, hier die function:
    ($this->textfeld = $textfeld;  //ZEILE 148)

    Code: PHP  [Auswählen]
      public function add_cart_attributes_session($value)
      {
          $options_values_name = xtc_oe_get_options_values_name($value,'');      
          $textfeld = ($options_values_name == 'TEXTFELD') ? $_POST['txt_'.$value] : '';      
          if ($options_values_name == 'FILEUPLOAD') {
            $fileupload = $_SESSION['upload'][$value];
            $textfeld = htmlentities($_FILES['upload_'.$value]['name']);
            $_SESSION['cart_fileupload'. $_SESSION['new_products_id_in_cart']][$value] = $fileupload;
            unset($_SESSION['upload'][$value]);
          } else {
            $fileupload = '';
          }
          if ($textfeld != '') {
            $_SESSION['cart_textfeld'. $_SESSION['new_products_id_in_cart']][$value] = $textfeld;        
          }
          $this->textfeld = $textfeld;  //ZEILE 148
              $this->fileupload = $fileupload;
         
      }

    ###########################################
    Und hier mal die gesamte Datei:
    ###########################################
    Code: PHP  [Auswählen]
    <?php
    /* --------------------------------------------------------------
       rpa_custom_inputs.php

       Version 1.00 (c) by rpa-com.de
       --------------------------------------------------------------*/

       
    define('DIR_RPA_COM',DIR_WS_INCLUDES . 'rpa-com/');

    require_once (DIR_FS_INC.'xtc_oe_get_options_values_name.inc.php');
    require_once (DIR_FS_INC.'xtc_oe_get_options_name.inc.php');

    class rpa_CustomInputs
    {
      var $textfeld;
      var $fileupload;


      function __construct()
      {
        $this->textfeld = '';
        $this->fileupload = '';
      }

      // ----------------------------------------------------------------------------------------------------- //
      //checkout_process
      public static function checkout_process_attributes($sql_data_array,$attributes_values,$i,$j)
      {
          global $order;
          $options_values_name = trim($attributes_values['products_options_values_name']);
          if($options_values_name == 'TEXTFELD' || $options_values_name == 'FILEUPLOAD'){
            $value = $order->products[$i]['attributes'][$j]['value_id'];
            $sql_data_array['products_options_values'] = trim($_SESSION['cart_textfeld'. $order->products[$i]['id']][$value]);
            $fileupload = $_SESSION['cart_fileupload'. $order->products[$i]['id']][$value];
            if ($fileupload != '' && file_exists($fileupload)) {
              $tmp1 = $fileupload;
              $fileupload = str_replace('upload_tmp_', 'upload_', $fileupload);
              copy($tmp1,$fileupload);
              unlink($tmp1);
              $sql_data_array['products_options_fileupload'] = $fileupload;
            }
            unset ($_SESSION['cart_textfeld'. $order->products[$i]['id']][$value]);
            unset ($_SESSION['cart_fileupload'. $order->products[$i]['id']][$value]);
          }
          return $sql_data_array;
      }

      // ----------------------------------------------------------------------------------------------------- //
      //includes/cart_actions.php
      public static function check_required_textfields()
      {
        $params = $_POST['id'];
        $error_msg = '';  
        $fileupload_ok = '';
        if (is_array($params) && (sizeof($params) > 0)) {
          reset($params);
          while (list($option, $value) = each($params)) {
            $text = '';
            $value_name = xtc_oe_get_options_values_name($value,'');
            if ($value_name == 'TEXTFELD') {
              $text = trim($_POST['txt_'.$value]);
              //TEST AUF PFLICHTFELD
              if (isset($_POST['req_'.$value]) && $text == '') {
                $error_msg .= xtc_oe_get_options_name($option,'') . TEXT_ERROR_MSG_FIELD;
              }
              //TEXTFELD aus $_POST['id'] entfernen wenn leer und kein Pflichtfeld
              if (!isset($_POST['req_'.$value]) && $text == '') {
                unset($_POST['id'][$option]);          
              }
            }
            //BOF FILE UPLOAD
            if ($value_name == 'FILEUPLOAD') {
              include(DIR_RPA_COM . 'rpa_upload.php');
            }
            //EOF FILE UPLOAD
          }
        }
        $_SESSION['msg'] = $fileupload_ok;
        //print_r($_POST['id']);EXIT;
        //echo $_SESSION['msg']; EXIT;
        return $error_msg;
      }

      // ----------------------------------------------------------------------------------------------------- //
      //includes/classes/shopping_cart.php
      public static function restore_contents_attributes_db($sql_data_array,$products_id,$value)
      {
          $options_values_name = xtc_oe_get_options_values_name($value,'');
          $textfeld = ($options_values_name == 'TEXTFELD' || $options_values_name == 'FILEUPLOAD') ? trim($_SESSION['cart_textfeld'. $products_id][$value]) : '';
          $fileupload = ($options_values_name == 'FILEUPLOAD') ? $_SESSION['cart_fileupload'. $products_id][$value] : '';
          $sql_data_array['products_options_value_text'] = xtc_db_prepare_input($textfeld);
          $sql_data_array['products_options_fileupload'] = xtc_db_prepare_input($fileupload);

          return $sql_data_array;
      }

      public static function restore_contents_attributes_session($products)
      {
          $add_select  = 'products_options_value_text, products_options_fileupload,';
          $textfeld = array();
          $fileupload = array();

          $attributes_query = xtc_db_query("SELECT $add_select
                                                 products_options_id,
                                                 products_options_value_id
                                            FROM "
    .TABLE_CUSTOMERS_BASKET_ATTRIBUTES."
                                           WHERE customers_id = '"
    .(int)$_SESSION['customer_id']."'
                                             AND products_id = '"
    .xtc_db_input($products['products_id'])."'
                                        ORDER BY customers_basket_attributes_id"

                                        );
          while ($attributes = xtc_db_fetch_array($attributes_query)) {
            $_SESSION['cart']->contents[$products['products_id']]['attributes'][$attributes['products_options_id']] = $attributes['products_options_value_id'];
            $value_text = trim($attributes['products_options_value_text']);
            if ($value_text != '') {
              $textfeld[$attributes['products_options_value_id']] = $value_text;
            }
            $upload = trim($attributes['products_options_fileupload']);
            if ($upload != '') {
              $fileupload[$attributes['products_options_value_id']] = $upload;
            }
          }
          unset($_SESSION['cart_textfeld'. $products['products_id']]);
          if (count($textfeld) > 0) {
            $_SESSION['cart_textfeld'. $products['products_id']] = $textfeld;
          }
          unset($textfeld);
          unset($_SESSION['cart_fileupload'. $products['products_id']]);
          if (count($fileupload) > 0) {
            $_SESSION['cart_fileupload'. $products['products_id']] = $fileupload;
          }
          unset($fileupload);
      }

      public function add_cart_attributes_session($value)
      {
          $options_values_name = xtc_oe_get_options_values_name($value,'');      
          $textfeld = ($options_values_name == 'TEXTFELD') ? $_POST['txt_'.$value] : '';      
          if ($options_values_name == 'FILEUPLOAD') {
            $fileupload = $_SESSION['upload'][$value];
            $textfeld = htmlentities($_FILES['upload_'.$value]['name']);
            $_SESSION['cart_fileupload'. $_SESSION['new_products_id_in_cart']][$value] = $fileupload;
            unset($_SESSION['upload'][$value]);
          } else {
            $fileupload = '';
          }
          if ($textfeld != '') {
            $_SESSION['cart_textfeld'. $_SESSION['new_products_id_in_cart']][$value] = $textfeld;        
          }
          $this->textfeld = $textfeld;
              $this->fileupload = $fileupload;
         
      }

      public function add_cart_attributes_db($sql_data_array)
      {
          $sql_data_array['products_options_value_text'] = xtc_db_prepare_input($this->textfeld);
          $sql_data_array['products_options_fileupload'] = xtc_db_prepare_input($this->fileupload);

          return $sql_data_array;

      }

      public static function remove_custom_inputs_session($products_id)
      {
          unset($_SESSION['cart_textfeld'.$products_id]);      
          //Löschen der Upload Dateien
          self::delete_upload_files($_SESSION['cart_fileupload'.$products_id]);      
          unset($_SESSION['cart_fileupload'.$products_id]);
      }

      // ----------------------------------------------------------------------------------------------------- //
      //includes/classes/order.php  
      public static function add_attributes($products_attributes,$attributes)
      {
        $products_attributes['fileupload'] = $attributes['products_options_fileupload'];    

        return $products_attributes;
      }
     
      public static function cart_attributes($products_attributes,$attributes,$products_id,$value)
      {
        $options_values_name = trim($attributes['products_options_values_name']);
        if ($options_values_name == 'TEXTFELD' || $options_values_name == 'FILEUPLOAD') {
          $products_attributes['value'] = trim($_SESSION['cart_textfeld'. $products_id][$value]);
        }

        return $products_attributes;
      }

      // ----------------------------------------------------------------------------------------------------- //
      //includes/modules/order_details_cart.php
      public static function order_details_attributes($module_content, $attributes, $products_id, $value)
      {
          $value_name = $attributes['products_options_values_name'];
          $fileupload = '';
          $filetype = '';
          $filesize = '';
          $fileinfo = '';
          if ($value_name == 'TEXTFELD' || $value_name == 'FILEUPLOAD') {
            $module_content['VALUE_NAME'] = trim($_SESSION['cart_textfeld'. $products_id][$value]);
            if ($value_name == 'FILEUPLOAD') {
              $fileupload = trim($_SESSION['cart_fileupload'. $products_id][$value]);
              if ($fileupload != '' && file_exists($fileupload)) {
                //Dateityp für Smarty separieren
                $str = explode(".",$fileupload);
                $filetype = strtolower(end($str));
                $file_array = array('gif', 'jpg','jpeg','png','swf');
                if (in_array($filetype, $file_array)) {
                  //GETIMAGESIZE
                  $fileinfo = GetImageSize($fileupload);
                  $filesize = intval(@filesize($fileupload) / 1024);
                  $fileinfo = array('width' => $fileinfo[0], 'height' => $fileinfo[1], 'size' => $filesize);
                  $str = explode('/',$fileupload);
                  //Uploadordner verschleiern
                  $fileupload = 'up_load/'. (end($str));
                  //Fileinfos im Warenkorb
                  $module_content['FILEUPLOAD']= $fileupload;
                  $module_content['FILETYPE']= $filetype;
                  $module_content['FILEINFO']= $fileinfo;
                }
              }
            }
          }

          return $module_content;

      }

      // ----------------------------------------------------------------------------------------------------- //
      //inc/xtc_get_uprid.inc.php
      public static function get_value($value)
      {
        $value_name = xtc_oe_get_options_values_name($value,'');
        if ($value_name == 'TEXTFELD') {
          $value = abs(crc32(trim($_POST['txt_'.$value])));
        }
        if ($value_name == 'FILEUPLOAD') {
          $value = abs(crc32(trim($_SESSION['upload'][$value])));
        }
        return $value;
      }
     
      // ----------------------------------------------------------------------------------------------------- //
     
      public static function delete_upload_files ($fileuploads)
      {  
        if (is_array($fileuploads)) {
          reset($fileuploads);
          while (list ($option, $upload) = each($fileuploads)) {
            if(file_exists($upload)) unlink($upload);
          }
        }
      }

    }
     
    Shop Hosting
    8 Antworten
    4998 Aufrufe
    22. Dezember 2012, 00:12:26 von Webi
    0 Antworten
    3825 Aufrufe
    31. Juli 2009, 12:44:40 von andal1979
    3 Antworten
    2382 Aufrufe
    11. April 2010, 11:11:36 von web28
    1 Antworten
    2173 Aufrufe
    20. Juli 2016, 12:24:50 von Bonsai