Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One Page Checkout Support


Guest

Recommended Posts

hello, I don't know if this has been discussed here, but I found an error in:

 

includes/checkout/billing_address.php line 77 from the 1.2 package

 

?>class= "success_icon ui-icon-green ui-icon-circle-check" <? }else{?>

 

I changed it to this.

 

?> <div class= "success_icon ui-icon-green ui-icon-circle-check" <?php }else{?>

 

still testing, overall it's a great contribution.

Link to comment
Share on other sites

Hi! fist of all, thanks for this great contribution and everyone who share the support here!! This contribution does save a lot of steps for checkout process and also conbine the "purchase without account" type of checkout option!

 

I have some questions regarding getting this contribution to work with the discount coupon code module. Does any one have an issue of the sub-total and total price is calculated incorrectly? I did some search and couldn't find the answers! The issue is when amount of coupon is applied, the sub-total display the price with discount applied once; then the total price display the price with twice discount applied.

 

Is it something to do with the include/class/onepage_checkout.php function?

 

really appreciate if anyone can share the thoughts!

Link to comment
Share on other sites

Hi Emma,

 

There was a problem like this for one of the paypal mods it was fixed by changing one of the settings in admin for that mod, cant exactly remember but something like focus, im not using sage so i dont know what admin settings you have for that mod,

 

If you find same code in sage pro as protx add that code

 

Steve

 

Hi steve,

 

thanks for your reply, i've managed to sort it,

 

what i noticed on my old site with sagepay that the inframe didnt show up on the checkout page it was a separate page still within my site and once i've refreshed the new site, empty caches and named pages in the security pro not to be changed url wise, it worked like a dream it also works really well with qtpro.

 

For any one else that does use Sagepay server, this module does not show payment entry details on the checkout page, it comes up on the next page as it is information direct from sagepay itself and verify visa. (it looks like it is still on your site, i find this is the best option for PCI) I was under the impression that this module did put the payment card input entries on the checkout page, so really i didnt have a coding problem.

 

Module is working like a dream now so much in fact i got a sale from it this morning :-)

 

Thank you everybody for contributing to this module your all stars xx

 

oh one more thing which voucher module works best with the module?

Link to comment
Share on other sites

Hi steve,

 

thanks for your reply, i've managed to sort it,

 

what i noticed on my old site with sagepay that the inframe didnt show up on the checkout page it was a separate page still within my site and once i've refreshed the new site, empty caches and named pages in the security pro not to be changed url wise, it worked like a dream it also works really well with qtpro.

 

For any one else that does use Sagepay server, this module does not show payment entry details on the checkout page, it comes up on the next page as it is information direct from sagepay itself and verify visa. (it looks like it is still on your site, i find this is the best option for PCI) I was under the impression that this module did put the payment card input entries on the checkout page, so really i didnt have a coding problem.

 

Module is working like a dream now so much in fact i got a sale from it this morning :-)

 

Thank you everybody for contributing to this module your all stars xx

 

oh one more thing which voucher module works best with the module?

Hi

 

if you look in the install file it tells you which one and version has been coded in for one page checkout

Works with vouchers/coupons module: http://www.oscommerce.com/community/contributions,282/category,all/search,vouchers version 5.20a

 

Steve

Link to comment
Share on other sites

thanx Steve. I replaced just the login button with an "regular" image button and all was fine.. until I discovered it aint working

with the payment modules I have to use... >_<

 

at first I couldnt get the regular way to work aswell

but after fixing a conflict between lightbox and accordion menu

 

var j$ = jQuery;

j$.noConflict();

 

its was all good, well until now ;)

 

Hello Roffie; where did you change this? I have the same issue, the login button doesn't work. I am using STS.

 

Thanks!

Link to comment
Share on other sites

I have a problem with the Discount Coupon Codes Module. Don't know if I'm the only having this problem.

The 'Max Use' and 'Number Available' isn't working. It works when I disable One Page Checkout - but not when I enable it. If I set Max Use to 1 and I use the coupon unlimited.

 

I really appreciate if someone could check if I did something wrong - or is this a general problem?

Link to comment
Share on other sites

Sorry about the last post. The code in the checkout.php.html is:

 

<!-- dialogs_bof //-->
<div id="loginBox" title="Inloggen" 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//-->

 

 

Hello Frisser, how did you get this thing working with STS ??

Link to comment
Share on other sites

Hi

 

if you look in the install file it tells you which one and version has been coded in for one page checkout

Works with vouchers/coupons module: http://www.oscommerce.com/community/contributions,282/category,all/search,vouchers version 5.20a

 

Steve

 

Hi steve

 

I took your suggestion of using 5.20a, its a job and a half of a contribution to install,

I've had to try it out first on a fresh install as i had way too may issues with a copy of my site (mainly not showing payment with voucher option not showing), even with a fresh install it has lots issues, I also have tried different versions to find the most stable one, still no joy.

 

With using a fresh fresh install i managed to get it working but noticed it hasn't got one of the features i need, which is using a gift voucher with a higher amount than the basket total. I couldn't find a solution on the support forums and it seems a lot of people have the same problems.

 

lots of "Please select a payment method for your order." errors if the voucher exceeds baskets, sending shopping carts in a loop, i.e redeem, voucher pay, confirm, redeem, voucher pay, confirm so on....

 

Is there other Voucher/Gift contribution i could try with one page checkout, it doesn't have to have the same features as the one you recommended, only requirement i need is voucher exceeding basket total, as we sell gift vouchers in our physical high street shop and would like to offer an online service to existing customers.

 

Thanks once again

 

Emma :-)

Link to comment
Share on other sites

Hi steve

 

I took your suggestion of using 5.20a, its a job and a half of a contribution to install,

I've had to try it out first on a fresh install as i had way too may issues with a copy of my site (mainly not showing payment with voucher option not showing), even with a fresh install it has lots issues, I also have tried different versions to find the most stable one, still no joy.

 

With using a fresh fresh install i managed to get it working but noticed it hasn't got one of the features i need, which is using a gift voucher with a higher amount than the basket total. I couldn't find a solution on the support forums and it seems a lot of people have the same problems.

 

lots of "Please select a payment method for your order." errors if the voucher exceeds baskets, sending shopping carts in a loop, i.e redeem, voucher pay, confirm, redeem, voucher pay, confirm so on....

 

Is there other Voucher/Gift contribution i could try with one page checkout, it doesn't have to have the same features as the one you recommended, only requirement i need is voucher exceeding basket total, as we sell gift vouchers in our physical high street shop and would like to offer an online service to existing customers.

 

Thanks once again

 

Emma :-)

Hi Emma i use coupons by ingo

 

make a new box called coupon_checkout.php in includes/boxes/ folder and paste code below in it

<?php
/*
 $Id: coupon.php,v 1.0 2006/04/05 Ingo <http://forums.oscommerce.de/index.php?showuser=36>

 Digistore v4.0,  Open Source E-Commerce Solutions
 http://www.digistore.co.nz

 Copyright (c) 2006 osCommerce

 Released under the GNU General Public License
*/

 if (defined('MODULE_ORDER_TOTAL_COUPON_SORT_ORDER') && MODULE_ORDER_TOTAL_COUPON_SORT_ORDER>0) {
?>
<!-- coupons by ingo //-->
         <tr>
           <td>
<?php
   $info_box_contents = array();
   $info_box_contents[] = array('text' => '<b>' . COUPON_BOX_HEADING . '</b>');
   new infoBoxHeading($info_box_contents, false, false);
   $info_box_contents = array();
   if ($coupon_code_code=='') {
     $info_box_contents[] = array('align' => 'center', 'text' => '<div align="center">' . (($coupon_code_message!='')? $coupon_code_message . '<br>':'') . COUPON_BOX_PLEASE_ENTER . '</div>');
     $info_box_contents[] = array( 'form' => tep_draw_form('coupon', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'post'),
                                  'align' => 'center',
                                   'text' =>  '<div align="center">' . tep_draw_input_field('coupon_code', '', 'style="width:25%;margin:1px;text-align:center;"') .
                                             tep_hide_session_id() . '<br>' . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</div></form>');
   } else {
     $info_box_contents[] = array('align' => 'center', 'text' => '<div align="center">' . (($coupon_code_message!='')? $coupon_code_message:COUPON_BOX_CODE_ACTIVE) . '<br>' . COUPON_BOX_VALUE . ': ' . $currencies->format($coupon_code_value). '</div>');
   }
   new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- coupons by ingo eof //-->
<?php
 }
?>

 

in checkout.php find

<div id="pageContentContainer" style="display:none;">

add before it

  <?php require(DIR_WS_INCLUDES . 'boxes/coupon_checkout.php'); ?>

 

Steve

Link to comment
Share on other sites

Hey All,

 

I am still having no luck, one of my other website that uses an older version has the following error with regards to the paypal after successful payment and going back to the website, the following error occurs, when i test this on the local server i don't get a response but an white page on the checkout_process.php page

 

this is the following error

 

Fatal error: Call to a member function on a non-object in /********/paypal_standard.php on line 525

 

Anyone one know a solution, I am having complaints after complaints after this, even though the order went through

 

any help would be much appreciated

 

Kind regards

 

Epsilon Solutions

Link to comment
Share on other sites

Hello Frisser, how did you get this thing working with STS ??

 

It's a bit complicated and you have to modify the code a bit. But in short:

 

- create a copy of your sts_template.html to checkout.php.html (test if this is working - if not use a newer version of STS)

- Before the </head> put this piece of code:

 

<link rel="stylesheet" type="text/css" href="http://www.yoursite.com/ext/jQuery/themes/smoothness/ui.all.css">


<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.ajaxq.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.pstrength.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.ui.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/includes/checkout/checkout.js"></script>

 

 

- Before the </body> put this piece of code (it's the same code in checkout.php):

 

<!-- 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//-->

 

 

And then it should work! I have modified a lot - but I think this is the basic instructions.

Edited by Frisser
Link to comment
Share on other sites

It's a bit complicated and you have to modify the code a bit. But in short:

 

- create a copy of your sts_template.html to checkout.php.html (test if this is working - if not use a newer version of STS)

- Before the </head> put this piece of code:

 

<link rel="stylesheet" type="text/css" href="http://www.yoursite.com/ext/jQuery/themes/smoothness/ui.all.css">


<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.ajaxq.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.pstrength.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.ui.js"></script>
<script type="text/javascript" language="javascript" src="http://www.yoursite.com/includes/checkout/checkout.js"></script>

 

 

- Before the </body> put this piece of code (it's the same code in checkout.php):

 

<!-- 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//-->

 

 

And then it should work! I have modified a lot - but I think this is the basic instructions.

 

 

Many thanks Frisser!! It works..... besides 1 little detail....

 

I don't want to use State and I just set it false in the admin. Now when i check the shipping address, the confirm button doesn't show up anymore.

 

Do you have a solution?

Link to comment
Share on other sites

Hey All,

 

I am still having no luck, one of my other website that uses an older version has the following error with regards to the paypal after successful payment and going back to the website, the following error occurs, when i test this on the local server i don't get a response but an white page on the checkout_process.php page

 

this is the following error

 

Fatal error: Call to a member function on a non-object in /********/paypal_standard.php on line 525

 

Anyone one know a solution, I am having complaints after complaints after this, even though the order went through

 

any help would be much appreciated

 

Kind regards

 

Epsilon Solutions

 

Hi try removing the code OPC asked you to add

 

Steve

Link to comment
Share on other sites

On checkout.php I am receiving the error: Fatal error: Call to undefined method order_total::collect_posts() in /home/***/public_html/catalog/includes/classes/onepage_checkout.php on line 703. The only module recently added with the gift voucher module. Anyone have any thoughts?

Link to comment
Share on other sites

Hi everyone,

 

I just have installed OPC and I get into a loop if I check the checkbox "Different from billing address?". I have disabled "State" in customer details, because "State", "Suburb" and "Date of Birth" are useless for my shop.

 

If I set "State" to "true", everthing works fine. Is there a way in the configuration of OPC, to make it work with "State" set to "false"?

 

Kind regards

BoF

Link to comment
Share on other sites

Many thanks Frisser!! It works..... besides 1 little detail....

 

I don't want to use State and I just set it false in the admin. Now when i check the shipping address, the confirm button doesn't show up anymore.

 

Do you have a solution?

 

Yes - in Checkout.php I changed this:

 

						success: function (data){
						$this.html(data);
						onePage.addCountryAjax($('select[name="country"]', $this), 'state', 'stateCol')
					},

 

to this

 

						success: function (data){
						$this.html(data);
						onePage.addCountryAjax($('select[name="country"]', $this), '', '')
					},

Edited by Frisser
Link to comment
Share on other sites

Not to be critical here, but after working with this add-on for several days in a development environment, I'm coming to the conclusion that it's not ready for prime time. Granted, the complexity of this is greater than most, but it's chock full of bugs. For a while I thought it might have been my implementation, but the same behavior exists on the demo website.

 

For starters, has anyone noticed that the "Different from billing address" checkbox has no effect when calculating shipping rates? That's right, it only calcuates based on the billing address, no matter if the checkbox is checked ot not.

 

There's another bug whereby you can have both addresses completely filled out, yet no shipping address data is being sent to the shipping modules. It's fairly simple to get it into this state, but it's difficult to say what gets it back out. At some point it does start functioning again.

 

There's a bug in the logic for setting the icon on the State field in the Shipping Address section. It's always a green check.

 

I'm curious if folks are really using this in a production environment, and if so have you already worked these types of issues out for yourselves, or just never noticed them?

 

Thanks.

Edited by robweidman
Link to comment
Share on other sites

Not to be critical here, but after working with this add-on for several days in a development environment, I'm coming to the conclusion that it's not ready for prime time. Granted, the complexity of this is greater than most, but it's chock full of bugs. For a while I thought it might have been my implementation, but the same behavior exists on the demo website.

 

For starters, has anyone noticed that the "Different from billing address" checkbox has no effect when calculating shipping rates? That's right, it only calcuates based on the billing address, no matter if the checkbox is checked ot not.

 

There's another bug whereby you can have both addresses completely filled out, yet no shipping address data is being sent to the shipping modules. It's fairly simple to get it into this state, but it's difficult to say what gets it back out. At some point it does start functioning again.

 

There's a bug in the logic for setting the icon on the State field in the Shipping Address section. It's always a green check.

 

I'm curious if folks are really using this in a production environment, and if so have you already worked these types of issues out for yourselves, or just never noticed them?

 

Thanks.

Hi Rob,

 

I take it you have reported these bugs to itwebexperts on the email they provided in the install instructions

 

Steve

Link to comment
Share on other sites

Hi Rob,

 

I take it you have reported these bugs to itwebexperts on the email they provided in the install instructions

 

Steve

 

Steve,

 

I haven't reported them yet as these are just a subset of the ones I've found. It was surprising to encounter so many bugs with this addon, especially since it's almost a year old by now. At this point I have a lot of misgivings and am considering not spending any more time on it. The folks at itwebexperts haven't even seen fit to make simple changes such as using the long PHP tags instead of the short ones. Granted, that's not a bug per se, though it is inconsistent with the rest of oscommerce code. But for people who can't manage their server's php.ini settings, it's means cracking the code open and modifying it.

 

My 2 cents. . .

 

Rob

Link to comment
Share on other sites

Steve,

 

I haven't reported them yet as these are just a subset of the ones I've found. It was surprising to encounter so many bugs with this addon, especially since it's almost a year old by now. At this point I have a lot of misgivings and am considering not spending any more time on it. The folks at itwebexperts haven't even seen fit to make simple changes such as using the long PHP tags instead of the short ones. Granted, that's not a bug per se, though it is inconsistent with the rest of oscommerce code. But for people who can't manage their server's php.ini settings, it's means cracking the code open and modifying it.

 

My 2 cents. . .

 

Rob

Hi Rob,

 

I reported to them not using the long php tags here is reply below

http://php.net/manual/en/ini.core.php

 

short_open_tag boolean

 

Tells whether the short form (<? ?> ) of PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use <?xml ?> inline. Otherwise, you can print it with PHP, for example: <?php echo '<?xml version="1.0"?>'; ?> . Also if disabled, you must use the long form of the PHP open tag (<?php ?> ).

 

Note: This directive also affects the shorthand <?= , which is identical to <? echo . Use of this shortcut requires short_open_tag to be on.

 

yet using short tags is considered bad programming practice, and not everyone knows about the short_open_tag boolean who installs php scripts on their web hosting accounts, or knows if their host has short tags enabled or not until they get errors

 

Steve

Edited by steve_s
Link to comment
Share on other sites

Yes - in Checkout.php I changed this:

 

						success: function (data){
						$this.html(data);
						onePage.addCountryAjax($('select[name="country"]', $this), 'state', 'stateCol')
					},

 

to this

 

						success: function (data){
						$this.html(data);
						onePage.addCountryAjax($('select[name="country"]', $this), '', '')
					},

 

Sorry Frisser.. no luck.. i put the code of checkout.php here

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

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

 Copyright (c) 2003 osCommerce

 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);
 }

 //if(isset($_REQUEST['gv_redeem_code']) && tep_not_null($_REQUEST['gv_redeem_code']) && $_REQUEST['gv_redeem_code'] == 'redeem code'){
 if(isset($_REQUEST['gv_redeem_code']) && tep_not_null($_REQUEST['gv_redeem_code'])){
   $_REQUEST['gv_redeem_code'] = '';
   $_POST['gv_redeem_code'] = '';
 }


 if(isset($_REQUEST['coupon']) && tep_not_null($_REQUEST['coupon']) && $_REQUEST['coupon'] == 'redeem code'){
   $_REQUEST['coupon'] = '';
   $_POST['coupon'] = '';
 }

 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();
 }
 //BOF KGT
 if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true'){
   if(isset($_POST['code']))
   {
     if(!tep_session_is_registered('coupon'))
       tep_session_register('coupon');
     $coupon = $_POST['code'];
   }
 }
 //EOF KGT
 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 (isset($_GET['action']) && $_GET['action']=='process_confirm'){
  $action = 'process_confirm';
 }
 if (tep_not_null($action)){
  ob_start();
  if(isset($_POST) && is_array($_POST))
		$onePageCheckout->decode_post_vars();
  switch($action){
	  case 'process_confirm':
       echo $onePageCheckout->confirmCheckout();
     break;
     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 'setGV':
		  echo $onePageCheckout->setGiftVoucher($_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();
  if($action=='process')
     echo $content;
   else
     echo utf8_encode($content);
  tep_session_close();
  tep_exit();
 }

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

 function buildInfobox($header, $contents){
  global $action;
	$info_box_contents = array();
  if(isset($action) && tep_not_null($action))
		$info_box_contents[] = array('text' => utf8_encode($header));
  else
		$info_box_contents[] = array('text' => ($header));
  new infoBoxHeading($info_box_contents, false, false);

  $info_box_contents = array();

	if(isset($action) && tep_not_null($action))
		$info_box_contents[] = array('text' => utf8_encode($contents));
	else
		$info_box_contents[] = array('text' => ($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="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 (tep_session_is_registered('customer_id') ? 'true' : 'false');?>;
 onePage.showAddressInFields = <?php echo ((ONEPAGE_CHECKOUT_SHOW_ADDRESS_INPUT_FIELDS == 'False') ? 'false' : 'true');?>;
 onePage.showMessagesPopUp = <?php echo ((ONEPAGE_CHECKOUT_LOADER_POPUP == 'True') ? 'true' : 'false');?>;
 onePage.ccgvInstalled = <?php echo (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true' ? 'true' : 'false');?>;
 //BOF KGT
 onePage.kgtInstalled = <?php echo (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ? 'true' : 'false');?>;
 //EOF KGT
 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 addslashes(ENTRY_FIRST_NAME_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_FIRST_NAME_ERROR);?>';
	  break;
	  case 'billing_lastname':
	  case 'shipping_lastname':
		  rObj.minLength = <?php echo addslashes(ENTRY_LAST_NAME_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_LAST_NAME_ERROR);?>';
	  break;
	  case 'billing_email_address':
		  rObj.minLength = <?php echo addslashes(ENTRY_EMAIL_ADDRESS_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_EMAIL_ADDRESS_ERROR);?>';
	  break;
	  case 'billing_street_address':
	  case 'shipping_street_address':
		  rObj.minLength = <?php echo addslashes(ENTRY_STREET_ADDRESS_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_STREET_ADDRESS_ERROR);?>';
	  break;
	  case 'billing_zipcode':
	  case 'shipping_zipcode':
		  rObj.minLength = <?php echo addslashes(ENTRY_POSTCODE_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_POST_CODE_ERROR);?>';
	  break;
	  case 'billing_city':
	  case 'shipping_city':
		  rObj.minLength = <?php echo addslashes(ENTRY_CITY_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_CITY_ERROR);?>';
	  break;
	  case 'billing_dob':
		  rObj.minLength = <?php echo addslashes(ENTRY_DOB_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_DATE_OF_BIRTH_ERROR);?>';
	  break;
	  case 'billing_telephone':
		  rObj.minLength = <?php echo addslashes(ENTRY_TELEPHONE_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_TELEPHONE_NUMBER_ERROR);?>';
	  break;
	  case 'billing_country':
	  case 'shipping_country':
		  rObj.errMsg = '<?php echo addslashes(ENTRY_COUNTRY_ERROR);?>';
	  break;
	  case 'billing_state':
	  case 'delivery_state':
		  rObj.minLength = <?php echo addslashes(ENTRY_STATE_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_STATE_ERROR);?>';
	  break;
	  case 'password':
	  case 'confirmation':
		  rObj.minLength = <?php echo addslashes(ENTRY_PASSWORD_MIN_LENGTH);?>;
		  rObj.errMsg = '<?php echo addslashes(ENTRY_PASSWORD_ERROR);?>';
	  break;
  }
return rObj;
 }

$(document).ready(function (){
$('#pageContentContainer').show();
<?
 if(ONEPAGE_CHECKOUT_LOADER_POPUP == 'True')
 {
 ?>
 $('#ajaxMessages').dialog({
		shadow: true,
		modal: true,
		width: 400,
	  height: 100,
	  open: function (event, ui){
			$(this).parent().children().children('.ui-dialog-title').hide();
			$(this).parent().children().children('.ui-dialog-titlebar').hide();
			$(this).parent().children().children('.ui-dialog-titlebar-close').hide();
       }
		});
<?
 }
 ?>
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());
								 onePage.setShippingMethod($(':radio[name="shipping"]:checked'));
								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), '', '')
					},
					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);
  echo tep_image_submit('button_update_cart.gif', IMAGE_UPDATE_CART, 'name="updateQuantities" id="updateCartButton" style="display:none"');
 ?></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', '') . '</td>
		  <td class="main">' . tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'id="voucherRedeem"') . '</td>
		 </tr>
		</table>';
	}
	//BOF KGT
	if (MODULE_ORDER_TOTAL_DISCOUNT_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('coupon', '') . '</td>
		  <td class="main">' . tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'id="voucherRedeemCoupon"') . '</td>
		 </tr>
		</table>';
	}
	//EOF KGT
   ?></td>
   <td class="main" width="50%" align="right"><table cellpadding="2" cellspacing="0" border="0">
   </table></td>
  </tr>
 </table></td>
</tr>
<tr>
 <td style="border-bottom:1px dotted #cccccc;"><?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" style="border-bottom:1px dotted #cccccc; border-right:1px dotted #cccccc;">


   <?php
   echo TABLE_HEADING_BILLING_ADDRESS;

	$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="1" width="100%" cellspacing="0" cellpadding="2">
	 <tr id="logInRow"' . (isset($_SESSION['customer_id']) ? ' style="display:none"' : '') . '>
	  <td class="main">Hebt U al een Account? Log dan in via onderstaande button: <br><a href="' . fixSeoLink(tep_href_link(FILENAME_LOGIN)) . '" id="loginButton">' . tep_image_button('button_login.gif', IMAGE_LOGIN) . '</a></td>
	 </tr>
	</table><br>
	Bent u een nieuwe klant? Vul dan hieronder uw gegevens in<br><br>
	' . $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" style="border-bottom:1px dotted #cccccc;"><?php
   echo TABLE_HEADING_SHIPPING_ADDRESS;

	$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 style="border-bottom:1px dotted #cccccc;"><?php
	echo TABLE_HEADING_PAYMENT_METHOD;
	$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 style="border-bottom:1px dotted #cccccc;"><?php
	echo TABLE_HEADING_SHIPPING_METHOD;
	$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 style="border-bottom:1px dotted #cccccc;"><?php
	echo TABLE_HEADING_COMMENTS;
	$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>

               <?
         //----- BEGINNING OF ADDITION: MATC -----//
if(MATC_AT_CHECKOUT != 'false'){
require(DIR_WS_MODULES . 'matc.php');
}
//----- END OF ADDITION: MATC -----//
?>

</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"><?php if(ONEPAGE_CHECKOUT_LOADER_POPUP == 'False'){ ?><div id="ajaxMessages" style="display:none;"></div><?php } ?><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>
<?php
if(ONEPAGE_CHECKOUT_LOADER_POPUP == 'True')
{?>
<div id="ajaxMessages" style="display:none;">
<?
}?>
<!-- dialogs_eof//-->

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

Link to comment
Share on other sites

Hello everybody.

 

I am having lots of problems with starting working

all the time I receive (both firefox and IE) the NOSCRIPT code, (see bellow), I am unable to understand why

 

Do you have some ideas?

 

 

 

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

Link to comment
Share on other sites

btw,

my scenario is with STS and yes, I have seen the post with the instructions about how to use sts

I take you do have a java run time environment on your pc or a java small development kit

 

Steve

Link to comment
Share on other sites

Thank you.

 

After the whole afternoon reviewing the forum and reading, I have the module installed.

it looks all is working but "Login button" when "already have an account"

 

This is the piece of code that includes this, but the login button does nothing.

 

 

 

<td class="main" valign="top" width="50%">

<div class="infobox_heading">Dirección de factura</div>

<div class="infobox_content"><table class="infoBoxContents" width="100%" border="0" cellpadding="3" cellspacing="0">

<tbody><tr>

<td><img src="images/pixel_trans.gif" alt="" width="100%" border="0" height="1"></td>

</tr>

<tr>

<td class="boxText"><table width="100%" border="0" cellpadding="2" cellspacing="0">

<tbody><tr id="logInRow">

 

<td class="main">Already have an account? <a href="http://WWW.MIDOMAIN.COM/login.php" id="loginButton"><img src="includes/languages/espanol/images/buttons/button_login.gif" alt="Acceder" title=" Acceder " width="54" border="0" height="21"></a></td>

</tr>

</tbody></table><div id="billingAddress"><table width="100%" border="0" cellpadding="2" cellspacing="0">

<tbody><tr>

<td><table width="100%" border="0" cellpadding="0" cellspacing="0">

<tbody><tr>

<td class="main" width="50%">Nombre:</td>

<td class="main" width="50%">Apellidos:</td>

</tr>

 

<tr>

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