chpohl Posted March 16, 2005 Report Share Posted March 16, 2005 INSERT INTO configuration VALUES (', 'SN_CHECKOUT_MINIMUM_VALUE_PRICE', '20.0000', 800, 1, NULL, now(), NULL, NULL'); INSERT INTO configuration VALUES ('', 'SN_CHECKOUT_MINIMUM_VALUE_STATUS', 'false', 800, 2, NULL, now(), NULL, 'xtc_cfg_select_option(array(\'true\', \'false\'),'); Das muss alles da rein Link to comment Share on other sites More sharing options...
senior006de Posted March 16, 2005 Report Share Posted March 16, 2005 Habe es heraus gefunden :bounce: INSERT INTO configuration VALUES (', 'SN_CHECKOUT_MINIMUM_VALUE_PRICE', '20.0000', 800, 1, NULL, now(), NULL, NULL'); INSERT INTO configuration VALUES ('', 'SN_CHECKOUT_MINIMUM_VALUE_STATUS', 'false', 800, 2, NULL, now(), NULL, 'xtc_cfg_select_option(array(\'true\', \'false\'),'); guckst Du rot markiert :wall: INSERT INTO configuration VALUES (",'SN_CHECKOUT_MINIMUM_VALUE_PRICE', '20.0000', 800, 1, NULL, now(), NULL, NULL'); INSERT INTO configuration VALUES (",'SN_CHECKOUT_MINIMUM_VALUE_STATUS', 'false', 800, 2, NULL, now(), NULL, 'xtc_cfg_select_option(array(\'true\', \'false\'),'); Es lag an den " statt ' '. :grml: Aber es funzt jetzt. Mu? man aber nicht verstehen. Gru? J?rgen :pint: Wo war ich nur, als ich mich dringend brauchte !?? Link to comment Share on other sites More sharing options...
chpohl Posted March 16, 2005 Report Share Posted March 16, 2005 upps :pst: Link to comment Share on other sites More sharing options...
portillo Posted July 20, 2005 Report Share Posted July 20, 2005 Bei mir triit ebenfalls ein Fehler auf: Fatal error: Call to undefined function: xtc_format_price() in /homepages/15/d119343214/htdocs/inc/sn_checkout_minimum_value_1.inc.php on line 16 so sieht line 16 aus: $smarty->assign('checkout_minimum_value_db', xtc_format_price(SN_CHECKOUT_MINIMUM_VALUE_PRICE, $price_special=1, $calculate_currencies=false)); Habe schon vieles ausprobiert. N?schts klappt. SQL Eintr?ge sind korrekt!? Jemand ne Idee? Link to comment Share on other sites More sharing options...
Sascha Posted July 23, 2005 Author Report Share Posted July 23, 2005 Hast du die Erweiterung in die v3 eingebaut ? Kann das sein ? Gru? Sascha Originally posted by portillo@Jul 20 2005, 02:59 PM Bei mir triit ebenfalls ein Fehler auf: Fatal error: Call to undefined function: xtc_format_price() in /homepages/15/d119343214/htdocs/inc/sn_checkout_minimum_value_1.inc.php on line 16 so sieht line 16 aus: $smarty->assign('checkout_minimum_value_db', xtc_format_price(SN_CHECKOUT_MINIMUM_VALUE_PRICE, $price_special=1, $calculate_currencies=false)); Habe schon vieles ausprobiert. N?schts klappt. SQL Eintr?ge sind korrekt!? Jemand ne Idee? Quoted post Link to comment Share on other sites More sharing options...
portillo Posted July 24, 2005 Report Share Posted July 24, 2005 Das k?nnte sein, ja!? Habe das Problem nun anderweitig gel?st...ist etwas umst?ndlich aber im Rahmen! Link to comment Share on other sites More sharing options...
Sarcago Posted August 9, 2005 Report Share Posted August 9, 2005 Originally posted by portillo@Jul 20 2005, 03:59 PM Bei mir triit ebenfalls ein Fehler auf: Fatal error: Call to undefined function: xtc_format_price() in /homepages/15/d119343214/htdocs/inc/sn_checkout_minimum_value_1.inc.php on line 16 so sieht line 16 aus: $smarty->assign('checkout_minimum_value_db', xtc_format_price(SN_CHECKOUT_MINIMUM_VALUE_PRICE, $price_special=1, $calculate_currencies=false)); Habe schon vieles ausprobiert. N?schts klappt. SQL Eintr?ge sind korrekt!? Jemand ne Idee? Quoted post Hm, dieses Problem tritt auf wenn man versucht, das Modul in Version 3 zu integrieren...l?sst sich aber relativ einfach l?sen: --> shopping_cart.php Suche: require_once(DIR_FS_INC . 'xtc_recalculate_price.inc.php'); und f?ge danach folgendes ein: // Mindestbestellwert require_once(DIR_FS_INC . 'sn_checkout_minimum_value_1.inc.php'); require_once(DIR_FS_INC . 'xtc_format_price.inc.php'); Link to comment Share on other sites More sharing options...
fanetti Posted September 1, 2005 Report Share Posted September 1, 2005 Guten Tag Ich habe den gleichen Fehler wie oben Beschrieben. Ich habe in der shopping-cart.php diese Zeilen hinzugef?gt, doch es funktioniert trotzdem irgendwie nicht. Gibt es eine andere L?sung? Danke und Gruss Edit: ==== Ich habe soeben herausgefunden, dass dieser Fehler nur auftritt, wenn der Mindestbetrag unterschritten wird. Ansonsten erscheint der Warenkorb normal. Ich hoffe irgendwer kann mir weiterhelfen... Danke im Voraus! Link to comment Share on other sites More sharing options...
Sarcago Posted September 1, 2005 Report Share Posted September 1, 2005 Hallo, welche XT-Commerce Version nutzt du? Wie genau lautet der Text der Fehlermeldung? Link to comment Share on other sites More sharing options...
fanetti Posted September 1, 2005 Report Share Posted September 1, 2005 Wie benutzen die Version v3.0.3 Die Fehlermeldung lautet: Fatal error: Call to undefined function: xtc_format_price() in /shop/inc/sn_checkout_minimum_value_1.inc.php on line 16 Vielen Dank f?r die Hilfe! Gruss aus der Schweiz Link to comment Share on other sites More sharing options...
Sarcago Posted September 1, 2005 Report Share Posted September 1, 2005 Hm, und du hast auch (wie beschrieben), die ganz unten stehende Zeile in die Datei shopping_cart.php eingef?gt? Der Fehler tritt auf, wenn du auf Warenkorb klickst, nicht erst beim Klick auf kaufen? Gibts bei dir im Verzeichnis inc die Datei xtc_format_price.inc.php? Wenn du drei Fragen mit ja beantworten kannst, f?ge mal in die Datei sn_checkout_minimum_value_1.inc.php folgende Zeile vor if (SN_CHECKOUT_MINIMUM_VALUE_STATUS=='true') { ein: require_once(DIR_FS_INC . 'xtc_format_price.inc.php'); Link to comment Share on other sites More sharing options...
fanetti Posted September 6, 2005 Report Share Posted September 6, 2005 Vielen Dank f?r die Antwort. Jetzt funktionierts Perfekt ;-) Nochmals Vielen Dank und Gruss aus der Schweiz Link to comment Share on other sites More sharing options...
pommes Posted November 29, 2005 Report Share Posted November 29, 2005 Hi, ich verwende XTC2 und bekomme folgende Fehlermeldung: Parse error: parse error in /srv/www/htdocs/web3/html/checkout_shipping.php on line 293 in Zeile 293 ist aber nur ?>, das kann unm?glich der Fehler sein. Hier mal die gesamte Datei: include( 'includes/application_top.php'); // 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_draw_hidden_field.inc.php'); require_once(DIR_FS_INC . 'xtc_image_button.inc.php'); 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_once(DIR_FS_INC . 'xtc_draw_textarea_field.inc.php'); require_once(DIR_FS_INC . 'xtc_draw_radio_field.inc.php'); // Mindestbestellwert require_once(DIR_FS_INC . 'sn_checkout_minimum_value_2.inc.php'); require(DIR_WS_CLASSES.'http_client.php'); // check if checkout is allowed if ($_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'])) { 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)); } // 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']); } } require(DIR_WS_CLASSES . 'order.php'); $order = new order; // 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')) { // 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_weight = $_SESSION['cart']['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; if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) { // W. Kaiser -- Free shipping national/international require_once(DIR_FS_INC . 'xtc_get_free_shipping_amount.inc.php'); if (xtc_get_free_shipping_amount()) { if ( ($order->info['total'] >= FREE_AMOUNT)) { $free_shipping = true; include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/ot_shipping.php'); } else { $free_shipping = false; } } // W. Kaiser -- Free shipping national/international // 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 ( 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 { $_SESSION['shipping'] = false; xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } } // 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']) || ( isset($_SESSION['shipping']) && ($_SESSION['shipping'] == false) && (xtc_count_shipping_modules() > 1) ) ) $_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>'); $smarty->assign('BUTON_CONTINUE',xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); if (xtc_count_shipping_modules() > 0) { $shipping_block =' <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2">'; if ($free_shipping == true) { $shipping_block .=' <tr> <td>'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> <td colspan="2" width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> <td class="main" colspan="3"><b>'. FREE_SHIPPING_TITLE.'</b>'. $quotes[$i]['icon'].'</td> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> </tr> <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)"> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> <td class="main" width="100%">'. sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . xtc_draw_hidden_field('shipping', 'free_free').'</td> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> </tr> </table></td> <td>'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> </tr>'; } else { $radio_buttons = 0; for ($i=0, $n=sizeof($quotes); $i<$n; $i++) { $shipping_block .=' <tr> <td>'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> <td class="main" colspan="3"><b>'. $quotes[$i]['module'].'</b>'. $quotes[$i]['icon'].'</td> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> </tr>'; if (isset($quotes[$i]['error'])) { $shipping_block .=' <tr> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> <td class="main" colspan="3">'. $quotes[$i]['error'].'</td> <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> </tr>'; } else { for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { // set the radio button to be checked if it is the method chosen $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']) ? true : false); if ( ($checked == true) || ($n == 1 && $n2 == 1) ) { $shipping_block .=' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { $shipping_block .= ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } $shipping_block .=' <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> <td class="main" width="75%">'. $quotes[$i]['methods'][$j]['title'].'</td> '; if ( ($n > 1) || ($n2 > 1) ) { if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 ) $quotes[$i]['tax'] = ''; if ($_SESSION['customers_status']['customers_status_show_price_tax']==0) $quotes[$i]['tax']=0; $shipping_block .=' <td class="main">'. xtc_format_price(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']),$price_special=1,$calculate_currencies=true).'</td> <td class="main" align="right">'. xtc_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked).'</td> '; } else { if ($_SESSION['customers_status']['customers_status_show_price_tax']==0) $quotes[$i]['tax']=0; $shipping_block .=' <td class="main" align="right" colspan="2">'. xtc_format_price(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']),$price_special=1,$calculate_currencies=true) . xtc_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']).'</td> '; } $shipping_block .=' <td width="10">'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> </tr> '; $radio_buttons++; } } $shipping_block .=' </table></td> <td>'. xtc_draw_separator('pixel_trans.gif', '10', '1').'</td> </tr> '; } } $shipping_block .=' </table></td> </tr> </table> '; } $smarty->assign('language', $_SESSION['language']); $smarty->assign('SHIPPING_BLOCK',$shipping_block); $smarty->caching = 0; $main_content=$smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_shipping.html'); $smarty->assign('language', $_SESSION['language']); $smarty->assign('main_content',$main_content); $smarty->caching = 0; if (!defined(RM)) $smarty->load_filter('output', 'note'); $smarty->display(CURRENT_TEMPLATE . '/index.html'); ?> Kann mir bitte jemand helfen ? Gru? Pommes Link to comment Share on other sites More sharing options...
memo_06 Posted September 12, 2006 Report Share Posted September 12, 2006 Guten Tag Gibt es nun eine Möglichkeit die Mindestbestellmenge für gewisse Kategorien auszuschalten? Besten Dank und Gruss Link to comment Share on other sites More sharing options...
memo_06 Posted September 14, 2006 Report Share Posted September 14, 2006 Gibt es hier im Forum noch jemand, der sich mit diesem Modul auskennt? Wie bereits erwähnt, müssen wir in unserem Shop für eine einzelne Kategorie (in unserem Fall die Download-Artikel) den Mindestbestellwert ändern. Kann uns da jemand helfen? Selbstverständlich könnte man auch finanziell was machen Besten Dank im Voraus... Gruss Link to comment Share on other sites More sharing options...
ppreidel Posted January 20, 2009 Report Share Posted January 20, 2009 Hallo Sponsoren! Ich bin dabei meiner Shop neu aufzusetzen. Da steckt noch eine Addon drin, und zwar: Mindestbestellwert V1.0 (von User Sascha, ca. 2005) Ich möchte gern dieses Addon komplett entfernen. Hat jemand von Euch noch das Installations-Doku von damals? Soweit ich feststellen kann, geht es um die folgenden Dateien: Komplett Entfernen: /inc/sn_checkout_minimum_value_1.inc.php /inc/sn_checkout_minimum_value_2.inc.php Code-Änderungen Ruckgängig machen: /includes/modules/payment/invoice.php /lang/german/modules/payment/invoice.php Habe ich was übersehen? Jim Link to comment Share on other sites More sharing options...
MAD King Posted February 7, 2009 Report Share Posted February 7, 2009 Das ist doch schon in der Version 3.04 integriert oder? Link to comment Share on other sites More sharing options...
ppreidel Posted February 8, 2009 Report Share Posted February 8, 2009 Das ist doch schon in der Version 3.04 integriert oder? Ich glaube schon, habe ich mal in Admin gesehen. Meine problem ist ist das Module ist nochmals geändert worden es hat eine komplette neue Funktion bekommen. a) Kunden die auf Rechnung bestellen, haben eine x-Warenkorb-Limit gesetzt bekommmen. Nach x-Bestellungen auf Rechnung ist dann dieses Limit automatisch aufgehoben worden. Jim Link to comment Share on other sites More sharing options...
Doerk Posted August 11, 2009 Report Share Posted August 11, 2009 Hallo zusammen, gibt es für den Veyton Shop auch ein Mindestbestellwert Modul? Gruß Doerk Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.