Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One Page Checkout Support


Guest

Recommended Posts

Hello guys, I am experiencing a problem when integrating OPC.

 

Fatal error: Call to a member function pre_confirmation_check() on a non-object in user/html/includes/classes/onepage_checkout.php on line 644

 

Please help out.

 

Regards,

 

Rebellion.

Hi

 

Exactly when does this error occur, ie shipping, payment, you added any extra fields to checkout.php?

 

Steve

Link to comment
Share on other sites

I don’t believe it but I do have it working. As far as I am concerned this mod is working wonderful (SO FAR, praying) with the changes that I had to make. Here is what my issues were, hope it helps someone else.

 

The lines that need to be uncommented and commented out. They needed to be switched for me. I have the newer oscommerce but it needed to be switched. If you notice they both say before MS2.RC2a, not before and after.

 

includes/classes/onepage_checkout.php

Line 382

 

/* Comment line below for oscommerce versions before MS2.2 RC2a */

$confirmation = $GLOBALS[$payment]->confirmation();

 

/* Uncomment line below for oscommerce versions before MS2.2 RC2a */

//$confirmation = $GLOBALS[$payment]->selection();

 

 

I made them to look like this

 

/* Comment line below for oscommerce versions before MS2.2 RC2a */

//$confirmation = $GLOBALS[$payment]->confirmation();

 

/* Uncomment line below for oscommerce versions before MS2.2 RC2a */

$confirmation = $GLOBALS[$payment]->selection();

 

 

 

Shipping Modules-

 

I found the issue with the shipping modules be to quite annoying just like everyone else. If you have zones selected they will not show up. If you have one zone not selected and another one selected they would show. I have been messing with this for a few days now. Installed and uninstalled several different shipping modules. I have come across something rather unusal and interesting, and hoped someone with more knowledge than myself can figure out what to do. So no matter what shipping module you use it will show up. I suspect this has something to do with the issue, and why no shipping modules are shown.

 

If I installed a shipping mod that had the zone selection with a drop down box for me to select the country to use, the shipping module would not show up. If I installed a module where you had to type in the country code, the shipping module shows up and is able to be used. I installed the zone mod add on it uses a type in zone, and can be duplicated to do more than one shipping option per zone, http://addons.oscommerce.com/info/1752

 

 

I did have purchase without account installed but found that it would not work with this module no matter what I did. Not sure if it was suppose too. I turned it off in admin. The issues I was experiencing went away. I was getting the pre check error. I turned off purchase without account and didn’t have that issue any longer. I think the convenience of a one page checkout, outweighs the hassle of signing up for an account, at least to me.

 

 

I don’t know if this matters or not. I found a word misspelled in one of the files. The word should be radio but it is spelled radeo. It is in a 2 functions in checkout.php.

 

In the checkout.js it is spelled correctly. So I would think this would cause some kind of errors would it not?

 

 

Line 526 checkout.php

 

function clearRadeos(){

document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;

for (counter = 0; counter < document.checkout.payment.length; counter++) {

// If a radio button has been selected it will return true

// (If not it will return false)

if (document.checkout.cot_gv.checked){

document.checkout.payment[counter].checked = false;

document.checkout.payment[counter].disabled=true;

} else {

document.checkout.payment[counter].disabled=false;

}

}

}

<?php

} else {

$coversAll=false;?>

 

function clearRadeos(){

document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;

}

<?php }

 

 

 

I think should read

 

 

 

 

function clearRadios(){

document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;

for (counter = 0; counter < document.checkout.payment.length; counter++) {

// If a radio button has been selected it will return true

// (If not it will return false)

if (document.checkout.cot_gv.checked){

document.checkout.payment[counter].checked = false;

document.checkout.payment[counter].disabled=true;

} else {

document.checkout.payment[counter].disabled=false;

}

}

}

<?php

} else {

$coversAll=false;?>

 

function clearRadios(){

document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;

}

<?php }

 

 

 

Hope this helps someone else, and maybe someone can figure out the issue with the zone dropdown box.

Edited by staradmire
Link to comment
Share on other sites

I'm glad you posted, Star, as it appears that misspelling of the word Radio versus Radeo in checkout.php was the reason my coupon codes with CCGV would not work with One Page Checkout. Thank You for posting! CCGV is working now. I feel like I'm getting somewhere!

 

- Andrea

Link to comment
Share on other sites

The makers of this contribution conveniently left out one key item in the instructions for the latest version afaik.

 

Don't forget to copy checkout.php to your main directory

OSC User Definitions

"I can add modules to OSC" = I can search, cut and paste. But not well, or I wouldn't be here.

"I start my posting with 'works like a charm' = I'm letting you down gently, nothing works and I have no idea why

"I finish postings with "plzzzz....hlp" = My installation is buggered and I know I'm going to have to pay someone, but I really, really don't want to.

Link to comment
Share on other sites

Hi

 

This is a great contribution and looked easy enough to install but i'm having issues with it and would LOVE your help.

 

whenever i turn on the cont. through the /admin once i choose a product and continue to chekcout my checkout.php page is blank (by blank i mean the store frame is showing but the content of the checkout form is blank/missing).

 

this is my code for the checkout.php page:

 

is there something i left out??

 

Note: This is a brand new store, only other contribution i have on it is SEO META TAGS V.5

 

 

<?php
/*
 One Page Checkout, Version: 1.08

 I.T. Web Experts
 http://www.itwebexperts.com

 Copyright (c) 2009 I.T. Web Experts

 Released under the GNU General Public License
*/
 define('CHARSET', 'UTF-8');

 require('includes/application_top.php');
 require('includes/classes/http_client.php');

 if (ONEPAGE_LOGIN_REQUIRED == 'true'){
  if (!tep_session_is_registered('customer_id')){
	  $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT));
	  tep_redirect(tep_href_link(FILENAME_LOGIN));
  }
 }

 if (isset($_GET['rType'])){
  header('content-type: text/html; charset=' . CHARSET);
 }

 require('includes/classes/onepage_checkout.php');
 $onePageCheckout = new osC_onePageCheckout();

 if (!isset($_GET['rType']) && !isset($_GET['action']) && !isset($_POST['action']) && !isset($_GET['error_message']) && !isset($_GET['payment_error'])){
  $onePageCheckout->init();
 }

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

 $onePageCheckout->loadSessionVars();
 $onePageCheckout->fixTaxes();

//  print_r($order);
// register a random ID in the session to check throughout the checkout procedure
// against alterations in the shopping cart contents
 if (!tep_session_is_registered('cartID')) tep_session_register('cartID');
 $cartID = $cart->cartID;

// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed

 if (!isset($_GET['action']) && !isset($_POST['action'])){
  // Start - CREDIT CLASS Gift Voucher Contribution
  //  if ($order->content_type == 'virtual') {
  if ($order->content_type == 'virtual' || $order->content_type == 'virtual_weight' ) {
	  // End - CREDIT CLASS Gift Voucher Contribution
	  $shipping = false;
	  $sendto = false;
  }
 }

 $total_weight = $cart->show_weight();
 $total_count = $cart->count_contents();
 if (method_exists($cart, 'count_contents_virtual')){
  // Start - CREDIT CLASS Gift Voucher Contribution
  $total_count = $cart->count_contents_virtual();
  // End - CREDIT CLASS Gift Voucher Contribution
 }

// load all enabled shipping modules
 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping;

// load all enabled payment modules
 require(DIR_WS_CLASSES . 'payment.php');
 $payment_modules = new payment;

 require(DIR_WS_CLASSES . 'order_total.php');
 $order_total_modules = new order_total;
 $order_total_modules->process();

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT);

 $action = (isset($_POST['action']) ? $_POST['action'] : '');
 if (isset($_POST['updateQuantities_x'])){
  $action = 'updateQuantities';
 }
 if (tep_not_null($action)){
  ob_start();
  switch($action){
	  case 'process':
		  echo $onePageCheckout->processCheckout();
	  break;
	  case 'countrySelect':
		  echo $onePageCheckout->getAjaxStateField();
	  break;
	  case 'processLogin':
		  echo $onePageCheckout->processAjaxLogin($_POST['email'], $_POST['pass']);
	  break;
	  case 'removeProduct':
		  echo $onePageCheckout->removeProductFromCart($_POST['pID']);
	  break;
	  case 'updateQuantities':
		  echo $onePageCheckout->updateCartProducts($_POST['qty'], $_POST['id']);
	  break;
	  case 'setPaymentMethod':
		  echo $onePageCheckout->setPaymentMethod($_POST['method']);
	  break;
	  case 'setShippingMethod':
		  echo $onePageCheckout->setShippingMethod($_POST['method']);
	  break;
	  case 'setSendTo':
	  case 'setBillTo':
		  echo $onePageCheckout->setCheckoutAddress($action);
	  break;
	  case 'checkEmailAddress':
		  echo $onePageCheckout->checkEmailAddress($_POST['emailAddress']);
	  break;
	  case 'saveAddress':
	  case 'addNewAddress':
		  echo $onePageCheckout->saveAddress($action);
	  break;
	  case 'selectAddress':
		  echo $onePageCheckout->setAddress($_POST['address_type'], $_POST['address']);
	  break;
	  case 'redeemVoucher':
		  echo $onePageCheckout->redeemCoupon($_POST['code']);
	  break;
	  case 'setMembershipPlan':
		  echo $onePageCheckout->setMembershipPlan($_POST['planID']);
	  break;
	  case 'updateCartView':
		  if ($cart->count_contents() == 0){
			  echo 'none';
		  }else{
			  include(DIR_WS_INCLUDES . 'checkout/cart.php');
		  }
	  break;
	  case 'updateShippingMethods':
		  include(DIR_WS_INCLUDES . 'checkout/shipping_method.php');
	  break;
	  case 'updatePaymentMethods':
		  include(DIR_WS_INCLUDES . 'checkout/payment_method.php');
	  break;
	  case 'getOrderTotals':
		  if (MODULE_ORDER_TOTAL_INSTALLED){
			  echo '<table cellpadding="2" cellspacing="0" border="0">' . 
				   $order_total_modules->output() . 
				   '</table>';
		  }
	  break;
	  case 'getProductsFinal':
		  include(DIR_WS_INCLUDES . 'checkout/products_final.php');
	  break;
	  case 'getNewAddressForm':
	  case 'getAddressBook':
		  $addresses_count = tep_count_customer_address_book_entries();
		  if ($action == 'getAddressBook'){
			  $addressType = $_POST['addressType'];
			  include(DIR_WS_INCLUDES . 'checkout/address_book.php');
		  }else{
			  include(DIR_WS_INCLUDES . 'checkout/new_address.php');
		  }
	  break;
	  case 'getEditAddressForm':
		  $aID = tep_db_prepare_input($_POST['addressID']);
		  $Qaddress = tep_db_query('select * from ' . TABLE_ADDRESS_BOOK . ' where customers_id = "' . $customer_id . '" and address_book_id = "' . $aID . '"');
		  $address = tep_db_fetch_array($Qaddress);
		  include(DIR_WS_INCLUDES . 'checkout/edit_address.php');
	  break;
	  case 'getBillingAddress':
		  include(DIR_WS_INCLUDES . 'checkout/billing_address.php');
	  break;
	  case 'getShippingAddress':
		  include(DIR_WS_INCLUDES . 'checkout/shipping_address.php');
	  break;
  }

  $content = ob_get_contents();
  ob_end_clean();
  echo utf8_encode($content);

  tep_session_close();
  exit;
 }

 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT, '', $request_type));

 function buildInfobox($header, $contents){
  $info_box_contents = array();
  $info_box_contents[] = array('text' => utf8_encode($header));
  new infoBoxHeading($info_box_contents, false, false);

  $info_box_contents = array();
  $info_box_contents[] = array('text' => utf8_encode($contents));
  new infoBox($info_box_contents);
 }

 function fixSeoLink($url){
  return str_replace('&', '&', $url);
 }
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<link rel="stylesheet" type="text/css" href="ext/jQuery/themes/smoothness/ui.all.css">
<script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.js"></script>
<script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ajaxq.js"></script>
<script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.pstrength.js"></script>
<script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ui.js"></script>
<script type="text/javascript" language="javascript" src="includes/checkout/checkout.js"></script>
<style>
.pstrength-minchar {
font-size : 10px;
}
</style>
<script language="javascript"><!--
function CVVPopUpWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,left=150')
}

function CVVPopUpWindowEx(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=510,screenX=150,screenY=150,top=150,left=150')
}

 var onePage = checkout;
 onePage.initializing = true;
 onePage.ajaxCharset = '<?php echo CHARSET;?>';
 onePage.loggedIn = <?php echo (isset($customer_id) ? 'true' : 'false');?>;
 onePage.ccgvInstalled = <?php echo (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true' ? 'true' : 'false');?>;
 onePage.shippingEnabled = <?php echo ($onepage['shippingEnabled'] === true ? 'true' : 'false');?>;
 onePage.pageLinks = {
  checkout: '<?php echo fixSeoLink(tep_href_link(FILENAME_CHECKOUT, session_name() . '=' . session_id() . '&rType=ajax', $request_type));?>',
  shoppingCart: '<?php echo fixSeoLink(tep_href_link(FILENAME_SHOPPING_CART));?>'
 }

 function getFieldErrorCheck($element){
  var rObj = {};
  switch($element.attr('name')){
	  case 'billing_firstname':
	  case 'shipping_firstname':
		  rObj.minLength = <?php echo ENTRY_FIRST_NAME_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_FIRST_NAME_ERROR;?>';
	  break;
	  case 'billing_lastname':
	  case 'shipping_lastname':
		  rObj.minLength = <?php echo ENTRY_LAST_NAME_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_LAST_NAME_ERROR;?>';
	  break;
	  case 'billing_email_address':
		  rObj.minLength = <?php echo ENTRY_EMAIL_ADDRESS_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_EMAIL_ADDRESS_ERROR;?>';
	  break;
	  case 'billing_street_address':
	  case 'shipping_street_address':
		  rObj.minLength = <?php echo ENTRY_STREET_ADDRESS_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_STREET_ADDRESS_ERROR;?>';
	  break;
	  case 'billing_zipcode':
	  case 'shipping_zipcode':
		  rObj.minLength = <?php echo ENTRY_POSTCODE_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_POST_CODE_ERROR;?>';
	  break;
	  case 'billing_city':
	  case 'shipping_city':
		  rObj.minLength = <?php echo ENTRY_CITY_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_CITY_ERROR;?>';
	  break;
	  case 'billing_dob':
		  rObj.minLength = <?php echo ENTRY_DOB_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_DATE_OF_BIRTH_ERROR;?>';
	  break;
	  case 'billing_telephone':
		  rObj.minLength = <?php echo ENTRY_TELEPHONE_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_TELEPHONE_NUMBER_ERROR;?>';
	  break;
	  case 'billing_country':
	  case 'shipping_country':
		  rObj.errMsg = '<?php echo ENTRY_COUNTRY_ERROR;?>';
	  break;
	  case 'billing_state':
	  case 'shipping_state':
		  rObj.minLength = <?php echo ENTRY_STATE_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_STATE_ERROR;?>';
	  break;
	  case 'password':
	  case 'confirmation':
		  rObj.minLength = <?php echo ENTRY_PASSWORD_MIN_LENGTH;?>;
		  rObj.errMsg = '<?php echo ENTRY_PASSWORD_ERROR;?>';
	  break;
  }
return rObj;
 }

$(document).ready(function (){
$('#pageContentContainer').show();
var loginBoxOpened = false;
$('#loginButton').click(function (){
	if (loginBoxOpened){
		$('#loginBox').dialog('open');
		return false;
	}
	$('#loginBox').dialog({
		resizable: false,
		shadow: false,
		open: function (){
			var $dialog = this;
			$('input', $dialog).keypress(function (e){
				if (e.which == 13){
					$('#loginWindowSubmit', $dialog).click();
				}
			});

			$('#loginWindowSubmit', $dialog).hover(function (){
				this.style.cursor = 'pointer';
			}, function (){
				this.style.cursor = 'default';
			}).click(function (){
				var $this = $(this);
				$this.hide();
				var email = $('input[name="email_address"]', $dialog).val();
				var pass = $('input[name="password"]', $dialog).val();
				onePage.queueAjaxRequest({
					url: onePage.pageLinks.checkout,
					data: 'action=processLogin&email=' + email + '&pass=' + pass,
					dataType: 'json',
					type: 'post',
					beforeSend: function (){
						onePage.showAjaxMessage('Refreshing Shopping Cart');
						if ($('#loginStatus', $this.parent()).size() <= 0){
							$('<div>')
							.attr('id', 'loginStatus')
							.html('Processing Login')
							.attr('align', 'center')
							.insertAfter($this);
						}
					},
					success: function (data){
						if (data.success == true){
							$('#loginStatus', $dialog).html(data.msg);
							$('#logInRow').hide();

							$('#changeBillingAddressTable').show();
							$('#changeShippingAddressTable').show();
							$('#newAccountEmail').remove();
							$('#diffShipping').parent().parent().parent().remove();

							onePage.updateAddressHTML('billing');
							onePage.updateAddressHTML('shipping');

							$('#shippingAddress').show();

							var updateTotals = true;
							onePage.updateCartView();
							onePage.updateFinalProductListing();
							onePage.updatePaymentMethods();
							if ($(':radio[name="payment"]:checked').size() > 0){
								onePage.setPaymentMethod($(':radio[name="payment"]:checked'));
								updateTotals = false;
							}
							onePage.updateShippingMethods();
							if ($(':radio[name="shipping"]:checked').size() > 0){
								onePage.setShippingMethod($(':radio[name="shipping"]:checked').val());
								updateTotals = false;
							}

							if (updateTotals == true){
								onePage.updateOrderTotals();
							}

							$('#loginBox').dialog('destroy');
						}else{
							$('#logInRow').show();
							$('#loggedInRow').hide();

							$('#loginStatus', $dialog).html(data.msg);
							setTimeout(function (){
								$('#loginStatus').remove();
								$('#loginWindowSubmit').show();
							}, 6000);
							setTimeout(function (){
								$('#loginStatus').html('Try again in 3');
							}, 3000);
							setTimeout(function (){
								$('#loginStatus').html('Try again in 2');
							}, 4000);
							setTimeout(function (){
								$('#loginStatus').html('Try again in 1');
							}, 5000);
						}
					},
					errorMsg: 'There was an error logging in, please inform IT Web Experts about this error.'
				});
			});
		}
	});
	loginBoxOpened = true;
	return false;
});

$('#changeBillingAddress, #changeShippingAddress').click(function (){
	var addressType = 'billing';
	if ($(this).attr('id') == 'changeShippingAddress'){
		addressType = 'shipping';
	}
	$('#addressBook').clone().show().appendTo(document.body).dialog({
		shadow: false,
		width: 550,
	   // height: 450,
		minWidth: 550,
		//minHeight: 500,
		open: function (){
			onePage.loadAddressBook($(this), addressType);
		},
		buttons: {
			'<?php echo addslashes(WINDOW_BUTTON_CANCEL);?>': function (){
				var $this = $(this);
				var action = $('input[name="action"]', $this).val();
				//alert($(':input, :select, :radio, :checkbox', this).serialize());
				if (action == 'selectAddress'){
					$this.dialog('close');
				}else if (action == 'addNewAddress' || action == 'saveAddress'){
					onePage.loadAddressBook($this, addressType);
				}
			},
			'<?php echo addslashes(WINDOW_BUTTON_CONTINUE);?>': function (){
				var $this = $(this);
				var action = $('input[name="action"]', $this).val();
				//alert($(':input, :select, :radio, :checkbox', this).serialize());
				if (action == 'selectAddress'){
					onePage.queueAjaxRequest({
						url: onePage.pageLinks.checkout,
						beforeSendMsg: 'Setting Address',
						dataType: 'json',
						data: $(':input, :radio', this).serialize(),
						type: 'post',
						success: function (data){
							$this.dialog('close');
							if (addressType == 'shipping'){
								onePage.updateAddressHTML('shipping');
								onePage.updateShippingMethods();
							}else{
								onePage.updateAddressHTML('billing');
								onePage.updatePaymentMethods();
							}
						},
						errorMsg: 'There was an error saving your address, please inform IT Web Experts about this error.'
					});
				}else if (action == 'addNewAddress'){
					onePage.queueAjaxRequest({
						url: onePage.pageLinks.checkout,
						beforeSendMsg: 'Saving New Address',
						dataType: 'json',
						data: $(':input, :select, :radio, :checkbox', this).serialize(),
						type: 'post',
						success: function (data){
							onePage.loadAddressBook($this, addressType);
						},
						errorMsg: 'There was an error saving your address, please inform IT Web Experts about this error.'
					});
				}else if (action == 'saveAddress'){
					onePage.queueAjaxRequest({
						url: onePage.pageLinks.checkout,
						beforeSendMsg: 'Updating Address',
						dataType: 'json',
						data: $(':input, :select, :radio, :checkbox', this).serialize(),
						type: 'post',
						success: function (data){
							onePage.loadAddressBook($this, addressType);
						},
						errorMsg: 'There was an error saving your address, please inform IT Web Experts about this error.'
					});
				}
			},
			'<?php echo addslashes(WINDOW_BUTTON_NEW_ADDRESS);?>': function (){
				var $this = $(this);
				onePage.queueAjaxRequest({
					url: onePage.pageLinks.checkout,
					data: 'action=getNewAddressForm',
					type: 'post',
					beforeSendMsg: 'Loading New Address Form',
					success: function (data){
						$this.html(data);
						onePage.addCountryAjax($('select[name="country"]', $this), 'state', 'stateCol')
					},
					errorMsg: 'There was an error loading new address form, please inform IT Web Experts about this error.'
				});
			},
			'<?php echo addslashes(WINDOW_BUTTON_EDIT_ADDRESS);?>': function (){
				var $this = $(this);
				onePage.queueAjaxRequest({
					url: onePage.pageLinks.checkout,
					data: 'action=getEditAddressForm&addressID=' + $(':radio[name="address"]:checked', $this).val(),
					type: 'post',
					beforeSendMsg: 'Loading Edit Address Form',
					success: function (data){
						$this.html(data);
					},
					errorMsg: 'There was an error loading edit address form, please inform IT Web Experts about this error.'
				});
			}
		}
	});
   return false;
});

onePage.initCheckout();
});

<?php
// Start - CREDIT CLASS Gift Voucher Contribution 
if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true'){
if (MODULE_ORDER_TOTAL_INSTALLED)
$temp=$order_total_modules->process();
$temp=$temp[count($temp)-1];
$temp=$temp['value'];

$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");
$gv_result = tep_db_fetch_array($gv_query);

if ($gv_result['amount']>=$temp){ $coversAll=true;

?>
 function clearRadeos(){
document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;
for (counter = 0; counter < document.checkout.payment.length; counter++) {
  // If a radio button has been selected it will return true
  // (If not it will return false)
  if (document.checkout.cot_gv.checked){
	document.checkout.payment[counter].checked = false;
	document.checkout.payment[counter].disabled=true;
  } else {
	document.checkout.payment[counter].disabled=false;
  }
}
 }
<?php
} else { 
 $coversAll=false;?>

 function clearRadeos(){
document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;
 }
<?php } 
}?>
//-->
</script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<?php
if (ONEPAGE_SHOW_OSC_COLUMNS == 'true'){
?>  
  <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
  </table></td>
<?php
}
?>  
<!-- body_text //-->
  <td width="100%" valign="top">
<noscript>
<p>Please follow the instructions for your web browser:<br /><br />Internet Explorer</p>
<ol>
 <li>On the <strong>Tools</strong> menu, click <strong>Internet Options</strong>, and then click the <strong>Security</strong> tab.</li>
 <li>Click the <strong>Internet</strong> zone.</li>
 <li>If you do not have to customize your Internet security settings, click <strong>Default Level</strong>. Then do step 4<blockquote>If you have to customize your Internet security settings, follow these steps:<br />
a. Click <strong>Custom Level</strong>.<br />
b. In the <strong>Security Settings – Internet Zone</strong> dialog box, click <strong>Enable</strong> for <strong>Active Scripting</strong> in the <strong>Scripting</strong>section.</blockquote></li>
 <li>Click the <strong>Back</strong> button to return to the previous page, and then click the <strong>Refresh</strong> button to run scripts.</li>
</ol>
<p><br />Firefox</p>
<ol>
 <li>On the <strong>Tools</strong> menu, click <strong>Options</strong>.</li>
 <li>On the <strong>Content</strong> tab, click to select the <strong>Enable JavaScript</strong> check box.</li>
 <li>Click the <strong>Go back one page</strong> button to return to the previous page, and then click the <strong>Reload current page</strong> button to run scripts.</li>
</ol>
<p> </p>
</noscript>
<div id="pageContentContainer" style="display:none;">
  <?php echo tep_draw_form('checkout', tep_href_link(FILENAME_CHECKOUT, '', $request_type)) . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
 <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
   <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
  </tr>
  <!--<tr>
   <td class="main" align="center" style="height:100px;"><div id="ajaxLoader" style="display:none;"<img src="ext/jQuery/themes/smoothness/images/ajax_load.gif"><br>Please wait while ajax requests finish...</div></td>
  </tr>-->
 </table></td>
</tr>
<tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
 if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) {
?>
<tr>
 <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
   <td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
  </tr>
 </table></td>
</tr>
<tr>
 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
  <tr class="infoBoxNoticeContents">
   <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
	 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
	 <td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
	 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
	</tr>
   </table></td>
  </tr>
 </table></td>
</tr>
<tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
 }
?>
<tr>
 <td class="main" width="50%"><?php
  $header = TABLE_HEADING_PRODUCTS;

  ob_start();
  include(DIR_WS_INCLUDES . 'checkout/cart.php');
  $cartContents = ob_get_contents();
  ob_end_clean();

  $cartContents .= '<br><div style="float:right" class="orderTotals">' . 
  (MODULE_ORDER_TOTAL_INSTALLED ? '<table cellpadding="2" cellspacing="0" border="0">' . $order_total_modules->output() . '</table>' : '') . '</div>';

  buildInfobox($header, $cartContents);
 ?></td>
</tr>
<tr>
 <td class="main" style="padding-top:5px;"><table cellpadding="0" cellspacing="0" border="0" width="100%">
  <tr>
   <td class="main" width="50%" align="left"><?php
	if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true'){
		echo '<table cellpadding="2" cellspacing="0" border="0">
		 <tr>
		  <td class="main"><b>Have A Coupon?</b></td>
		 </tr>
		 <tr>
		  <td class="main">' . tep_draw_input_field('gv_redeem_code', 'redeem code') . '</td>
		  <td class="main">' . tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'id="voucherRedeem"') . '</td>
		 </tr>
		</table>';
	}
   ?></td>
   <td class="main" width="50%" align="right"><table cellpadding="2" cellspacing="0" border="0">
	<tr>
	 <td class="main"><b>Make Changes?</b></td>
	</tr>
	<tr>
	 <td><?php echo tep_image_submit('button_update_cart.gif', IMAGE_UPDATE_CART, 'name="updateQuantities" id="updateCartButton"');?></td>
	</tr>
   </table></td>
  </tr>
 </table></td>
</tr>
<tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
 <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
   <td class="main" width="50%" valign="top"><?php
	$header = TABLE_HEADING_BILLING_ADDRESS;

	ob_start();
	include(DIR_WS_INCLUDES . 'checkout/billing_address.php');
	$billingAddress = ob_get_contents();
	ob_end_clean();

	$billingAddress = '<table border="0" width="100%" cellspacing="0" cellpadding="2">
	 <tr id="logInRow"' . (isset($_SESSION['customer_id']) ? ' style="display:none"' : '') . '>
	  <td class="main">Already have an account? <a href="' . fixSeoLink(tep_href_link(FILENAME_LOGIN)) . '" id="loginButton">' . tep_image_button('button_login.gif', IMAGE_LOGIN) . '</a></td>
	 </tr>
	</table>' . $billingAddress;


	buildInfobox($header, $billingAddress);
   ?><table id="changeBillingAddressTable" border="0" width="100%" cellspacing="0" cellpadding="2"<?php echo (isset($_SESSION['customer_id']) ? '' : ' style="display:none"');?>>
	<tr>
	 <td class="main" align="right"><a id="changeBillingAddress" href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', $request_type);?>"><?php echo tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS);?></a></td>
	</tr>
   </table></td>
<?php
 if ($onepage['shippingEnabled'] === true){
?>       
   <td class="main" width="50%" valign="top"><?php
	$header = TABLE_HEADING_SHIPPING_ADDRESS;

	ob_start();
	include(DIR_WS_INCLUDES . 'checkout/shipping_address.php');
	$shippingAddress = ob_get_contents();
	ob_end_clean();

	if (!tep_session_is_registered('customer_id')){
		$shippingAddress = '<table border="0" width="100%" cellspacing="0" cellpadding="2">
		 <tr>
		  <td class="main">Different from billing address? <input type="checkbox" name="diffShipping" id="diffShipping" value="1"></td>
		 </tr>
		</table>' . $shippingAddress;
	}

	buildInfobox($header, $shippingAddress);
   ?><table id="changeShippingAddressTable" border="0" width="100%" cellspacing="0" cellpadding="2" <?php echo (isset($_SESSION['customer_id']) ? '' : ' style="display:none"');?>>
	<tr>
	 <td class="main" align="right"><a id="changeShippingAddress" href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', $request_type);?>"><?php echo tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS);?></a></td>
	</tr>
   </table></td>
<?php
 }
?>
  </tr>
 </table></td>
</tr>
<tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
  <tr>
	<td><?php
	$header = TABLE_HEADING_PAYMENT_METHOD;

	$paymentMethod = '';
	if (isset($_SESSION['customer_id'])){
		ob_start();
		include(DIR_WS_INCLUDES . 'checkout/payment_method.php');
		$paymentMethod = ob_get_contents();
		ob_end_clean();
	}

	$paymentMethod = '<div id="noPaymentAddress" class="main noAddress" align="center" style="font-size:15px;' . (isset($_SESSION['customer_id']) ? 'display:none;' : '') . '">Please fill in your <b>billing address</b> for payment options</div><div id="paymentMethods"' . (!isset($_SESSION['customer_id']) ? ' style="display:none;"' : '') . '>' . $paymentMethod . '</div>';
	buildInfobox($header, $paymentMethod);
   ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 if ($onepage['shippingEnabled'] === true){
  if (tep_count_shipping_modules() > 0) {
?>
  <tr>
	<td><?php
	$header = TABLE_HEADING_SHIPPING_METHOD;

	$shippingMethod = '';
	if (isset($_SESSION['customer_id'])){
		ob_start();
		include(DIR_WS_INCLUDES . 'checkout/shipping_method.php');
		$shippingMethod = ob_get_contents();
		ob_end_clean();
	}

	$shippingMethod = '<div id="noShippingAddress" class="main noAddress" align="center" style="font-size:15px;' . (isset($_SESSION['customer_id']) ? 'display:none;' : '') . '">Please fill in <b>at least</b> your billing address to get shipping quotes.</div><div id="shippingMethods"' . (!isset($_SESSION['customer_id']) ? ' style="display:none;"' : '') . '>' . $shippingMethod . '</div>';
	buildInfobox($header, $shippingMethod);
   ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
  }
 }
?>
  <tr>
	<td><?php
	$header = TABLE_HEADING_COMMENTS;

	ob_start();
	include(DIR_WS_INCLUDES . 'checkout/comments.php');
	$commentBox = ob_get_contents();
	ob_end_clean();

	buildInfobox($header, $commentBox);
   ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents" id="checkoutYesScript" style="display:none;">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main" id="checkoutMessage"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
			<td class="main" align="right"><div id="ajaxMessages" style="display:none;"></div><div id="checkoutButtonContainer"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE, 'id="checkoutButton" formUrl="' . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', $request_type) . '"'); ?><input type="hidden" name="formUrl" id="formUrl" value=""></div><div id="paymentHiddenFields" style="display:none;"></div></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>

	  <tr class="infoBoxContents" id="checkoutNoScript">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>to update/view your order.'; ?></td>
			<td class="main" align="right"><?php echo tep_image_submit('button_update.gif', IMAGE_BUTTON_UPDATE); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
		  </tr>
		</table></td>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
		<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
	  </tr>
	</table></td>
  </tr>
</table></form>
</div></td>
<!-- body_text_eof //-->
<?php
if (ONEPAGE_SHOW_OSC_COLUMNS == 'true'){
?>  
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
<?php
}elseif (ONEPAGE_SHOW_CUSTOM_COLUMN == 'true'){
?>  
<td width="200px" valign="top"><table border="0" width="200px" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'checkout/column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
<?php
}
?>  
 </tr>
</table>
<!-- body_eof //-->

<!-- dialogs_bof //-->
<div id="loginBox" title="Log Into My Account" style="display:none;"><table cellpadding="2" cellspacing="0" border="0">
<tr>
 <td class="main"><?php echo ENTRY_EMAIL_ADDRESS;?></td>
 <td><?php echo tep_draw_input_field('email_address');?></td>
</tr>
<tr>
 <td class="main"><?php echo ENTRY_PASSWORD;?></td>
 <td><?php echo tep_draw_password_field('password');?></td>
</tr>
<tr>
 <td colspan="2" align="right" class="main"><a href="<?php echo tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL');?>"><?php echo TEXT_PASSWORD_FORGOTTEN;?></a></td>
</tr>
<tr>
 <td colspan="2" align="right"><?php echo tep_image_button('button_login.gif', IMAGE_BUTTON_LOGIN, 'id="loginWindowSubmit"');?></td>
</tr>
</table></div>
<div id="addressBook" title="Address Book" style="display:none"></div>
<div id="newAddress" title="New Address" style="display:none"></div>
<!-- dialogs_eof//-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Edited by kfiridan
Link to comment
Share on other sites

Hi

 

This is a great contribution and looked easy enough to install but i'm having issues with it and would LOVE your help.

 

whenever i turn on the cont. through the /admin once i choose a product and continue to chekcout my checkout.php page is blank (by blank i mean the store frame is showing but the content of the checkout form is blank/missing).

 

this is my code for the checkout.php page:

 

is there something i left out??

 

Note: This is a brand new store, only other contribution i have on it is SEO META TAGS V.5

 

 

 

 

Did you put the checkout folder in your directory? And add the checkout.php to your store directory?

Link to comment
Share on other sites

Did you put the checkout folder in your directory? And add the checkout.php to your store directory?

 

you mean the checkout folder which was in the include folder? copy or move it? just making sure..

 

thanks for your help!

 

Edit: I tried moving the includes/checkout folder to the public_html/ (root) folder

 

nothing changed

 

Note: I have not setup any payment modules yet, only what is OSC default. is that an issue?

 

tnx

Edited by kfiridan
Link to comment
Share on other sites

Is there any way how to use this contribution if I have not installed any payment module? I am only using shipping modules and I dont need payment modules because i have got only one payment type (described in Terms) and I dont need customers to select this.

How to remove the part with payment type selection from checkout page and how to remove the error/warning that no payment option is selected?

 

Thank you.

Link to comment
Share on other sites

you mean the checkout folder which was in the include folder? copy or move it? just making sure..

 

thanks for your help!

 

Edit: I tried moving the includes/checkout folder to the public_html/ (root) folder

 

nothing changed

 

Note: I have not setup any payment modules yet, only what is OSC default. is that an issue?

 

tnx

 

Is your store installed on the root or is it in catalog. checkout.php needs to be in catalog and the checkout folder needs to be in catalog/includes.

 

 

Thanks to staradmire for this post http://www.oscommerce.com/forums/topic/333292-one-page-checkout-support/page__view__findpost__p__1455417

 

My onepage checkout isnt working 100% yet but this post helped a lot!! Many Thanks!

Edited by rikpotts
Link to comment
Share on other sites

I've solved this questions:

 

Open checkout.js and find:

 

this.updateFinalProductListing();
this.updateOrderTotals();

 

Change it to:

 

checkoutClass.updateShippingMethods();
this.updateFinalProductListing();
this.updateOrderTotals();

 

Open checkout/payment_method.php:

 

search for:

 

 if ($paymentMethod == ''){
$paymentMethod = ONEPAGE_DEFAULT_PAYMENT;
 }

 

and comment it to:

 

//  if ($paymentMethod == ''){
//$paymentMethod = ONEPAGE_DEFAULT_PAYMENT;
// }

 

This solves the probems.

 

Regards...

 

Hi, I modified this code , issue seemed to dissapper, but still exists, depending on HOW CUSTOMER LOGS IN:

 

1) When customers logs is from mainpage, updating order total works OK

2) When customers fills all required fields on checkout.php updating order total works OK

 

BUT

 

3) When customers logs in on checkout.php page the following happens:

-Login window gets freezed displaying message : "Loading address Book" and no Billing Address data are refreshed

- At the bottom horizontal line (with Continue button) The message appers "Refresing Shopping Cart"

And all js gets stuck, and nothing happens

 

My observations show that befor this "fix" I havnt had problems neither with Refreshing Shopping Cart nor with "Loading Address Book" independentely how Customer Logs In

 

Work around of this issue is to press F5 - after that Customers Billing Address details are loaded and "Refresign Shopping Cart message dissappers.

 

I'd be gratefull for help or at least narrowing problems scope

Link to comment
Share on other sites

Is your store installed on the root or is it in catalog. checkout.php needs to be in catalog and the checkout folder needs to be in catalog/includes.

 

 

Thanks to staradmire for this post http://www.oscommerce.com/forums/topic/333292-one-page-checkout-support/page__view__findpost__p__1455417

 

My onepage checkout isnt working 100% yet but this post helped a lot!! Many Thanks!

 

my store is installed at www.hairefresh.com/index.php - so i guess you call it root.

 

I did exactly what staradmire did but nothing changed, it seems there is a code missing somewhere , cause it just doesn't load it when required.

 

Check out my Dev store at www.gishur.com/index.php and try to complete a sale through one page checkout... doesn't load.

 

Please Helppppp! tnx

Link to comment
Share on other sites

Is your store installed on the root or is it in catalog. checkout.php needs to be in catalog and the checkout folder needs to be in catalog/includes.

 

 

Thanks to staradmire for this post http://www.oscommerce.com/forums/topic/333292-one-page-checkout-support/page__view__findpost__p__1455417

 

My onepage checkout isnt working 100% yet but this post helped a lot!! Many Thanks!

 

my store is installed at www.hairefresh.com/index.php - so i guess you call it root.

 

I did exactly what staradmire did but nothing changed, it seems there is a code missing somewhere , cause it just doesn't load it when required.

 

Check out my Dev store at www.gishur.com/index.php and try to complete a sale through one page checkout... doesn't load.

 

Please Helppppp! tnx

Link to comment
Share on other sites

my store is installed at www.hairefresh.com/index.php - so i guess you call it root.

 

I did exactly what staradmire did but nothing changed, it seems there is a code missing somewhere , cause it just doesn't load it when required.

 

Check out my Dev store at www.gishur.com/index.php and try to complete a sale through one page checkout... doesn't load.

 

Please Helppppp! tnx

 

 

I checked your store. The only thing I can think of is your missing files in your install. Not that you didnt do this but lets make sure.

 

Your oscommerce is installed in the root which means www.gishur.com there you need to stick the checkout.php page. Now in the includes folder, you have to put the whole checkout folder that has the checkout.js file in it, not just the files. Install all other files into the proper folders. Follow the install and put codes on the proper pages. Make sure to intall all sql into your mysql admin. Open browser go to your oscommerce admin page.. config... - one page checkout and make sure its turned on and set to your default country.

 

The beginning of the install it tells you to install the same code on 3 different pages. Sometimes its missed and only put on one page.

catalog/checkout_shipping.php

catalog/checkout_payment.php

catalog/checkout_confirmation.php

 

AFTER

require('includes/application_top.php');

 

Place this code

 

/* One Page Checkout - BEGIN */

if (ONEPAGE_CHECKOUT_ENABLED == 'True'){

tep_redirect(tep_href_link(FILENAME_CHECKOUT, $_SERVER['QUERY_STRING'], 'SSL'));

}

/* One Page Checkout - END */

 

I am sort of at a loss at why it doesnt show. You had to of missed something somewhere I think. Go back through the install instructions and make sure you did it all?

 

Hopefully this will help.

Edited by staradmire
Link to comment
Share on other sites

Hi, I modified this code , issue seemed to dissapper, but still exists, depending on HOW CUSTOMER LOGS IN:

 

1) When customers logs is from mainpage, updating order total works OK

2) When customers fills all required fields on checkout.php updating order total works OK

 

BUT

 

3) When customers logs in on checkout.php page the following happens:

-Login window gets freezed displaying message : "Loading address Book" and no Billing Address data are refreshed

- At the bottom horizontal line (with Continue button) The message appers "Refresing Shopping Cart"

And all js gets stuck, and nothing happens

 

My observations show that befor this "fix" I havnt had problems neither with Refreshing Shopping Cart nor with "Loading Address Book" independentely how Customer Logs In

 

Work around of this issue is to press F5 - after that Customers Billing Address details are loaded and "Refresign Shopping Cart message dissappers.

 

I'd be gratefull for help or at least narrowing problems scope

 

 

By any chance when you tried to login did you use a auto filler? I used my roboform to login and did exactly that hung and didnt want to do anything. Now if I logged in bby typing the information everything loaded fine.

Link to comment
Share on other sites

Still trying to figure out what's wrong with Credit Class/Gift Voucher. Not working.

 

When I go to the One Page Checkout demo site and insert a coupon code, click Redeem...the code and the discount appear rapidly in the cart box and in the final box at the bottom. I fill in my customer details, select my payment and shipping methods, click Continue and I go straight to PayPal. What's happening in my site is this:

 

I go to checkout...insert my coupon code and click Redeem...the discount appears rapidly in the cart box and the final box at the bottom. I insert all my customer details (not logged in, just like in the demo site), select my payment and shipping methods, click Continue at the bottom and the page reloads with this message at the top of my screen:

 

opc3.jpg

 

I get no such message that I applied a coupon in their demo site, though. Why am I getting one?

 

So, I think...fine, now I'll go back to the bottom of the page and click Continue again to proceed to PayPal but I notice the field for my state is now invalid.

 

opc4.jpg

 

I have to change North Carolina to any other state first, then go back and select NC again before I can proceed. I then click Continue and go to PayPal.

 

Similar behavior if I fill my cart, go to checkout.php...redeem my coupon and then Log In as a customer on that page. My address information is populated correctly, all looks well. I choose my payment and shipping methods. When I get to the bottom and click Continue, the page reloads with the same message at the top of checkout.php you see in the first image. Then, I can click Continue at the bottom and go to PayPal.

 

That message is defined in a file called add_ccgvdc_english in the language folder. It reads as:

 

define('ERROR_REDEEMED_AMOUNT', 'The coupon has been successfully applied for ');

 

It's a bit confusing to me as I don't know why a coupon that is successfully applied is being defined as an ERROR message, but...I have it. Any ideas? Is anyone using CCGV with One Page Checkout?

 

- Andrea

Link to comment
Share on other sites

By any chance when you tried to login did you use a auto filler? I used my roboform to login and did exactly that hung and didnt want to do anything. Now if I logged in bby typing the information everything loaded fine.

 

Not in my case. I also checked on other browsers and without auto filler, but issue still exists.

This is my working site www.elgon.pl/checkout - as You will see on entering this site, Shipping Method Section is already expanded on page load.

This expanded Section which show shipping methods before user inputs his Billing Address has only one radio button displayed..

 

This strange behaviour was only seen after modification described by me in last post( adding onePageClass.updateShippingMethods() )

 

( I have removed cart section and shipping address for simplicity, but I also tried on original files from 1.08 - this issue still exists.

 

I believe that fix must be easy as this problem dissappears after refreshing page...

When My FF error console shows following:

1. Error $button.val is not a function

Source file: http://elgon.pl/includes/checkout/checkout.js

Row 357 - this points me to

 

setShippingMethod: function ($button){

if (this.shippingEnabled == false){

return false;

}

 

var checkoutClass = this;

this.setModuleMethod('shipping', $button.val(), function (data){

});

This error is thrown only when trying to login from checkout.php. Exactely when I press Login button on Login popup-window.

When I fill form or login on mainpage this error doesnt appear in error console.

Link to comment
Share on other sites

I've just installed One Page checkout for the first time (version 1.09).

When I installed it on my laptop in my local development site everything worked well.

However, when I installed it on my real website (hosted at fatcow.com) I get errors for any operation I'm doing in the checkout process.

Basically, for every operation I get a message box with the following error:

There was an error updating shopping cart, please inform IT Web Experts about this error.

or

There was an error updating your billing address, please inform IT Web Experts about this error.

or other versions of that error.

I get it for every field that I update in the form.

In addition, the sign near the e-mail field stays red and doesn't turn to green.

 

Any ideas?

 

Thanks,

David

Link to comment
Share on other sites

I've just installed One Page checkout for the first time (version 1.09).

When I installed it on my laptop in my local development site everything worked well.

However, when I installed it on my real website (hosted at fatcow.com) I get errors for any operation I'm doing in the checkout process.

Basically, for every operation I get a message box with the following error:

There was an error updating shopping cart, please inform IT Web Experts about this error.

or

There was an error updating your billing address, please inform IT Web Experts about this error.

or other versions of that error.

I get it for every field that I update in the form.

In addition, the sign near the e-mail field stays red and doesn't turn to green.

 

Any ideas?

 

Thanks,

David

Hi

 

Make sure all the files are uploaded, if still dont work, must be something to do with their server

 

Steve

Link to comment
Share on other sites

Not in my case. I also checked on other browsers and without auto filler, but issue still exists.

This is my working site www.elgon.pl/checkout - as You will see on entering this site, Shipping Method Section is already expanded on page load.

This expanded Section which show shipping methods before user inputs his Billing Address has only one radio button displayed..

 

This strange behaviour was only seen after modification described by me in last post( adding onePageClass.updateShippingMethods() )

 

( I have removed cart section and shipping address for simplicity, but I also tried on original files from 1.08 - this issue still exists.

 

I believe that fix must be easy as this problem dissappears after refreshing page...

When My FF error console shows following:

1. Error $button.val is not a function

Source file: http://elgon.pl/includes/checkout/checkout.js

Row 357 - this points me to

 

setShippingMethod: function ($button){

if (this.shippingEnabled == false){

return false;

}

 

var checkoutClass = this;

this.setModuleMethod('shipping', $button.val(), function (data){

});

This error is thrown only when trying to login from checkout.php. Exactely when I press Login button on Login popup-window.

When I fill form or login on mainpage this error doesnt appear in error console.

 

Hi staradmire, I managed to resolve this on 1.09

For everyone else having problems updating Order totals ammount I recommend upgrade to 1.09

updateShippingMethods() works fine now.

Link to comment
Share on other sites

Ajax Freeze

Whenever I click on "Different from Billing Address" checkbox the continue button change to the text "Getting Country's Zones" and doesn't change. Unchecking the box doesn't work. Updating the cart doesn't work, sign in button opens the box but it freezes when you click login.

 

I've loaded 1.09

I'am also having problems with this. After checking box "different from payment address" Getting Country;s Zones displays. Also unchecking box makes no difference.

 

...I 've just menaged to resolve this - for anyone to let You know:

It looks like OnePageCheckout add on always retrieves State WHEN selecting Shipping Address. So After I configured show States in admin panel - customer data - problem dissappeared. This is inconsistenncy.

Link to comment
Share on other sites

Well, I checked everything - still doesn't work.

Maybe it's a problem with the server but I don't know what to ask them since I don't know where is the problem.

What part in the module is responsible for these error messages? who verifies the e-mail address?

 

Do you know about another similar checkout module that I can try?

 

Thanks a lot

 

David

 

 

Hi

 

Make sure all the files are uploaded, if still dont work, must be something to do with their server

 

Steve

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...