Jump to content
Latest News: (loading..)

ghprosvs

Members
  • Content count

    19
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Happy Saturday every-one. I'm running into a problem with a modified version of BS Edge. Modified in the sense of adding some extra's like payment modules, CK Editor, Information Pages, MATC. whilst testing and modifying I never saw a problem untill I - for no particular reason - tried to visit the admin/modules_content.php file. I cannot enter it any more (http500 error this page does not work), now I checked this page and any other pages that 've been modified since the clean install, and noticed some "?>" were missing on some files, but after correcting these, the problem still remains Is there a way I can trace the error to the source of it? I'm realy at the end of my efforts and about to re-install the shop (which I'm realy hesitating to do) so any help what so ever is verry welcome. Thank you all and have a great weekend! Kind regards Gerry
  2. ghprosvs

    MATC

    Hi Craig, again, thank you so much for your efforts to help us out. Unfortunately for me the result remains the same, customer can still place the order and is then logged out and redirected to the login page in stead of the checkout success page. Please see below my checkout_confirmation page (where the MATC should be applied on) I appreciate any further help you maybe can provide. Kind regards Gerry <?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(array('mode' => 'SSL', 'page' => 'checkout_payment.php')); 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')); } // 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')); } } // 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')); } if (!tep_session_is_registered('payment')) tep_session_register('payment'); if (isset($_POST['payment'])) $payment = $_POST['payment']; 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']); } // load the selected payment module require('includes/classes/payment.php'); $payment_modules = new payment($payment); require('includes/classes/order.php'); $order = new order; $payment_modules->update_status(); if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) { tep_redirect(tep_href_link('checkout_payment.php', 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); } if (is_array($payment_modules->modules)) { $payment_modules->pre_confirmation_check(); } // load the selected shipping module require('includes/classes/shipping.php'); $shipping_modules = new shipping($shipping); require('includes/classes/order_total.php'); $order_total_modules = new order_total; $order_total_modules->process(); // Stock Check $any_out_of_stock = false; if (STOCK_CHECK == 'true') { for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { if (tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) { $any_out_of_stock = true; } } // Out of Stock if ( (STOCK_ALLOW_CHECKOUT != 'true') && ($any_out_of_stock == true) ) { tep_redirect(tep_href_link('shopping_cart.php')); } } //----- BEGINNING OF ADDITION: MATC -----// if (tep_db_prepare_input($_POST['TermsAgree']) != 'true' and MATC_AT_CHECKOUT != 'false') { tep_redirect(tep_href_link('checkout_payment.php', 'matcerror=true', 'SSL')); } //----- END OF ADDITION: MATC -----// require('includes/languages/' . $language . '/checkout_confirmation.php'); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link('checkout_shipping.php', '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2); require('includes/template_top.php'); ?> <div class="page-header"> <h1 class="h3"><?php echo HEADING_TITLE; ?></h1> </div> <?php if ($messageStack->size('checkout_confirmation') > 0) { echo $messageStack->output('checkout_confirmation'); } if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else { $form_action_url = tep_href_link('checkout_process.php', '', 'SSL'); } echo tep_draw_form('checkout_confirmation', $form_action_url, 'post'); ?> <div class="contentContainer"> <div class="contentText"> <div class="panel panel-default"> <div class="panel-heading"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong>' . tep_draw_button(TEXT_EDIT, 'fa fa-edit', tep_href_link('shopping_cart.php'), NULL, NULL, 'pull-right btn-info btn-xs' ); ?></div> <div class="panel-body"> <table width="100%" class="table-hover order_confirmation"> <tbody> <?php for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" valign="top" width="30">' . $order->products[$i]['qty'] . '&nbsp;x&nbsp;</td>' . "\n" . ' <td valign="top">' . $order->products[$i]['name']; if (STOCK_CHECK == 'true') { echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']); } if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) { for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) { echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>'; } } echo '</td>' . "\n"; if (sizeof($order->info['tax_groups']) > 1) echo ' <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n"; echo ' <td align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </tbody> </table> <hr> <table width="100%" class="pull-right"> <?php if (MODULE_ORDER_TOTAL_INSTALLED) { echo $order_total_modules->output(); } ?> </table> </div> </div> </div> <div class="clearfix"></div> <div class="row"> <?php if ($sendto != false) { ?> <div class="col-sm-4"> <div class="panel panel-info"> <div class="panel-heading"><?php echo '<strong>' . HEADING_DELIVERY_ADDRESS . '</strong>' . tep_draw_button(TEXT_EDIT, 'fa fa-edit', tep_href_link('checkout_shipping_address.php', '', 'SSL'), NULL, NULL, 'pull-right btn-info btn-xs' ); ?></div> <div class="panel-body"> <?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?> </div> </div> </div> <?php } ?> <div class="col-sm-4"> <div class="panel panel-warning"> <div class="panel-heading"><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong>' . tep_draw_button(TEXT_EDIT, 'fa fa-edit', tep_href_link('checkout_payment_address.php', '', 'SSL'), NULL, NULL, 'pull-right btn-info btn-xs' ); ?></div> <div class="panel-body"> <?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?> </div> </div> </div> <div class="col-sm-4"> <?php if ($order->info['shipping_method']) { ?> <div class="panel panel-info"> <div class="panel-heading"><?php echo '<strong>' . HEADING_SHIPPING_METHOD . '</strong>' . tep_draw_button(TEXT_EDIT, 'fa fa-edit', tep_href_link('checkout_shipping.php', '', 'SSL'), NULL, NULL, 'pull-right btn-info btn-xs' ); ?></div> <div class="panel-body"> <?php echo $order->info['shipping_method']; ?> </div> </div> <?php } ?> <div class="panel panel-warning"> <div class="panel-heading"><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong>' . tep_draw_button(TEXT_EDIT, 'fa fa-edit', tep_href_link('checkout_payment.php', '', 'SSL'), NULL, NULL, 'pull-right btn-info btn-xs' ); ?></div> <div class="panel-body"> <?php echo $order->info['payment_method']; ?> </div> </div> </div> </div> <?php if (is_array($payment_modules->modules)) { if ($confirmation = $payment_modules->confirmation()) { ?> <hr> <h2 class="h3"><?php echo HEADING_PAYMENT_INFORMATION; ?></h2> <div class="contentText row"> <?php if (tep_not_null($confirmation['title'])) { echo '<div class="col-sm-6">'; echo ' <div class="alert alert-danger">'; echo $confirmation['title']; echo ' </div>'; echo '</div>'; } ?> <?php if (isset($confirmation['fields'])) { echo '<div class="col-sm-6">'; echo ' <div class="alert alert-info">'; $fields = ''; for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) { $fields .= $confirmation['fields'][$i]['title'] . ' ' . $confirmation['fields'][$i]['field'] . '<br>'; } if (strlen($fields) > 4) echo substr($fields,0,-4); echo ' </div>'; echo '</div>'; } ?> </div> <div class="clearfix"></div> <?php } } if (tep_not_null($order->info['comments'])) { ?> <hr> <h2 class="h3"><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong>' . tep_draw_button(TEXT_EDIT, 'fa fa-edit', tep_href_link('checkout_payment.php', '', 'SSL'), NULL, NULL, 'pull-right btn-info btn-xs' ); ?></h2> <blockquote> <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?> </blockquote> <?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 -----// ?> <!-- BEGINNING OF ADDITION: MATC --> <?php if(MATC_AT_CHECKOUT != 'false'){ require('includes/modules/'. 'matc.php'); } ?> <div class="buttonSet"> <div class="text-right"> <?php if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } echo tep_draw_button(IMAGE_BUTTON_FINALISE_ORDER, 'fas fa-check-circle', null, 'primary', null, 'btn-success btn-block btn-lg'); ?> </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"> <a href="<?php echo tep_href_link('checkout_payment.php', '', 'SSL'); ?>"><button type="button" class="btn btn-default btn-circle">2</button></a> <p><a href="<?php echo tep_href_link('checkout_payment.php', '', 'SSL'); ?>"><?php echo CHECKOUT_BAR_PAYMENT; ?></a></p> </div> <div class="stepwizard-step"> <button type="button" class="btn btn-primary btn-circle">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'); ?>
  3. ghprosvs

    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
  4. ghprosvs

    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
  5. ghprosvs

    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
  6. ghprosvs

    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
  7. ghprosvs

    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'); ?>
  8. ghprosvs

    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
  9. ghprosvs

    MATC

  10. ghprosvs

    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
  11. ghprosvs

    MATC

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

    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
  13. Hi Guys, never mind, I did a fresh download and install and now it works! YESS!! :)
  14. 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
  15. Yes that did the trick! thank you so much! :)
×