Jump to content



Photo
- - - - -

One Page Checkout Support


  • Please log in to reply
2286 replies to this topic

#41   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 20 April 2009 - 23:42

I have another issue, the products box in checkout.php displays as below:-

Products Model Products Name Quantity Price Each Total Price
MSINTKB Microsoft Internet Keyboard PS/2 £69.99 £139.98
DVD-BLDRNDC Blade Runner - Director's Cut £30.00 £30.00
PC-UNTM Unreal Tournament
- Version: Download: Windows - English £89.99 £89.99


Sub-Total: �259.97
United Kingdom (Royal mail/courier): �15.00
VAT (17.5%): �45.49
Total: �320.46

Where � is actually £, however its not being displayed as such, I am guessing that this is a character output thing, as when i do a view source all show as £.

The product prices come from cart.php and the others come from the order_total module I think, so how do i get them all to display on the site in checkout.php as £

Thanks

Johnny



Ressolved this one, its all to do with the utf8 coding, used
& # 163;
instead of using the keyboard £ as was done previously and now all £ signs are showing correctly. note placed spaces between the code as it displayed as a £ otherwise.

Would still like to know why half and half was £ and other � with the same previous entry for the £ using a keyboard submission.

Just for reference found this site useful for utf8 code map:- http://www.tony-franks.co.uk/UTF-8.htm

Edited by johnnybebad, 20 April 2009 - 23:46.

Getting better with mods but no programmer am I.

#42   iyah

iyah
  • Members
  • 122 posts
  • Real Name:Sophia
  • Gender:Female

Posted 21 April 2009 - 03:26

1. Whats your url?

2. Check this post for the solution. Dont add anyting into the database to get rid of this error message.



Thanks for responding. URL for my test site

Is it possible to combine this contribution with the discount coupon one I mentioned? The coupon field was a part of the checkout payment.php page. I tried moving over the coupon codes to the checkout.php file in the onepagecheckout but got errors stating problem on the first line the code started. I am no programmer and have no php skills. Here is the checkout.payment.php file showing the coupon field:

<?php
/*
  $Id: checkout_payment.php 1739 2007-12-20 00:52:16Z hpdl $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2007 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  /* One Page Checkout - BEGIN */
	if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
		tep_redirect(tep_href_link(FILENAME_CHECKOUT, $_SERVER['QUERY_STRING']));
	}
  /* One Page Checkout - END */


// 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(FILENAME_LOGIN, '', '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(FILENAME_SHOPPING_CART));
  }

// 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(FILENAME_CHECKOUT_SHIPPING, '', '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(FILENAME_CHECKOUT_SHIPPING, '', '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(FILENAME_SHOPPING_CART));
		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(DIR_WS_CLASSES . 'order.php');
  $order = new order;

  if (!tep_session_is_registered('comments')) tep_session_register('comments');
  if (isset($HTTP_POST_VARS['comments']) && tep_not_null($HTTP_POST_VARS['comments'])) {
	$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
  }

  $total_weight = $cart->show_weight();
  $total_count = $cart->count_contents();

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

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

  $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
?>
<!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">
<script language="javascript"><!--
var selected;

function selectRowEffect(object, buttonSelect) {
  if (!selected) {
	if (document.getElementById) {
	  selected = document.getElementById('defaultSelected');
	} else {
	  selected = document.all['defaultSelected'];
	}
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

// one button is not an array
  if (document.checkout_payment.payment[0]) {
	document.checkout_payment.payment[buttonSelect].checked=true;
  } else {
	document.checkout_payment.payment.checked=true;
  }
}

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
//--></script>
<?php echo $payment_modules->javascript_validation(); ?>
</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>
	<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>
<!-- body_text //-->
	<td width="100%" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'); ?><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>
			<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
<?php
  if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['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><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
		  <tr class="infoBoxContents">
			<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="50%" valign="top"><?php echo TEXT_SELECTED_BILLING_DESTINATION; ?><br><br><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>


				<td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
				  <tr>
					<td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
					<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					<td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
					<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				  </tr>
				</table></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"><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></b></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
		  <tr class="infoBoxContents">
			<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
  $selection = $payment_modules->selection();

  if (sizeof($selection) > 1) {
?>
			  <tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				<td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>
				<td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			  </tr>
<?php
  } else {
?>
			  <tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				<td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			  </tr>
<?php
  }

  $radio_buttons = 0;
  for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
			  <tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
	if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {
	  echo '				  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
	} else {
	  echo '				  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
	}
?>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					<td class="main" colspan="3"><b><?php echo $selection[$i]['module']; ?></b></td>
					<td class="main" align="right">
<?php
	if (sizeof($selection) > 1) {
	  echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment));
	} else {
	  echo tep_draw_hidden_field('payment', $selection[$i]['id']);
	}
?>
					</td>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				  </tr>
<?php
	if (isset($selection[$i]['error'])) {
?>
				  <tr>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					<td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				  </tr>
<?php
	} elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
?>
				  <tr>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					<td colspan="4"><table border="0" cellspacing="0" cellpadding="2">
<?php
	  for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
					  <tr>
						<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
						<td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>
						<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
						<td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
						<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					  </tr>
<?php
	  }
?>
					</table></td>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				  </tr>
<?php
	}
?>
				</table></td>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			  </tr>
<?php
	$radio_buttons++;
  }
?>
			</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"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
		  <tr class="infoBoxContents">
			<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
			  <tr>
				<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?></td>
			  </tr>
			</table></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>

	 [b] <?php
	  /* kgt - discount coupons */
		  if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) {
	  ?>
			<tr>
			  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
				<tr>
				  <td class="main"><b><?php echo TABLE_HEADING_COUPON; ?></b></td>
				</tr>
			  </table></td>
			</tr>
			<tr>
			  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
				<tr class="infoBoxContents">
				  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
					  <td class="main"><?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"'); ?></td>
					</tr>
				  </table></td>
				</tr>
			  </table></td>
			</tr>
			<tr>
			  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
			</tr>
	  <?php
		  }
	  /* end kgt - discount coupons */
?>
[/b]

	  <tr>
		<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
		  <tr class="infoBoxContents">
			<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"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
				<td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></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_draw_separator('pixel_silver.gif', '1', '5'); ?></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><?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%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></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="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
			<td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
			<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></td>
<!-- body_text_eof //-->
	<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>
  </tr>
</table>
<!-- body_eof //-->

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


#43   iyah

iyah
  • Members
  • 122 posts
  • Real Name:Sophia
  • Gender:Female

Posted 21 April 2009 - 03:29

Forgot to mention: Thanks for the solution. I will comment out the code referring to the other coupon contribution.

#44   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 21 April 2009 - 08:07

Ressolved this one, its all to do with the utf8 coding, used

& # 163;
instead of using the keyboard £ as was done previously and now all £ signs are showing correctly. note placed spaces between the code as it displayed as a £ otherwise.

Would still like to know why half and half was £ and other � with the same previous entry for the £ using a keyboard submission.

Just for reference found this site useful for utf8 code map:- http://www.tony-franks.co.uk/UTF-8.htm

Okay I need a better solution as now the e-mail sent out has the 163 code rather than the £ sign......

fun aint it
Getting better with mods but no programmer am I.

#45   iyah

iyah
  • Members
  • 122 posts
  • Real Name:Sophia
  • Gender:Female

Posted 22 April 2009 - 16:57

does any one know why my ajax-loader.gif is not showing?

i need to go live so any help will be appreciated. thanks

#46   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 24 April 2009 - 18:07

Hi still looking for the solutions to:-

1. £ display issue that doesnt affect e-mails
2. Shipping method:-
a). Not to have one option pre selected
/cool.gif' class='bbc_emoticon' alt='B)' /> To update shipping prices when option selected in the shipping method section
(note in the cart section at the top of the page the shipping prices update when the shipping method is changed, also because an option is already selected for shipping

Thanks
johnny
Getting better with mods but no programmer am I.

#47   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 24 April 2009 - 21:12

What would i have to do if i wanted a continue shopping button next to the update button in the shopping cart section at the top of checkout.php?

Thanks

Johnny
Getting better with mods but no programmer am I.

#48   nicholaskoji

nicholaskoji
  • Members
  • 7 posts
  • Real Name:Nick

Posted 26 April 2009 - 07:08

also having
Fatal error: Call to a member function pre_confirmation_check() on a non-object in /home4/metalmul/public_html/includes/classes/onepage_checkout.php on line 548

Edited by nicholaskoji, 26 April 2009 - 07:12.


#49   emmet11

emmet11
  • Members
  • 12 posts
  • Real Name:Pepe

Posted 26 April 2009 - 09:38

Hi friends, I'm having problems when I fill data into billing addres (the shipping methods doesn't apears). By other hand if I fill diferent shipping addres the shiping methods appears ok. I think there must be something with 'updateshippingmethods' funtion in billing addres section.

Any idea??

Thanks!

#50   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 26 April 2009 - 11:07

Hi still looking for the solutions to:-

1. £ display issue that doesnt affect e-mails
2. Shipping method:-
a). Not to have one option pre selected
/cool.gif' class='bbc_emoticon' alt='B)' /> To update shipping prices when option selected in the shipping method section
(note in the cart section at the top of the page the shipping prices update when the shipping method is changed, also because an option is already selected for shipping
3. Customer details section is being left empty when the order is created, however shipping billing and order details are complete. I suspect looking at the checkout.php it is due to these details not being sent to the database?

Please can someone point us in the right direction
Getting better with mods but no programmer am I.

#51   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 26 April 2009 - 11:16

Hi friends, I'm having problems when I fill data into billing addres (the shipping methods doesn't apears). By other hand if I fill diferent shipping addres the shiping methods appears ok. I think there must be something with 'updateshippingmethods' funtion in billing addres section.

Any idea??

Thanks!


Hi,

as the shipping methods are calculated on the shipping address, that may explain why the shpiing methods display only when shipping address is used, is the shipping address usually blank to start with?

when I create a new account its automatically filling in the shipping address, and as a result the shipping methods are available.

All my settings in configuartion onepage checkout are set to true, dont know if that would ressolve your issue or not.
Getting better with mods but no programmer am I.

#52   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 26 April 2009 - 11:26

also having
Fatal error: Call to a member function pre_confirmation_check() on a non-object in /home4/metalmul/public_html/includes/classes/onepage_checkout.php on line 548


I would check that area of code and see what files or functions it is calling for and then check that you have these sections installed correctly.
having looked at the files I would guess its a payment method/ payment setup problem, but I am no expert.

Once you get this type of problem though I would use a new browser session to ensure you have corrected the problem as for some reason these errors dont go away if you use the same broswer session even if you have ressolved the problem.

No promises made but at least it gives you somewhere to look.

Johnny
Getting better with mods but no programmer am I.

#53   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 26 April 2009 - 14:17

Hi still looking for the solutions to:-


1. £ display issue that doesnt affect e-mails

2. Shipping method:-
A). Not to have one option pre selected
/cool.gif' class='bbc_emoticon' alt='B)' /> To update shipping prices when option selected in the shipping method section
(note in the cart section at the top of the page the shipping prices update when the shipping method is changed, also because an option is already selected for shipping
C) Update Shipping Method when shipping address is changed.
D) Not to synchronise billing and shipping addresses if page is refreshed.(this would be less of an issue if the shipping methods changed when address or shipping method is changed.
E) When only using zone shipping methods, if an address is not a shipping zone the shipping method box dissappears completley, would be better to have sorry we do not ship to that area or please ask for a quote message or something. I was able to create a shipping method for a zone with the title Please ask for a quote based on it being the rest of the world, ie,. not inside my shipping zone and therefore my shipping method did not dissappear.

3. Customer details section is being left empty when the order is created, however shipping billing and order details are complete. I suspect looking at the checkout.php it is due to these details not being sent to the database?

Nice to have below:-

4. It would be nice if the cart section of checkout.php was more ajax controlled, i.e when you change the qty it automatically updates or removes the product, rather than to have to use the update button.

5. It would be nice if we could have a continue shopping button in the cart section and or links to specials and featured products to try and encourage cutomers to look at and buy the products that are trying to be promoted.

Please can someone point us in the right direction.

This is a great mod and whilst it requires some fine tunning it certainly will make a posative difference to the osc shopping experience.

Edited by johnnybebad, 26 April 2009 - 14:28.

Getting better with mods but no programmer am I.

#54   mrgreg

mrgreg
  • Members
  • 31 posts
  • Real Name:Greg
  • Gender:Male
  • Location:Ft Lauderdale, FL

Posted 26 April 2009 - 20:37

everything seems to be working, except the only issue I have at the moment is that the orders in admin, dont assign the customers details but the billing and shipping address are assigned.

I am guessing this means that the one page checkout does send billing and shipping but not customer?

I will check a few things out first, make sure I didnt delte them when I was rejigging a few things.

When I get the gift voucher mod installed and working on its own I will let you know how I get on with the integration.

Great mod, and I will be doing a lot more testing once, have had a few teething problems, mainly around the settings regarding currency and addresses, and once they were sorted out most of the shipping and payment mods appeared to work okay.

Thanks

Johnny



Hi Johnny and All-
Have just installed this mod and observed the same behavior.

Customer name is not showing up in the orders table.

Likewise in the order detail view.

Additionally, the telephone number and email address are not present either.

Has anybody addressed this issue?

Oscommerce supports the scenario in which "Customer details", "Shipping details", and "Billing details" can be three separate entities (an issue in itself). My assumption is that this was an oversight by Itexperts (the author)...

#55   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 26 April 2009 - 21:48

Hi Johnny and All-
Have just installed this mod and observed the same behavior.

Customer name is not showing up in the orders table.

Likewise in the order detail view.

Additionally, the telephone number and email address are not present either.

Has anybody addressed this issue?

Oscommerce supports the scenario in which "Customer details", "Shipping details", and "Billing details" can be three separate entities (an issue in itself). My assumption is that this was an oversight by Itexperts (the author)...


Have to say though it works a lot better than the other single page carts I have tried. however I am still have several issues and this being the least important as I have the details I need and it is linked to the customers account.

its should be a simply case of posting the information to the site, looking at code it takes the shipping and billing addresses from the cutsomers registration details, so its only a case of getting those details posted to the order section as customer details.

I am having aplay but I am no programmer.

Johnny
Getting better with mods but no programmer am I.

#56   iyah

iyah
  • Members
  • 122 posts
  • Real Name:Sophia
  • Gender:Female

Posted 26 April 2009 - 22:19

FYI: This contribution also works with Paypal IPN

I have installed it and everything works great.. but...
If you dont insert a password on the One Page checkout form, you will be directed to the normal creataccount, loginpage.

I have the same problem too. It would be nice to redirect them to the create password fields via focus. I am no programmer so just wishing someone comes up with this.

Also, I am still having problems with the ajax-laoder.gif. It does not show during checkout but it is indeed in the correct location and even shows if you enter the location into a browser address bar.

Any help would be appreciated.

#57   coorsd

coorsd
  • Members
  • 28 posts
  • Real Name:Donald S. Coors

Posted 28 April 2009 - 02:59

Hello Folks,

I am somewhat new to oscommerce, but have sucessfully installed several contributions and really do appreciate all the efforts people have put in. This product looks great.

I have very carefully followed the install instructions. I have now gone over and double checked all the steps.

Nothing shows up and nothing happens. In the admin console, where is the one page checkout supposed to show up?

Is it under configuration? Tools? Modules?

I would appreciate any insight into this.

Thanks,

Don

#58   mrgreg

mrgreg
  • Members
  • 31 posts
  • Real Name:Greg
  • Gender:Male
  • Location:Ft Lauderdale, FL

Posted 28 April 2009 - 06:54

Hello Folks,

I am somewhat new to oscommerce, but have sucessfully installed several contributions and really do appreciate all the efforts people have put in. This product looks great.

I have very carefully followed the install instructions. I have now gone over and double checked all the steps.

Nothing shows up and nothing happens. In the admin console, where is the one page checkout supposed to show up?

Is it under configuration? Tools? Modules?

I would appreciate any insight into this.

Thanks,

Don



Hi Don,
I have a modded admin, but it should be under configuration...

Did you make the proper ../admin mods and run the DB update (below)?

INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (7575, 'One Page Checkout', 'Settings for one page checkout', 16, 1);
ALTER TABLE configuration CHANGE configuration_value configuration_value TEXT NOT NULL;
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Enable One Page Checkout', 'ONEPAGE_CHECKOUT_ENABLED', 'True', 'Enable one page checkout?', 7575, 1, NULL, now(), NULL, 'tep_cfg_select_option(array(\'False\',\'True\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Default Address Country', 'ONEPAGE_DEFAULT_COUNTRY', '223', 'Default country for new address and for checking out wihtout account', 7575, 2, NULL, now(), NULL, 'tep_cfg_pull_down_country_list(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Account Creation', 'ONEPAGE_ACCOUNT_CREATE', 'false', 'if user does not enter password, do you want to auto-create their account and email password in order confirmation?', 7575, 3, NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Show Custom Right Column', 'ONEPAGE_SHOW_CUSTOM_COLUMN', 'true', 'Show custom right column', 7575, 4, NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\',\'false\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Require Login', 'ONEPAGE_LOGIN_REQUIRED', 'false', 'Require customer to be logged in to proceed through checkout', 7575, 5, NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Show Oscommerce Columns', 'ONEPAGE_SHOW_OSC_COLUMNS', 'true', 'Show default oscommerce left and right columns', 7575, 6, NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\',\'false\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #1 Heading', 'ONEPAGE_BOX_ONE_HEADING', '100% Private Secure SSL Transaction', 'Custom Colum Box #1 Heading', 7575, 15, NULL, now(), NULL, NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #1 Content', 'ONEPAGE_BOX_ONE_CONTENT', 'Your shopping cart transaction is taking place on an encrypted SSL webpage, meaning it is secure and safe. We respect all of your private information and none of it will be shared with anyone in anyway.', 'Custom Colum Box #1 Content', 7575, 16, NULL, now(), NULL, 'tep_cfg_textarea(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #2 Heading', 'ONEPAGE_BOX_TWO_HEADING', 'Ordering Information', 'Custom Colum Box #2 Heading', 7575, 17, NULL, now(), NULL, NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #2 Content', 'ONEPAGE_BOX_TWO_CONTENT', '<b>Processing Time</b><br>We will process your order as quickly as possible. Typical processing time for orders shipped ground is 1 – 2 days. For expedited shipping (2 day or overnight) we make every effort to ship the order the same day if ordered before 2pm.<br><br><b>Order Tracking</b><br>After your order is placed, you can login anytime 24/7 to view the status of your order. When your order is shipped, you will receive a shipment notification with a tracking number.', 'Custom Colum Box #2 Content', 7575, 18, NULL, now(), NULL, 'tep_cfg_textarea(');

#59   iyah

iyah
  • Members
  • 122 posts
  • Real Name:Sophia
  • Gender:Female

Posted 28 April 2009 - 11:20

Ressolved this one, its all to do with the utf8 coding, used

& # 163;
instead of using the keyboard £ as was done previously and now all £ signs are showing correctly. note placed spaces between the code as it displayed as a £ otherwise.

Would still like to know why half and half was £ and other � with the same previous entry for the £ using a keyboard submission.

Just for reference found this site useful for utf8 code map:- http://www.tony-franks.co.uk/UTF-8.htm


Where did you put the code to change the currency symbol?

#60   waquert

waquert
  • Members
  • 2 posts
  • Real Name:Ville Siltanen

Posted 28 April 2009 - 15:33

Hi still looking for the solutions to:-

1. £ display issue that doesnt affect e-mails

In catalog/checkout.php:

***FIND:
<?php
/*
  $Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $

***CHANGE TO:
<?php header("Content-Type: text/html; charset=UTF-8\n");
/*
  $Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $

Not pretty, but does this work?

I have not tried charset=UTF-8. I fixed my € issue using charset=ISO_8859-1.