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: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware

    toppi

    • Viel Schreiber
    • Beiträge: 651
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #300 am: 08. September 2015, 23:54:08
    Hallo,
    ich habe eine Frage zu dem Sperrgut-Modul.

    Auf Seite 1 zu dem Modul bei den Screenshots, da ist bei dem Screen "checkout shipping"
    im Beispiel auch ab 30 Euro versandkostenfrei auszuwählen

    Habe hier auch gesehen, dass es noch ein Modul mit "Artikelabhängige Versandarten" gibt.

    Meine Frage ist daher, ob es möglich ist die "versandkostenfreie Lieferung" zu deaktivieren bzw. müsste man hier zusätzliche noch ein Modul installieren?

    Ich frage deshalb, da beim Sperrgut-Versand meinerseits keine versandkostenfreie Lieferung möglich ist, auch wenn ich ansonsten eine versandkostenfreie Lieferung ab einem bestimmten Warenwert anbiete.

    Bitte um Info dazu.

    Gruß
    toppi

    unbeliveable89

    • Neu im Forum
    • Beiträge: 45
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #301 am: 07. Oktober 2015, 09:51:49
    Hallo,

    ich habe eben das Modul in der neusten Version (1.6) in die aktuellste modified-Version eingebaut - soweit hat alles geklappt. Im Backend ist alles einstellbar, bei den Produkten im Frontend werden die Sperrgutkosten ausgewiesen, nur der Warenkorb scheint irgendwie fehlerbehaftet zu sein. Sobald ich diesen öffne und ein Artikel im Warenkorb liegt sehe ich nur eine komplett weiße Seite - ohne Fehlermeldung.
    Habe nochmals alles Überprüft und konnte die Fehlerquelle bzw. Datei ausfindig machen - finde nur den Fehler konkret noch nicht. Die Datei "order_details_cart.php" ist das Problemkind. Sobald ich die modifizierte Datei mit der Originalen ersetze funktioniert es wieder - natürlich ohne ausgewiesenen Sperrgutkosten. Ich kann den Fehler einfach nicht finden, ist exakt nach Anleitung modifiziert worden (habs bestimmt 3x überprüft).

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: order_details_cart.php 3717 2012-09-29 10:09:21Z web28 $

       modified eCommerce Shopsoftware
       http://www.modified-shop.org

       Copyright (c) 2009 - 2013 [www.modified-shop.org]
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(order_details.php,v 1.8 2003/05/03); www.oscommerce.com
       (c) 2003   nextcommerce (order_details.php,v 1.16 2003/08/17); www.nextcommerce.org
       (c) 2006 xt:Commerce (order_details_cart.php 1281 2005-10-03); www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contribution:

       Customers Status v3.x  (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist

       Credit Class/Gift Vouchers/Discount Coupons (Version 5.10)
       http://www.oscommerce.com/community/contributions,282
       Copyright (c) Strider | Strider@oscworks.com
       Copyright (c  Nick Stanko of UkiDev.com, nick@ukidev.com
       Copyright (c) Andre ambidex@gmx.net
       Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    $module_smarty = new Smarty;

    $module_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
    include_once(DIR_WS_INCLUDES.'modules/payment/klarna/display_klarna_cart.php');


    // include needed functions
    require_once (DIR_FS_INC.'xtc_check_stock.inc.php');
    require_once (DIR_FS_INC.'xtc_get_products_stock.inc.php');
    require_once (DIR_FS_INC.'xtc_remove_non_numeric.inc.php');
    require_once (DIR_FS_INC.'xtc_get_short_description.inc.php');
    require_once (DIR_FS_INC.'xtc_format_price.inc.php');
    require_once (DIR_FS_INC.'xtc_get_attributes_model.inc.php');

    $module_content = array ();
    $any_out_of_stock = '';
    $mark_stock = '';
    $hidden_options = '';
    $sperrgut_price = array(); // added variable for sperrgut module, noRiddle
    $sperrgut_price_tot = 0; // added variable for sperrgut module, noRiddle

    for ($i = 0, $n = sizeof($products); $i < $n; $i ++) {

      if (STOCK_CHECK == 'true') {
        $mark_stock = xtc_check_stock($products[$i]['id'], $products[$i]['quantity']);
        if ($mark_stock) {
          $_SESSION['any_out_of_stock'] = 1;
        }
      }

      $image = '';
      if ($products[$i]['image'] != '') {
        $image = DIR_WS_THUMBNAIL_IMAGES.$products[$i]['image'];
      }

      //show 'delete button' in shopping cart
      $del_button = '<a href="'
              . xtc_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&prd_id=' . $products[$i]['id'], 'NONSSL') // web28 - 2010-09-20 - change SSL -> NONSSL
              . '">' . xtc_image_button('cart_del.gif', IMAGE_BUTTON_DELETE) . '</a>';
      //show 'delete link' in shopping cart
      $del_link = '<a href="'
              . xtc_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&prd_id=' . $products[$i]['id'], 'NONSSL') // web28 - 2010-09-20 - change SSL -> NONSSL
              . '">' . IMAGE_BUTTON_DELETE . '</a>';

    // BOC for sperrgut module, noRiddle
    if (isset($_SESSION['sperrgut_tot_exists'])) {unset($_SESSION['sperrgut_tot_exists']);}
    if ($products[$i]['products_sperrgut'] > 0) {
        $sgprice = xtc_db_query('SELECT configuration_value FROM configuration WHERE configuration_key = "SHIPPING_SPERRGUT_'.$products[$i]['products_sperrgut'].'" ');
        $sgp = xtc_db_fetch_array($sgprice);
        if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '1') {
          $sperrgut_price[$i] = $xtPrice->xtcFormat($sgp['configuration_value'] * $products[$i]['quantity'], true);
          $sperrgut_price_tot = $sperrgut_price_tot + ($sgp['configuration_value'] * $products[$i]['quantity']);
        } else if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '2') {
          $sperrgut_price[$i] = $xtPrice->xtcFormat($sgp['configuration_value'], true);
          $sperrgut_price_tot = $sperrgut_price_tot + ($sgp['configuration_value']);
        } else if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '3') {
          if ($sgp['configuration_value'] > $sperrgut_price_tot) {
            $sperrgut_price_tot = $sgp['configuration_value'];
          } else {
            $sperrgut_price_tot = $sperrgut_price_tot;
          }
        }
    }
    if ($sperrgut_price_tot > 0) {$_SESSION['sperrgut_tot_exists'] = true;}
    // EOC for sperrgut module, noRiddle

      $module_content[$i] = array ( 'PRODUCTS_NAME' => $products[$i]['name'].$mark_stock,
                                    'PRODUCTS_QTY' => xtc_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="2"').
                                                      xtc_draw_hidden_field('products_id[]', $products[$i]['id']).
                                                      xtc_draw_hidden_field('old_qty[]', $products[$i]['quantity']),
                                    'PRODUCTS_MODEL' => $products[$i]['model'],
                                    'PRODUCTS_SHIPPING_TIME'=>$products[$i]['shipping_time'],
                                    'PRODUCTS_TAX' => number_format($products[$i]['tax'], TAX_DECIMAL_PLACES),
                                    'PRODUCTS_IMAGE' => $image,
                                    'IMAGE_ALT' => $products[$i]['name'],
                                    'BOX_DELETE' => xtc_draw_checkbox_field('cart_delete[]', $products[$i]['id']),
                                    'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products[$i]['id'], $products[$i]['name'])),
                                    'BUTTON_DELETE' => $del_button,
                                    'LINK_DELETE' => $del_link,                  
                                    'PRODUCTS_PRICE' => $xtPrice->xtcFormat($products[$i]['price'] * $products[$i]['quantity'], true),
                                    'PRODUCTS_SINGLE_PRICE' => $xtPrice->xtcFormat($products[$i]['price'], true),
                                    'PRODUCTS_SHORT_DESCRIPTION' => xtc_get_short_description($products[$i]['id']),
                                    'SPERRGUT_PRICE' => (isset($sperrgut_price[$i]) ? $sperrgut_price[$i] : ''), // added for sperrgut module, noRiddle
                                    'ATTRIBUTES' => '');

      //products attributes
      if (isset ($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
        $subindex = 0;
        reset($products[$i]['attributes']);
        while (list ($option, $value) = each($products[$i]['attributes'])) {
          $hidden_options .= xtc_draw_hidden_field('id['.$products[$i]['id'].']['.$option.']', $value);

          $attributes = $main->getAttributes($products[$i]['id'],$option,$value);

          $attribute_stock_check = '';
          if (ATTRIBUTE_STOCK_CHECK == 'true' && STOCK_CHECK == 'true') {
            if ($attributes['attributes_stock'] - $products[$i]['quantity'] < 0) {
              $attribute_stock_check  = '<span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>';
              $_SESSION['any_out_of_stock'] = 1;
            }
          }

          $module_content[$i]['ATTRIBUTES'][$subindex] = array ( 'ID' => $attributes['products_attributes_id'],
                                                                 'MODEL' => $attributes['attributes_model'],
                                                                 'EAN' => $attributes['attributes_ean'],
                                                                 'NAME' => $attributes['products_options_name'],
                                                                 'VALUE_NAME' => $attributes['products_options_values_name'].$attribute_stock_check
                                                               );
          $subindex++;
        }
      }
    }
    $smarty->assign('HIDDEN_OPTIONS', $hidden_options);

    $discount = 0;
    $total_content = '';
    $total =$_SESSION['cart']->show_total();
    if ($_SESSION['customers_status']['customers_status_ot_discount_flag'] == '1' && $_SESSION['customers_status']['customers_status_ot_discount'] != '0.00') {
      if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
        $price = $total-$_SESSION['cart']->show_tax(false);
      } else {
        $price = $total;
      }
      $discount = $xtPrice->xtcGetDC($price, $_SESSION['customers_status']['customers_status_ot_discount']);
      $total_content = $_SESSION['customers_status']['customers_status_ot_discount'].' % '.SUB_TITLE_OT_DISCOUNT.' -'.xtc_format_price($discount, $price_special = 1, $calculate_currencies = false).'<br />';
    }

    if ($_SESSION['customers_status']['customers_status_show_price'] == '1') {
      if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0) $total-=$discount;
      if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) $total-=$discount;
      if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 1) $total-=$discount;
      $total_content .= SUB_TITLE_SUB_TOTAL.$xtPrice->xtcFormat($total, true).'<br />';
    } else {
      $total_content .= NOT_ALLOWED_TO_SEE_PRICES.'<br />';
    }

    if (SHOW_SHIPPING == 'true') {
      $module_smarty->assign('SHIPPING_INFO', $main->getShippingLink()); //web28 -2012-09-29 - use main function
    }
    if ($_SESSION['customers_status']['customers_status_show_price'] == '1') {
    $module_smarty->assign('UST_CONTENT', $_SESSION['cart']->show_tax());
    }

    // BOF VERSANDKOSTEN IM WARENKORB
    include DIR_FS_CATALOG.'/includes/shipping_estimate.php';
    // EOF VERSANDKOSTEN IM WARENKORB

    / BOC for sperrgut module, noRiddle
    if ($sperrgut_price_tot > 0) {
        $module_smarty->assign('SPERRGUT', xtc_format_price($sperrgut_price_tot, $price_special = 1, $calculate_currencies = false));
    }
    // EOC for sperrgut module, noRiddle

    $module_smarty->assign('TOTAL_CONTENT', $total_content);
    $module_smarty->assign('language', $_SESSION['language']);
    $module_smarty->assign('module_content', $module_content);
    $module_smarty->assign('TOTAL_WEIGHT', $_SESSION['cart']->weight + SHIPPING_BOX_WEIGHT);

    $module_smarty->caching = 0;
    $module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/order_details.html');

    $smarty->assign('MODULE_order_details', $module);
    ?>
     

    Was könnte hier der Fehlergrund sein?

    Vielen Dank.

    LG Alex

    PS: Gerade habe ich bemerkt, dass die "checkout_shipping.php" ebenfalls eine weiße Seite anzeigt, sobald ich da hinkomme (mit der originalen "order_details_cart.php")...
    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: checkout_shipping.php 2454 2011-12-06 14:44:38Z franky-n-modified eCommerce Shopsoftware $

       modified eCommerce Shopsoftware
       http://www.modified-shop.org

       Copyright (c) 2009 - 2013 [www.modified-shop.org]
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(checkout_shipping.php,v 1.15 2003/04/08); www.oscommerce.com
       (c) 2003 nextcommerce (checkout_shipping.php,v 1.20 2003/08/20); www.nextcommerce.org
       (c) 2006 xtCommerce (checkout_shipping.php 1037 2005-07-17)

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contribution:

       Credit Class/Gift Vouchers/Discount Coupons (Version 5.10)
       http://www.oscommerce.com/community/contributions,282
       Copyright (c) Strider | Strider@oscworks.com
       Copyright (c) Nick Stanko of UkiDev.com, nick@ukidev.com
       Copyright (c) Andre ambidex@gmx.net
       Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/

    include ('includes/application_top.php');
    //web28 - 2012-04-27 - pre-selection the cheapest shipping option
    if (!defined('CHECK_CHEAPEST_SHIPPING_MODUL')) {
      define ('CHECK_CHEAPEST_SHIPPING_MODUL', false); //true, false - default false
    }
    // create smarty elements
    $smarty = new Smarty;
    // include boxes
    require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
    // include needed functions

    require_once (DIR_FS_INC.'xtc_address_label.inc.php');
    require_once (DIR_FS_INC.'xtc_get_address_format_id.inc.php');
    require_once (DIR_FS_INC.'xtc_count_shipping_modules.inc.php');

    require (DIR_WS_CLASSES.'http_client.php');

    // check if checkout is allowed
    if (isset($_SESSION['allow_checkout']) && $_SESSION['allow_checkout'] == 'false') {
            xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
    }

    // if the customer is not logged on, redirect them to the login page
    if (!isset ($_SESSION['customer_id'])) {
            if (ACCOUNT_OPTIONS == 'guest') {
                    xtc_redirect(xtc_href_link(FILENAME_CREATE_GUEST_ACCOUNT, '', 'SSL'));
            } else {
                    xtc_redirect(xtc_href_link(FILENAME_LOGIN, '', 'SSL'));
            }
    }
     
    // if there is nothing in the customers cart, redirect them to the shopping cart page
    if ($_SESSION['cart']->count_contents() < 1) {
            xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
    }
    //BOF - Dokuman - 2009-06-06 - checkout only if minimum order value is reached
    if ($_SESSION['cart']->show_total() > 0 ) {
      if ($_SESSION['cart']->show_total() < $_SESSION['customers_status']['customers_status_min_order'] ) {
        xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
      }
    }
    //EOF - Dokuman - 2009-06-06 - checkout only if minimum order value is reached

    // if no shipping destination address was selected, use the customers own address as default
    if (!isset ($_SESSION['sendto'])) {
            $_SESSION['sendto'] = $_SESSION['customer_default_address_id'];
    } else {
            // verify the selected shipping address
            $check_address_query = xtc_db_query("select count(*) as total from ".TABLE_ADDRESS_BOOK." where customers_id = '".(int) $_SESSION['customer_id']."' and address_book_id = '".(int) $_SESSION['sendto']."'");
            $check_address = xtc_db_fetch_array($check_address_query);

            if ($check_address['total'] != '1') {
                    $_SESSION['sendto'] = $_SESSION['customer_default_address_id'];
                    if (isset ($_SESSION['shipping']))
                            unset ($_SESSION['shipping']);
            }
    }

    // BOF - Tomcraft - 2009-10-03 - Paypal Express Modul
    if(isset($_SESSION['payment']) && $_SESSION['payment'] == 'paypalexpress') {
      unset($_SESSION['payment']);
      unset($_SESSION['nvpReqArray']);
      unset($_SESSION['reshash']);
      unset($_SESSION['paypal_express_checkout']);
    }
    // EOF - Tomcraft - 2009-10-03 - Paypal Express Modul

    require (DIR_WS_CLASSES.'order.php');
    $order = new order();

    //BOF - DokuMan - 2010-08-30 - check for cartID also in checkout_shipping
    // avoid hack attempts during the checkout procedure by checking the internal cartID
    if (isset ($_SESSION['cart']->cartID) && isset ($_SESSION['cartID'])) {
        if ($_SESSION['cart']->cartID !== $_SESSION['cartID']) {
          unset($_SESSION['shipping']);
          unset($_SESSION['payment']);
        }
    }
    //EOF - DokuMan - 2010-08-30 - check for cartID also in checkout_shipping

    // register a random ID in the session to check throughout the checkout procedure
    // against alterations in the shopping cart contents
    $_SESSION['cartID'] = $_SESSION['cart']->cartID;

    // if the order contains only virtual products, forward the customer to the billing page as
    // a shipping address is not needed
    if ($order->content_type == 'virtual' || ($order->content_type == 'virtual_weight') || ($_SESSION['cart']->count_contents_virtual() == 0)) { // GV Code added
            $_SESSION['shipping'] = false;
            $_SESSION['sendto'] = false;
            xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }

    $total_weight = $_SESSION['cart']->show_weight();
    $total_count = $_SESSION['cart']->count_contents();

    if ($order->delivery['country']['iso_code_2'] != '') {
            $_SESSION['delivery_zone'] = $order->delivery['country']['iso_code_2'];
    }
    // load all enabled shipping modules
    require (DIR_WS_CLASSES.'shipping.php');
    $shipping_modules = new shipping;

    require (DIR_WS_MODULES.'order_total/ot_shipping.php');
    $ot_shipping = new ot_shipping;
    $ot_shipping->process();

    if ($free_shipping == true) {
      include (DIR_WS_LANGUAGES.$_SESSION['language'].'/modules/order_total/ot_shipping.php');
    }

    // process the selected shipping method
    if (isset ($_POST['action']) && ($_POST['action'] == 'process')) {

            if ((xtc_count_shipping_modules() > 0) || ($free_shipping == true)) {
                    if ((isset ($_POST['shipping'])) && (strpos($_POST['shipping'], '_'))) {
                            $_SESSION['shipping'] = $_POST['shipping'];

                            list ($module, $method) = explode('_', $_SESSION['shipping']);
                            if ((isset($$module) && is_object($$module) ) || ($_SESSION['shipping'] == 'free_free')) {
                                    if ($_SESSION['shipping'] == 'free_free') {
                                            $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
                                            $quote[0]['methods'][0]['cost'] = '0';
                                    } else {
                                            $quote = $shipping_modules->quote($method, $module);
                                    }
                                    if (isset ($quote['error'])) {
                                            unset ($_SESSION['shipping']);
                                    } else {
                                            if ((isset ($quote[0]['methods'][0]['title'])) && (isset ($quote[0]['methods'][0]['cost']))) {
                                                    $_SESSION['shipping'] = array ('id' => $_SESSION['shipping'],
                                               'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'].' ('.$quote[0]['methods'][0]['title'].')'),
                                               'cost' => $quote[0]['methods'][0]['cost']);

                                                    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
                                            }
                                    }
                            } else {
                                    unset ($_SESSION['shipping']);
                            }
        } else {
          $smarty->assign('error', ERROR_CHECKOUT_SHIPPING_NO_METHOD);
                    }
            } else {
                    $_SESSION['shipping'] = false;
        $smarty->assign('error', ERROR_CHECKOUT_SHIPPING_NO_MODULE);
            }
    }

    // get all available shipping quotes
    $quotes = $shipping_modules->quote();

    // if no shipping method has been selected, automatically select the cheapest method.
    // if the modules status was changed when none were available, to save on implementing
    // a javascript force-selection method, also automatically select the cheapest shipping
    // method if more than one module is now enabled
    if ((!isset ($_SESSION['shipping']) && CHECK_CHEAPEST_SHIPPING_MODUL) || (isset ($_SESSION['shipping']) && ($_SESSION['shipping'] == false) && (xtc_count_shipping_modules() > 1))) { //web28 - 2012-04-27 - pre-selection the cheapest shipping option
            $_SESSION['shipping'] = $shipping_modules->cheapest();
    }
    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_SHIPPING, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_SHIPPING, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

    require (DIR_WS_INCLUDES.'header.php');

    $smarty->assign('FORM_ACTION', xtc_draw_form('checkout_address', xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')).xtc_draw_hidden_field('action', 'process'));
    $smarty->assign('ADDRESS_LABEL', xtc_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br />'));
    $smarty->assign('BUTTON_ADDRESS', '<a href="'.xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL').'">'.xtc_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS).'</a>');
    // DokuMan - 2009-06-01 - do not correct the name 'BUTON_CONTINUE' to remain compatible to standard templates
    $smarty->assign('BUTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
    $smarty->assign('FORM_END', '</form>');

    $module_smarty = new Smarty;
    $shipping_block = ''; //DokuMan - 2010-08-30 - set undefined variable
    if (xtc_count_shipping_modules() > 0) {
            $showtax = $_SESSION['customers_status']['customers_status_show_price_tax'];
            $module_smarty->assign('FREE_SHIPPING', $free_shipping);
            # free shipping or not...
            if ($free_shipping == true) {
                    $module_smarty->assign('FREE_SHIPPING_TITLE', FREE_SHIPPING_TITLE);
                    $module_smarty->assign('FREE_SHIPPING_DESCRIPTION', sprintf(FREE_SHIPPING_DESCRIPTION, $xtPrice->xtcFormat($free_shipping_value_over, true, 0, true)).xtc_draw_hidden_field('shipping', 'free_free'));
                    $module_smarty->assign('FREE_SHIPPING_ICON', $quotes[$i]['icon']);
            } else {
                    $radio_buttons = 0;
                    #loop through installed shipping methods...
                    for ($i = 0, $n = sizeof($quotes); $i < $n; $i ++) {
                            if (!isset ($quotes[$i]['error'])) {
                           
    for ($j = 0, $n2 = sizeof($quotes[$i]['methods']); $j < $n2; $j ++) {
        // BOC get cost for sperrgut module, noRiddle
        if(($quotes[$i]['methods'][$j]['id'] != 'freeamount' && $quotes[$i]['methods'][$j]['id'] != 'selfpickup') && MODULE_ORDER_TOTAL_SPERRGUT_SHOW_IN_CHECKOUT_SHIPPING == 'true' && isset($_SESSION['sperrgut_tot_exists'])) {
            $quotes[$i]['methods'][$j]['sperrgut_costs'] = (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '3' ? MODULE_ORDER_TOTAL_SPERRGUT_LINK2 : MODULE_ORDER_TOTAL_SPERRGUT_LINK1);
        }
        // EOC get cost for sperrgut module, noRiddle
        # set the radio button to be checked if it is the method chosen
                                            $quotes[$i]['methods'][$j]['radio_buttons'] = $radio_buttons;
                                            $checked = ((isset($_SESSION['shipping']) && $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']) ? true : false);
                                            if (($checked == true) || ($n == 1 && $n2 == 1)) {
                                                    $quotes[$i]['methods'][$j]['checked'] = 1;
                                            }
                                            if (($n > 1) || ($n2 > 1)) {
                                                    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 || !isset($quotes[$i]['tax'])) {
                                                            $quotes[$i]['tax'] = 0;
                }
                                                    $quotes[$i]['methods'][$j]['price'] = $xtPrice->xtcFormat(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']), true, 0, true);                                         
                $quotes[$i]['methods'][$j]['radio_field'] = xtc_draw_radio_field('shipping', $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'], $checked, 'id="'.($i+1).'"');
                                            } else {
                                                    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0) {
                                                            $quotes[$i]['tax'] = 0;
                }
                $quotes[$i]['methods'][$j]['price'] = $xtPrice->xtcFormat(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0), true, 0, true).xtc_draw_hidden_field('shipping', $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id']);
                                            }
                                            $radio_buttons ++;
                                    }
                            }
                    }
                    $module_smarty->assign('module_content', $quotes);
            }
            $module_smarty->caching = 0;
            $shipping_block = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/checkout_shipping_block.html');
    }

    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('SHIPPING_BLOCK', $shipping_block);
    $main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/checkout_shipping.html');
    $smarty->assign('main_content', $main_content);
    $smarty->caching = 0;
    if (!defined('RM'))
            $smarty->load_filter('output', 'note');
    $smarty->display(CURRENT_TEMPLATE.'/index.html');
    include ('includes/application_bottom.php');
    ?>
     

    unbeliveable89

    • Neu im Forum
    • Beiträge: 45
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #302 am: 07. Oktober 2015, 12:08:34
    Hatte doch noch 1-2 Fehler vom Code-Kopieren gefunden.. funktioniert nun! :)

    Allerdings hätte ich noch ein Problem. Beim Warenkorb wird in der Summe nicht der Sperrgutzuschlag dazugerechnet.

    Ein bisschen Offtopic: Ist es eigentlich möglich die Zwischensumme also Nettobetrag und die Summe als Brutto anzeigen zu lassen? Dies müsste doch eigentlich Standard sein, sofern man die MwSt. als exkl. eingestellt hat. In der checkout_confirmation wird es korrekt anzeigt (halt so, wie man es im Backend unter "Zusammenfassung" einstellt).

    LG

    klasi61

    • Fördermitglied
    • Beiträge: 65
    Hallo zusammen,

    war jetzt schon länger nicht in diesem Forum, möchte jetzt einen neuen Shop aufsetzen und brauche dafür eine Möglichkeit einen Aufschlag für Speditionsfracht anzusetzen. Für Speditionsfracht gibt es 2 Kriterien, einmal das Gewicht d.h. über 31,5 Kg wird per Spedition geliefert und zum anderen die Maße des Produkts d.h. alles was länger als 120 cm ist wird ebenfalls per Spedition geliefert. D.h. also die Auswahl einer Option kann den Artikel zur Speditionsware machen.

    Ich habe mir diesen Thread komplett durchgelesen wobei dieses Problem von zwei anderen Forenmitgliedern ähnlich geschildert wurde - die haben leider keine Antwort bekommen.

    Kennt jemand ggf. ein Modul mit dem das so gelöst werden könnte?

    LG

    klasi61

    • Fördermitglied
    • Beiträge: 65
    Hallo nochmal,

    ich habe mir die Dateien mal angeschaut (Basis Modul für Ver. 1.05 + Erweiterung für 1.06) und komme da etwas ins Grübeln weil bei einem Vergleich der Dateien zur aktuellen Shop-Version doch gravierende Unterschiede vorhanden sind die nach meinem laienhaften Beurteilungsvermögen wohl nicht gänzlich der Änderungen für die Sperrgut Funktionalität geschuldet sind.

    Ist das so? Kann dadurch nicht die allgemeine Shop-Funktionalität beeinträchtigt werden?
    LG

    maniwic

    • Neu im Forum
    • Beiträge: 5
    Sperrgutzuschlag bei Zahlung per KLARNA und PayPal nicht als Versandkosten übergeben

    Hallo,

    ich habe „modified eCommerce Shopssoftware v1.06 rev 4356 dated: 2013-01-23“ mit dem „Sperrgut_modul_3plus“ in der Version aus März 2013 also ohne die Erweiterungen.
    Mit dem Sperrgutzuschlag lege ich die Versandkosten für bestimmte Artikel (Polstermöbel) fest. Die Versandkosten bestehen hier nur aus dem Sperrgutzuschlag – das Gewicht der Artikel ist auf 0 gesetzt. Für andere Artikel werden Versandkosten nach Gesamtgewicht (tabellarisch) berechnet.

    Das funktioniert soweit zuverlässig.

    Aber jetzt bei Integration von KLARNA Ratenzahlung hat der Entwickler von Klarna nach einer Testbestellung mir folgendes geschrieben:
    „Die Versandkosten müssen den Flag 40 haben und die MwSt muss an uns übermittelt werden“ und dieses Screenshot gesendet. Das ist wohl Auszug aus den an KLARNA übermittelten Daten. Es geht um den Teil mit Farbmarkierungen (ich habe „Sperrgutzuschlag“ in „Versandkosten Polstermöbel“ umbenannt)
    [ Für Gäste sind keine Dateianhänge sichtbar ]

    Die markierten Stellen sollten wohl aussehen wie weiter oben bei „Versandkosten Kastenmöbel (Berechnet nach dem Gesamtgewicht)“ (das sind tabellarische Versandkosten)

    Meine Frage ist:
    Wo, bzw. wie kann ich einstellen, dass der Sperrgutzuschlag (bei mir „Versandkosten Polstermöbel“)  genauso behandelt wird / mit den gleichen Parametern übergeben wird wie die „eigentlichen Versandkosten“ (z.B. tabellarische).

    Im Warenkorb und beim checkout werden die Werte richtig angezeigt (ich arbeite nur mit Bruttopreisen).

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

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

     Allerdings bei Übergabe an PayPal Kaufabwicklung stimmt auch etwas nicht mit dem Sperrgutzuschlag und MSt. Sperrgutzuschlag bzw. „Versandkosten Polstermöbel“  tauchen dort bei der Abrechung gar nicht auf, Die Gesamtsumme stimmt aber und deswegen hat das bisher niemanden gestört. Vielleicht kann das beim eingrenzen des Problem helfen.  
      [ Für Gäste sind keine Dateianhänge sichtbar ]

    Wenn die tabellarischen Versandkosten zum Einsatz kommen sieht alles wieder korrekt aus. Für eine Antwort oder Hinweis, wo ich weiter suchen soll wäre ich dankbar.
    Gruß
    Marian W.

    maniwic

    • Neu im Forum
    • Beiträge: 5
    Hallo nochmal,

    das oben beschriebene Problem
    Sperrgutzuschlag bei Zahlung per KLARNA und PayPal nicht als Versandkosten übergeben,

    konnte ich doch ohne Hilfe lösen.
    mfg
    Marian W.

    Martin109

    • Fördermitglied
    • Beiträge: 280
    • Geschlecht:
    hallo,

    ist das Sperrgut Modul 3 Plus auch schon für die 2.00 Version verfügbar ?

    Gruß Martin

    www.bay-tec.de

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.992
    • Geschlecht:
    Hallo nochmal,

    das oben beschriebene Problem
    Sperrgutzuschlag bei Zahlung per KLARNA und PayPal nicht als Versandkosten übergeben,

    konnte ich doch ohne Hilfe lösen.
    mfg
    Marian W.

    Auf die Gefahr hin mich zu wiederholen:
    Der Community-Gedanke schließt ein, daß, wenn man hier Fragen stellt und das Problem irgendwie löst, die Lösung mit der Community teilt und nicht nur lapidar schreibt "konnte ich lösen" oder Ähnliches.

    Danke.

    Gruß,
    noRiddle

    umbi

    • Mitglied
    • Beiträge: 163
    • Geschlecht:
    Hallo zusammen, beschäftige mich gerade damit das Modul für V.2.0.x klar zu machen da es für mich unabdingbar ist.

    Installiert man die  V.1.6 Sperrgut auf die V.2.0.x Version erscheint folgender Fehler im Backend:

    Fatal error: Cannot redeclare class ot_sperrgut in www/includes/modules/order_total/ot_sperrgut.php on line 21

    welche besagt:  class ot_sperrgut {   d.h. für mich ich muss erst mal die klasse generieren?

    Was folgenden Errorlog ausgibt:

    call_user_func() expects parameter 1 to be a valid callback, function 'xtc_get_sperrgut_method' not found or invalid function name in File:www/admin/includes/functions/general.php on Line: 1455
    [28-06-2016 00:53:59] E_WARNING   : LoggingManager: Backtrace #0 - /www/admin/modules.php called at Line 547
    [28-06-2016 16:29:50] E_WARNING   : LoggingManager: call_user_func() expects parameter 1 to be a valid callback, function 'xtc_get_sperrgut_method' not found or invalid function name in File: /www/admin/includes/functions/general.php on Line: 1455
    [28-06-2016 16:29:50] E_WARNING   : LoggingManager: Backtrace #0 - /www/admin/modules.php called at Line 547

    Oder kann man dazu ganz die Klasse der V1.05  verwenden?
    Freue mich auf eine baldige Antwort vom Profi :-)

    Whiteflash

    • Fördermitglied
    • Beiträge: 186
    • Geschlecht:
    Hallo umbi,

    zu deiner Frage mit der Fehlermeldung:

    Nein, "cannot redeclare class xy" besagt genau im Gegenteil, der Interpreter kann die genannte Klasse nicht ein zweites Mal deklarieren. Der Fehler tritt auf, wenn im Script mehrfach per "require()" oder "include()" die Datei eingebunden wird, die die Definition zu Klasse xy enthält.

    Du kannst den Fehler umgehen, indem du stattdessen  "require_once()" oder "include_once()" verwendest, denn dann checkt der Interpreter, ob die Datei bereits schon aufgerufen wurde oder nicht.

    onyx57

    • Neu im Forum
    • Beiträge: 17
    • Geschlecht:
    Hallo zusammen

    Auch ich benötige das Sperrgutmodul für die neue Version 2.00 und habe bisher nichts gefunden.
    Das Modul V1.6 bringt lauter Fehler und da bin ich verloren.

    Für den eingerichteten Shop http://shop4mot.myhostpoint.ch werden nebst Kiloware auch noch grosse Hundebetten angeboten, die nicht mehr per CH-Post, sondern nur mit DPD - und einem enspr. Zuschlag - versandt werden können.

    Gibt es irgendwo eine freundliche Seele, das Modul auf Version 2 zu trimmen?
    Herzliche Grüsse.
    Otto

    nitroox

    • Frisch an Board
    • Beiträge: 52
    Hallo zusammen,

    ich versuche mit diesem Modul Pfand auf meine Artikel darzustellen.

    Nun meine Frage, gibt es hier eine Möglichkeit, dass der Pfand unter dem jeweiligen Artikel mit Preis und Ust. im WK steht?

    karsta.de

    • Experte
    • Beiträge: 3.158
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #313 am: 01. September 2016, 00:45:31
    Na das sollte kein Problem sein, da bei Verwendung des ungeänderten Sperrgutmoduls auch die Sperrgutkosten explizit bei jedem Atikel angezeigt werden. (z.B. so Zzgl. Sperrgutzuschlag: 30,00 EUR)

    nitroox

    • Frisch an Board
    • Beiträge: 52
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #314 am: 01. September 2016, 09:01:20
    Wie mache ich das am besten?

    Bei mir der Zuschlag nur einmal bei den Versandkosten angezeigt und nicht unter jedem Artikel (wird da auch die Mwst hochgerechnet?)
               
    anything