Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

  1. Creating a new page in Edge

    Problem solved gentlemen, it seems the install instructions was not complete. I got it to work now by updating the catalog/includes/modules/content/footer/cm_footer_account.php and catalog/includes/modules/boxes/templates/information.php files Kind regards
  2. Creating a new page in Edge

    Hi All, I have the information Pages SEO installed on my Bootstrap Oscommerce Edge. BUT the pages that I create do not appear in the footer, nor anywhere else. Can some-one please help me? Many thank kind regards Gerry
  3. MATC

    Hi, I found how I can put the MATC message on the checkout confirmation page. But: the customer can continue with the order regardless if he accepts or not, and when he continues he ends op in the (empty) shopping cart, in stead of ending on the checkout_success page. I keep on searching but some help is appreciated :) Kind regards Gerry
  4. MATC

    My dear Craig, you solved my problem and I ow you my gratitude for that. A million thanks for your time and effort to help me out! Verry, V E R Y MUCH APPRECIATED!! PS: just one more question, do you possibly have an idea how I put the MATC on the checkout_confirmation page in stead of the checkout_payment page? Have a nice evening! (it is 21:24 my time) Kind regards Gerry
  5. MATC

    hmm I do not seem to be able to resolve the problem of the blank spaces. Can you pls have look at this file? thanks a lot! <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } // if there is nothing in the customers cart, redirect them to the shopping cart page if ($cart->count_contents() < 1) { tep_redirect(tep_href_link('shopping_cart.php')); } // if no shipping method has been selected, redirect the customer to the shipping method selection page if (!tep_session_is_registered('shipping')) { tep_redirect(tep_href_link('checkout_shipping.php', '', 'SSL')); } // avoid hack attempts during the checkout procedure by checking the internal cartID if (isset($cart->cartID) && tep_session_is_registered('cartID')) { if ($cart->cartID != $cartID) { tep_redirect(tep_href_link('checkout_shipping.php', '', 'SSL')); } } // Stock Check if ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) { $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) { tep_redirect(tep_href_link('shopping_cart.php')); break; } } } // if no billing destination address was selected, use the customers own address as default if (!tep_session_is_registered('billto')) { tep_session_register('billto'); $billto = $customer_default_address_id; } else { // verify the selected billing address if ( (is_array($billto) && empty($billto)) || is_numeric($billto) ) { $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'"); $check_address = tep_db_fetch_array($check_address_query); if ($check_address['total'] != '1') { $billto = $customer_default_address_id; if (tep_session_is_registered('payment')) tep_session_unregister('payment'); } } } require('includes/classes/order.php'); $order = new order; if (!tep_session_is_registered('comments')) tep_session_register('comments'); if (isset($_POST['comments']) && tep_not_null($_POST['comments'])) { $comments = tep_db_prepare_input($_POST['comments']); } $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); // load all enabled payment modules require('includes/classes/payment.php'); $payment_modules = new payment; require('includes/languages/' . $language . '/checkout_payment.php'); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link('checkout_shipping.php', '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link('checkout_payment.php', '', 'SSL')); require('includes/template_top.php'); ?> <?php echo $payment_modules->javascript_validation(); ?> <div class="page-header"> <h1 class="h3"><?php echo HEADING_TITLE; ?></h1> </div> <?php echo tep_draw_form('checkout_payment', tep_href_link('checkout_confirmation.php', '', 'SSL'), 'post', 'class="form-horizontal" onsubmit="return check_form();"', true); ?> <div class="contentContainer"> <?php if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) { ?> <div class="contentText"> <?php echo '<strong>' . tep_output_string_protected($error['title']) . '</strong>'; ?> <p class="messageStackError"><?php echo tep_output_string_protected($error['error']); ?></p> </div> <?php } ?> <?php //----- BEGINNING OF ADDITION: MATC -----// if($_GET['matcerror'] == 'true'){ ?> <div class="contentText"> <div class="alert alert-danger"> <div class="row"> <div class="col-xs-8"> <i class="fas fa-exclamation-circle"></i> <?php echo MATC_ERROR; ?> </div> </div> </div> </div> <?php } //----- END OF ADDITION: MATC -----// ?> <h2 class="h3"><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></h2> <div class="contentText row"> <div class="col-sm-8"> <div class="alert alert-warning"> <?php echo TEXT_SELECTED_BILLING_DESTINATION; ?> <div class="clearfix"></div> <div class="pull-right"> <?php echo tep_draw_button(IMAGE_BUTTON_CHANGE_ADDRESS, 'fa fa-home', tep_href_link('checkout_payment_address.php', '', 'SSL')); ?> </div> <div class="clearfix"></div> </div> </div> <div class="col-sm-4"> <div class="panel panel-primary"> <div class="panel-heading"><?php echo TITLE_BILLING_ADDRESS; ?></div> <div class="panel-body"> <?php echo tep_address_label($customer_id, $billto, true, ' ', '<br />'); ?> </div> </div> </div> </div> <div class="clearfix"></div> <h2 class="h3"><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></h2> <?php $selection = $payment_modules->selection(); if (sizeof($selection) > 1) { ?> <div class="contentText"> <div class="alert alert-warning"> <div class="row"> <div class="col-xs-8"> <?php echo TEXT_SELECT_PAYMENT_METHOD; ?> </div> <div class="col-xs-4 text-right"> <?php echo '<strong>' . TITLE_PLEASE_SELECT . '</strong>'; ?> </div> </div> </div> </div> <?php } else { ?> <div class="contentText"> <div class="alert alert-info"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></div> </div> <?php } ?> <div class="contentText"> <table class="table table-striped table-condensed table-hover"> <tbody> <?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <tr class="table-selection"> <td><strong><?php echo $selection[$i]['module']; ?></strong></td> <td align="right"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment), 'required aria-required="true"'); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> </tr> <?php if (isset($selection[$i]['error'])) { ?> // <tr> // <td colspan="2"><?php echo $selection[$i]['error']; ?></td> // </tr> <?php } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) { ?> // <tr> // <td colspan="2"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) { ?> // <tr> // <td><?php echo $selection[$i]['fields'][$j]['title']; ?></td> // <td><?php echo $selection[$i]['fields'][$j]['field']; ?></td> // </tr> <?php } ?> // </table></td> // </tr> <?php } ?> <?php $radio_buttons++; } ?> </tbody> // </table> </div> <hr> <div class="contentText"> <div class="form-group"> <label for="inputComments" class="control-label col-sm-4"><?php echo TABLE_HEADING_COMMENTS; ?></label> <div class="col-sm-8"> <?php echo tep_draw_textarea_field('comments', 'soft', 60, 5, $comments, 'id="inputComments" placeholder="' . TABLE_HEADING_COMMENTS . '"'); ?> <!-- BEGINNING OF ADDITION: MATC --> <?php if(MATC_AT_CHECKOUT != 'false'){ require('includes/modules/' . 'matc.php'); } ?> <!-- END OF ADDITION: MATC --> </div> </div> </div> <div class="buttonSet"> <div class="text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', null, 'primary', null, 'btn-success'); ?></div> </div> <div class="clearfix"></div> <div class="contentText"> <div class="stepwizard"> <div class="stepwizard-row"> <div class="stepwizard-step"> <a href="<?php echo tep_href_link('checkout_shipping.php', '', 'SSL'); ?>"><button type="button" class="btn btn-default btn-circle">1</button></a> <p><a href="<?php echo tep_href_link('checkout_shipping.php', '', 'SSL'); ?>"><?php echo CHECKOUT_BAR_DELIVERY; ?></a></p> </div> <div class="stepwizard-step"> <button type="button" class="btn btn-primary btn-circle">2</button> <p><?php echo CHECKOUT_BAR_PAYMENT; ?></p> </div> <div class="stepwizard-step"> <button type="button" class="btn btn-default btn-circle" disabled="disabled">3</button> <p><?php echo CHECKOUT_BAR_CONFIRMATION; ?></p> </div> </div> </div> </div> </div> </form> <?php require('includes/template_bottom.php'); require('includes/application_bottom.php'); ?>
  6. MATC

    I was just thinking, is it not more logical to have the "MATC" on the checkout confirmation page in stead of the checkout payment page? that being said, is it possible to do so? Kind regards Gerry
  7. MATC

  8. MATC

    Hi, this is pretty close to getting it to work. thanks! 2 next problems: there is loads of blank space in the checkout payment between the payment options, the terms, and the continue button. in checkout confirmation I now get a HTTP ERROR 500 "this page doesn't work" pls help
  9. MATC

    hi, thanks for your reply, where can I find this error log? (I'm a total noob)
  10. MATC

    Hi Guys, I do not know if this is the correct place to ask but, I have the Oscommerce responsive BS Edge version and I'm searching for a "must agree with terms" app or solution to add to the checkout page. I have tried MATC but that aint working. When I activate this in admin, the checkout page is not entirly showing, I'm unable to scroll down and there is no continue button :/ In other words: help, please Thank you in advance Kind regards
  11. Hi Guys, never mind, I did a fresh download and install and now it works! YESS!! :)
  12. Dear all, I have installed this addon in my offline site xampp where it works fine. Now I'm trying to install it live but for one reason or the other I cannot install the module. when I go to admin/shipping modules, I see 5 modules on the "install" button, but when I click on it, no modules show. Could any-one help me out? Many thanks! Kind regards Gerry
  13. Yes that did the trick! thank you so much! :)
  14. Dear greasemonkey, thank you for your reply, it changed it as per your reply, but than I see the below error: Fatal error: Call to undefined function tep_fetch_array() in C:\xampp\htdocs\UsedGear\catalog\includes\modules\shipping\zones.php on line 185 Any help would be greatly appreciated Kind regards Gerry
  15. Dear, I'm running this contribution on a test site (xamp) and at localhost/catalog/checkout_shipping.php I receive the below error message: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, object given in C:\xampp\htdocs\*****\catalog\includes\modules\shipping\zones.php on line 185 below is a piece of code in checkout_shipping.php were the error originates (marked in red). Apparently this is some old type of PHP coding and replaced by a new type. BUT I lack the knowledge of PHP to be able to update this piece of coding. Would there be any-one who could help me? Many thanks! Kind regards Gerry // Santosh - Added to select default country if not in listing if ($dest_zone == 0) { $dest_zone = $this->num_zones; // the zone is the lastest zone avalaible } // Santosh - Added to select default country if not in listing if ($dest_zone == 0) { $error = true; // this can no more achieve since by default the value is set to the max number of zones } else { $shipping = -1; $zones_cost = constant('MODULE_SHIPPING_ZONES_COST_' . $dest_zone); $zones_table = preg_split("/[:,]/" , $zones_cost); $size = sizeof($zones_table); $free_shipping_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_ZONES_FREESHIP_" . $dest_zone . "'"); $free_ship = mysql_fetch_assoc($free_shipping_query); $shipping_price = $free_ship['configuration_value']; if((tep_db_num_rows($free_shipping_query) != 0 ) && ($shipping_price <= $order->info['total']) && !empty($free_ship['configuration_value'])) { $shipping_method = MODULE_SHIPPING_ZONES_FREESHIP_TEXT_WAY . ' ' . $order->delivery['country']['title'] . ': '; if ($shipping_num_boxes > 1) { $shipping_method .= $shipping_num_boxes . 'x '; } $shipping_price = 0; $shipping_method .= $shipping_price . ' ' . MODULE_SHIPPING_ZONES_FREESHIP_TEXT_UNITS; $shipping_cost = 0; } else { for ($i=0; $i<$size; $i+=2) { if ($shipping_weight <= $zones_table[$i]) { $shipping = $zones_table[$i+1]; $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $order->delivery['country']['title'] . ': '; if ($shipping_num_boxes > 1) { $shipping_method .= $shipping_num_boxes . 'x '; } $shipping_method .= $shipping_weight . ' ' . MODULE_SHIPPING_ZONES_TEXT_UNITS; break; } }