Latest News: (loading..)
NimaP

One Page Checkout Support

2,293 posts in this topic

First let me say great contribution, having switched off in admin as suggested earlier dont get the duplication, however I am not being directed to domplete payment, it just keeps retuning to the page.

 

This happens with STS switched on or off, if anyone has it working better with sts, can they let us know how please.

 

Thanks

 

Johnny

Share this post


Link to post
Share on other sites
if anyone has it working better with sts, can they let us know how please.

 

Hi, i've not looked into this specifically for one page checkout but one common problem I have found with STS is if the page outputs anything before the HTML begins i.e. before:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>

(or similar)

 

Then this is ignored by STS. So check for print/echos before the HTML begins, though if it's good code there shouldn't be any. As I say i'm not sure about this but it's always a good place to start looking.

Edited by morehawes

Share this post


Link to post
Share on other sites
Hi, i've not looked into this specifically for one page checkout but one common problem I have found with STS is if the page outputs anything before the HTML begins i.e. before:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>

(or similar)

 

Then this is ignored by STS. So check for print/echos before the HTML begins, though if it's good code there shouldn't be any. As I say i'm not sure about this but it's always a good place to start looking.

 

 

Not sure, but I get the error messages on clicking continue if I dont select or tye in the values, but just cant get to pay for anything, will revisit the code tomorrow and the instructions.

 

thanks for the advice

 

Johnny

Share this post


Link to post
Share on other sites
Ok I found the solution!

 

Just need to add those value in SQL DB

 

# phpMyAdmin MySQL-Dump

# http://www.phpmyadmin.net/

 

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('To offer a gift voucher', 'NEW_SIGNUP_GIFT_VOUCHER_AMOUNT', '0', 'Please indicate the amount of the gift voucher which you want to offer a new customer.<br><br>Put 0 if you do not want to offer gift voucher.<br>', 1, 31, NULL, now(), NULL, NULL);

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('To offer a discount coupon', 'NEW_SIGNUP_DISCOUNT_COUPON', '', 'To offer a discount coupon to a new customer, enter the code of the coupon.<br><br>Leave empty if you do not want to offer discount coupon.<BR>', 1, 32, NULL, now(), NULL, NULL);

 

 

#

# Table structure for table 'coupon_email_track'

#

 

CREATE TABLE coupon_email_track (

unique_id int(11) NOT NULL auto_increment,

coupon_id int(11) NOT NULL default '0',

customer_id_sent int(11) NOT NULL default '0',

sent_firstname varchar(32) default NULL,

sent_lastname varchar(32) default NULL,

emailed_to varchar(32) default NULL,

date_sent datetime NOT NULL default '0000-00-00 00:00:00',

PRIMARY KEY (unique_id)

);

 

 

#

# Table structure for table 'coupon_gv_customer'

#

 

CREATE TABLE coupon_gv_customer (

customer_id int(5) NOT NULL default '0',

amount decimal(8,4) NOT NULL default '0.0000',

PRIMARY KEY (customer_id),

KEY customer_id (customer_id)

);

 

 

#

# Table structure for table 'coupon_gv_queue'

#

 

CREATE TABLE coupon_gv_queue (

unique_id int(5) NOT NULL auto_increment,

customer_id int(5) NOT NULL default '0',

order_id int(5) NOT NULL default '0',

amount decimal(8,4) NOT NULL default '0.0000',

date_created datetime NOT NULL default '0000-00-00 00:00:00',

ipaddr varchar(32) NOT NULL default '',

release_flag char(1) NOT NULL default 'N',

PRIMARY KEY (unique_id),

KEY uid (unique_id,customer_id,order_id)

);

 

 

#

# Table structure for table 'coupon_redeem_track'

#

 

CREATE TABLE coupon_redeem_track (

unique_id int(11) NOT NULL auto_increment,

coupon_id int(11) NOT NULL default '0',

customer_id int(11) NOT NULL default '0',

redeem_date datetime NOT NULL default '0000-00-00 00:00:00',

redeem_ip varchar(32) NOT NULL default '',

order_id int(11) NOT NULL default '0',

PRIMARY KEY (unique_id)

);

 

 

#

# Table structure for table 'coupons'

#

 

CREATE TABLE coupons (

coupon_id int(11) NOT NULL auto_increment,

coupon_type char(1) NOT NULL default 'F',

coupon_code varchar(32) NOT NULL default '',

coupon_amount decimal(8,4) NOT NULL default '0.0000',

coupon_minimum_order decimal(8,4) NOT NULL default '0.0000',

coupon_start_date datetime NOT NULL default '0000-00-00 00:00:00',

coupon_expire_date datetime NOT NULL default '0000-00-00 00:00:00',

uses_per_coupon int(5) NOT NULL default '1',

uses_per_user int(5) NOT NULL default '0',

restrict_to_products varchar(255) default NULL,

restrict_to_categories varchar(255) default NULL,

restrict_to_customers text,

coupon_active char(1) NOT NULL default 'Y',

date_created datetime NOT NULL default '0000-00-00 00:00:00',

date_modified datetime NOT NULL default '0000-00-00 00:00:00',

PRIMARY KEY (coupon_id)

);

 

 

#

# Table structure for table 'coupons_description'

#

 

CREATE TABLE coupons_description (

coupon_id int(11) NOT NULL default '0',

language_id int(11) NOT NULL default '0',

coupon_name varchar(32) NOT NULL default '',

coupon_description text,

KEY coupon_id (coupon_id)

);

 

Hi,

 

It's looking for the CREDIT CLASS Gift Voucher Contribution, in the includes/classes/onepage_checkout.php file.

There are two snippets of code concerning it. Commenting them out solves the issue a bit more easily.

 

Regards,

 

JF

Share this post


Link to post
Share on other sites

The contribution only works properly with flat rate shipping. It doesn't refresh the order total shipping properly, with shipping modues that increase shipping with added quantities &/or weight.

 

JF

Edited by JFrancis

Share this post


Link to post
Share on other sites

Well flat rate is working now in sts with paypal standard, be nice to get other payment modules and shipping modules working.

 

Johnny

Share this post


Link to post
Share on other sites
Well flat rate is working now in sts with paypal standard, be nice to get other payment modules and shipping modules working.

 

Johnny

 

 

Okay, the multizone shipping does update but only when I swap between flat rate and multizone shipping.

 

the shipping method box only changes the shipping cost when I refresh the page, so I guess, all thats needed would be to make the shipping method section ajax???? and then it should all update properly???

 

Also, I am uk based and the tax is showing as UK VAT + USA export, can anyone advise why that would be please.

 

Thanks

 

Johnny

Share this post


Link to post
Share on other sites

I have been able to get Table Rate, Flat Rate, and Free Shipping working with this mod. I have not tried the USPS, UPS, or FedEx shipping modules. The only thing on my wish list is the ability to check out using other payment modules besides Paypal standard.

 

If I use Paypal Web pro or any other Credit card processing modules, the checkout page will take the customer to the login / register page and people have to go back through the checkout process after they register.

 

Hopefully someone finds a fix for this login / registry issue so I can use another Credit Card processing module.

 

Derek

Share this post


Link to post
Share on other sites

I am getting this warning after it seemed to work fine for me.

I turned it off in the admin console just to make sure and now I cant turn it back on or change any of the other values because of it.

Im assuming because no one else has had this problem that it me.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/ter32222/public_html/musclebeach/admin/configuration.php:42) in /home/ter48888/public_html/musclebeach/admin/includes/functions/general.php on line 22

 

Any Ideas.

Thankyou.

Share this post


Link to post
Share on other sites

hi,

 

what a great contribution! thanks so much to the author. well appreciated for your time and hard work!

 

i have two issues:

 

1) ajax-loader.gif is not showing although i have checked over and over again and the image is already uploaded to my catalog/images.

 

How do I fix this?

 

2) I also get that error message:

 

1146 - Table 'rs_os.table_coupons' doesn't exist

 

select * from TABLE_COUPONS where coupon_code = 'NEW_SIGNUP_DISCOUNT_COUPON'

 

 

I have the Discount Coupon Code contribution installed.

Should I add the above solution to my database or will I need to uninstall the Discount Coupon Code and install the Credit Class & Gift Voucher Contribution?

 

Any help would be much appreciated.

 

Thanks in advance....I hope.

Share this post


Link to post
Share on other sites

what credit card module works for you guys? the one that comes with RC2 does not work. it just sends me to a blank page. same thing with another credit card with cvv2 module.

op_afif likes this

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

hi.

 

can anyone help with the ajax-loader.gif and the contributions i mentioned above?

 

thx

Share this post


Link to post
Share on other sites
hi,

 

what a great contribution! thanks so much to the author. well appreciated for your time and hard work!

 

i have two issues:

 

1) ajax-loader.gif is not showing although i have checked over and over again and the image is already uploaded to my catalog/images.

 

How do I fix this?

 

2) I also get that error message:

 

 

 

 

I have the Discount Coupon Code contribution installed.

Should I add the above solution to my database or will I need to uninstall the Discount Coupon Code and install the Credit Class & Gift Voucher Contribution?

 

Any help would be much appreciated.

 

Thanks in advance....I hope.

 

1. Whats your url?

 

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

Edited by redrum

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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'); ?>

harshvora9 likes this

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

 

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

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now