Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One Page Checkout Support


Guest

Recommended Posts

Hi, for some reason when someone places an order using the one page checkout on my website, it comes through on our admin panel under "orders" 4 times, sometimes more....

 

Anyone know why this is happening?

 

Thank u in advance for your help! :)

Hi

 

I thought they had that fixed with version 1.10

 

Steve

Link to comment
Share on other sites

I am running tests on my test server and db, upgrading my stores. I have the test store almost done, but when I try to check out as an exsisting customer I get this error from the UPS XML, see screen shot below.

110206_Error.jpg

 

When I disable One Page Checkout UPS works fine. When in Onepage Checkout Why can't UPS XML find the Missing/Illegal ShipTo/Address/StateProvinceCode?

 

Any help out there?

Life Is Too Short,

Enjoy Your Coffee!

Pete

Link to comment
Share on other sites

Hi,

 

I have a somewhat simple question that I haven't been able to find a straight answer to in any of the forums so far. Is this One Page Checkout contribution compatible with PayPal Website Payments Pro? Is anyone using this and PayPal Pro together successfully?

 

Thanks,

 

Nick

Link to comment
Share on other sites

Hi, I hope there is someone who has more of a grasp on this php coding then I, as I can get this to work with the discount coupon module if I do some manuvering of files, so I think I am on to something. First I do not have the Gift Voucher Addon installed, so I removed that code at the bottom of includes/checkout/payment_method. Not 100% sure if that is revelant to this issue or not in general, but it was for me as I get errors.

 

O.K. regarding includes/classes/onepage_checkout I made the following changes:

 

Find:

 

//$order->info['applied_discount'] = $onepage['info']['applied_discount'];

//$order->info['subtotal'] = $onepage['info']['subtotal'];

 

and uncomment as follows:

 

$order->info['applied_discount'] = $onepage['info']['applied_discount'];

$order->info['subtotal'] = $onepage['info']['subtotal'];

 

Find:

 

//kgt - discount coupon

if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )

{

//$order->coupon->applied_discount = $applied_discount;

$order->info['total'] = $order->coupon->finalize_discount( $order->info );

$onepage['coupon'] = $order->coupon;

}

//end kgt - discount coupon

 

and uncomment the one line as follows:

 

//kgt - discount coupon

if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )

{

//$order->coupon->applied_discount = $applied_discount;

//$order->info['total'] = $order->coupon->finalize_discount( $order->info );

$onepage['coupon'] = $order->coupon;

}

//end kgt - discount coupon

 

Then find:

 

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

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

 

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

 

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

 

and change to:

 

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

 

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

 

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

 

Now for the tricky part. If I change this part of the code in includes/classes/onepage_checkout

 

//BOF KGT

if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon )){

//kgt - discount coupons

 

$applied_discount = 0;

$discount = $order->coupon->calculate_discount( $order->products[$i], $valid_products_count );

if( $discount['applied_discount'] > 0 ) $valid_products_count++;

$shown_price = $order->coupon->calculate_shown_price( $discount, $order->products[$i] );

//var_dump($shown_price);

$shown_price = $shown_price['actual_shown_price'];

} else {

$shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'];

 

}

$order->info['subtotal'] += $shown_price;

/**************

$shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'];

$order->info['subtotal'] += $shown_price;

**************/

//end kgt - discount coupons

//EOF KGT

 

To:

 

$shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'];

$order->info['subtotal'] += $shown_price;

 

and upload that file, the checkout page will come up, but will not acknowledge coupons.

 

Then if I upload the file with the last code back in and refresh the checkout page it works!! Also, I believe I had to be signed in as a customer for it to work. Sorry if this is not making sense as I was up late messing with this to try and figure it out so not much sleep between then and getting up to get kids to school. Anyway, I tried to move that bit of code lower on the page to see if I did that there might be something above it that loaded first without it it would be happy, but nothing I tried worked. Does anyone know if the coupon code on the page here would be able to be triggered by the customer clicking on a radio button that would do what I was doing? I do not understand this php coding very well, so I am not sure if what I have found can be taken by someone and actually made to work.

 

Feel free to contact me to discuss this as I have many hours in this endeaver and would love to get this working. The only problem I do have once I got it to work was that the coupon amount is being deducted from the subtotal right away and I really need it to be later and not effect the subtotal since most of the discounts I give are for shipping purposes, so I am hoping that someone will know how to adjust that part as well, but lets see if we can get it to work at all I guess.

 

Thanks,

Leslie

Link to comment
Share on other sites

I am running tests on my test server and db, upgrading my stores. I have the test store almost done, but when I try to check out as an exsisting customer I get this error from the UPS XML, see screen shot below.

110206_Error.jpg

 

When I disable One Page Checkout UPS works fine. When in Onepage Checkout Why can't UPS XML find the Missing/Illegal ShipTo/Address/StateProvinceCode?

 

Any help out there?

Hi

 

Is normal check out using zone id rather than zone name or is the zip WI 54767 rather than 54767

 

do a compare on addresses in both

 

 

Steve

Link to comment
Share on other sites

Hi, I hope there is someone who has more of a grasp on this php coding then I, as I can get this to work with the discount coupon module if I do some manuvering of files, so I think I am on to something. First I do not have the Gift Voucher Addon installed, so I removed that code at the bottom of includes/checkout/payment_method. Not 100% sure if that is revelant to this issue or not in general, but it was for me as I get errors.

 

O.K. regarding includes/classes/onepage_checkout I made the following changes:

 

Find:

 

//$order->info['applied_discount'] = $onepage['info']['applied_discount'];

//$order->info['subtotal'] = $onepage['info']['subtotal'];

 

and uncomment as follows:

 

$order->info['applied_discount'] = $onepage['info']['applied_discount'];

$order->info['subtotal'] = $onepage['info']['subtotal'];

 

Find:

 

//kgt - discount coupon

if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )

{

//$order->coupon->applied_discount = $applied_discount;

$order->info['total'] = $order->coupon->finalize_discount( $order->info );

$onepage['coupon'] = $order->coupon;

}

//end kgt - discount coupon

 

and uncomment the one line as follows:

 

//kgt - discount coupon

if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )

{

//$order->coupon->applied_discount = $applied_discount;

//$order->info['total'] = $order->coupon->finalize_discount( $order->info );

$onepage['coupon'] = $order->coupon;

}

//end kgt - discount coupon

 

Then find:

 

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

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

 

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

 

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

 

and change to:

 

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

 

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

 

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

 

Now for the tricky part. If I change this part of the code in includes/classes/onepage_checkout

 

//BOF KGT

if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon )){

//kgt - discount coupons

 

$applied_discount = 0;

$discount = $order->coupon->calculate_discount( $order->products[$i], $valid_products_count );

if( $discount['applied_discount'] > 0 ) $valid_products_count++;

$shown_price = $order->coupon->calculate_shown_price( $discount, $order->products[$i] );

//var_dump($shown_price);

$shown_price = $shown_price['actual_shown_price'];

} else {

$shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'];

 

}

$order->info['subtotal'] += $shown_price;

/**************

$shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'];

$order->info['subtotal'] += $shown_price;

**************/

//end kgt - discount coupons

//EOF KGT

 

To:

 

$shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'];

$order->info['subtotal'] += $shown_price;

 

and upload that file, the checkout page will come up, but will not acknowledge coupons.

 

Then if I upload the file with the last code back in and refresh the checkout page it works!! Also, I believe I had to be signed in as a customer for it to work. Sorry if this is not making sense as I was up late messing with this to try and figure it out so not much sleep between then and getting up to get kids to school. Anyway, I tried to move that bit of code lower on the page to see if I did that there might be something above it that loaded first without it it would be happy, but nothing I tried worked. Does anyone know if the coupon code on the page here would be able to be triggered by the customer clicking on a radio button that would do what I was doing? I do not understand this php coding very well, so I am not sure if what I have found can be taken by someone and actually made to work.

 

Feel free to contact me to discuss this as I have many hours in this endeaver and would love to get this working. The only problem I do have once I got it to work was that the coupon amount is being deducted from the subtotal right away and I really need it to be later and not effect the subtotal since most of the discounts I give are for shipping purposes, so I am hoping that someone will know how to adjust that part as well, but lets see if we can get it to work at all I guess.

 

Thanks,

Leslie

Hi Leslie

 

try changing this

 

//kgt - discount coupon
if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )
{
//$order->coupon->applied_discount = $applied_discount;
//$order->info['total'] = $order->coupon->finalize_discount( $order->info );
$onepage['coupon'] = $order->coupon;
}
//end kgt - discount coupon

 

to this

//kgt - discount coupon
if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )
{
$order->coupon->applied_discount = $applied_discount;
$order->info['total'] = $order->coupon->finalize_discount( $order->info );
$onepage['coupon'] = $order->coupon;
}
//end kgt - discount coupon

 

failing that i would suggest hiring a freelancer

 

Steve

Link to comment
Share on other sites

I just can not use the negotiated rates with onepage checkout.

Did that add any code to any checkout files if so you will need to find the code to add before or after

 

either catalog/checkout.php or catalog/includes/onepage_checkout.php

 

Steve

Link to comment
Share on other sites

Hi

 

First I would like to thank you for this contributions, its great. I'm having a few problems tho. I managed to get it to work with no errors i mean in the beginning. But I noticed something

 

1) when i press login (not using the one on the page) but the link that I have in my footer, it sometimes give me an error saying to contact the IT webdesigner or something. But actually takes me to the login page. Then when i log in, it returns to the checkout.php but the payment address and shipping address are blank instead of having my name (when i sign in using the sign in button on the checkout page). Its not really blank because the "," comma between the state and country shows up. I don't know where this issue is coming from but I also have the same issue with my PDF invoice. when i click on it, im facing the same problem. So assuming I ignore that the address is blank and click confirm order, it refreshes the page and the address appears perfeclty then i can click confirm again and move on. I dunno why. Also I notice the one page checkout (status update confrim button) is very slow. Meaning any changes I make on that page for example even using the (sign in button) provided to log in retruns me to the page fast and all but the confrim button takes mayb 20-30seconds to appear. maybe you have a solution to that

 

2) Also I tried to install this contribution : Order confirmation email text - Bestellbestätigung EMail (http://addons.oscommerce.com/info/3115) Text so i can edit the confirm emails that (don't even work with paypal standard) for some reason. I had to edit the checkout_process.php which checkout.php needs so now when I use a simple cash on delivery payment method which initially worked without the Order confirmation email text - Bestellbestätigung EMail Text contribution now gives me an error in the end as following:

 

1146 - Table 'bestmacd.eorder_text' doesn't exist

 

SELECT * FROM eorder_text where eorder_text_id = '1' and language_id = '1'

 

[TEP STOP]

 

I know this contribution has nothing to do with your contribution and I know that this error is not from your contribution because it wroked before fine. But I'm not a programmer and my knowledge is limited. What is that error, like what does it mean? I notice something eorder_text which is similar to files included in that contribution but I installed one of the SQL files provided and the other one wont go thru giving a similar error in my phpmyadmin. Here is the error.

 

Error

SQL query:

 

CREATE TABLE `eorder_text` (

 

`eorder_text_id` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',

`language_id` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '1',

`eorder_text_one` TEXT,

PRIMARY KEY ( `eorder_text_id, language_id` )

);

 

MySQL said:

 

#1072 - Key column 'eorder_text_id, language_id' doesn't exist in table

 

 

 

PLEASE ANYONE HELP. I WOULD BE 1MILLION TIMES THANKFUL FOR ANYONE THAT CAN PROVIDE SOME SUPPORT. Also to see the website in action please go to www.bestmacdiscounts.com and if you need me to create a test account please let me know.

 

THANKS

AE

Edited by aelalfy1989

Thank you in advance,

AE

Link to comment
Share on other sites

Hi

 

First I would like to thank you for this contributions, its great. I'm having a few problems tho. I managed to get it to work with no errors i mean in the beginning. But I noticed something

 

1) when i press login (not using the one on the page) but the link that I have in my footer, it sometimes give me an error saying to contact the IT webdesigner or something. But actually takes me to the login page. Then when i log in, it returns to the checkout.php but the payment address and shipping address are blank instead of having my name (when i sign in using the sign in button on the checkout page). Its not really blank because the "," comma between the state and country shows up. I don't know where this issue is coming from but I also have the same issue with my PDF invoice. when i click on it, im facing the same problem. So assuming I ignore that the address is blank and click confirm order, it refreshes the page and the address appears perfeclty then i can click confirm again and move on. I dunno why. Also I notice the one page checkout (status update confrim button) is very slow. Meaning any changes I make on that page for example even using the (sign in button) provided to log in retruns me to the page fast and all but the confrim button takes mayb 20-30seconds to appear. maybe you have a solution to that

 

2) Also I tried to install this contribution : Order confirmation email text - Bestellbestätigung EMail (http://addons.oscommerce.com/info/3115) Text so i can edit the confirm emails that (don't even work with paypal standard) for some reason. I had to edit the checkout_process.php which checkout.php needs so now when I use a simple cash on delivery payment method which initially worked without the Order confirmation email text - Bestellbestätigung EMail Text contribution now gives me an error in the end as following:

 

1146 - Table 'bestmacd.eorder_text' doesn't exist

 

SELECT * FROM eorder_text where eorder_text_id = '1' and language_id = '1'

 

[TEP STOP]

 

I know this contribution has nothing to do with your contribution and I know that this error is not from your contribution because it wroked before fine. But I'm not a programmer and my knowledge is limited. What is that error, like what does it mean? I notice something eorder_text which is similar to files included in that contribution but I installed one of the SQL files provided and the other one wont go thru giving a similar error in my phpmyadmin. Here is the error.

 

Error

SQL query:

 

CREATE TABLE `eorder_text` (

 

`eorder_text_id` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',

`language_id` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '1',

`eorder_text_one` TEXT,

PRIMARY KEY ( `eorder_text_id, language_id` )

);

 

MySQL said:

 

#1072 - Key column 'eorder_text_id, language_id' doesn't exist in table

 

 

 

PLEASE ANYONE HELP. I WOULD BE 1MILLION TIMES THANKFUL FOR ANYONE THAT CAN PROVIDE SOME SUPPORT. Also to see the website in action please go to www.bestmacdiscounts.com and if you need me to create a test account please let me know.

 

THANKS

AE

 

Hi AE

 

run this sql

 

CREATE TABLE eorder_text (
eorder_text_id TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',
language_id TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '1',
eorder_text_one TEXT,
PRIMARY KEY ( eorder_text_id, language_id )
)

 

Steve

Link to comment
Share on other sites

Hi Leslie

 

try changing this

 

//kgt - discount coupon
if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )
{
//$order->coupon->applied_discount = $applied_discount;
//$order->info['total'] = $order->coupon->finalize_discount( $order->info );
$onepage['coupon'] = $order->coupon;
}
//end kgt - discount coupon

 

to this

//kgt - discount coupon
if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) )
{
$order->coupon->applied_discount = $applied_discount;
$order->info['total'] = $order->coupon->finalize_discount( $order->info );
$onepage['coupon'] = $order->coupon;
}
//end kgt - discount coupon

 

failing that i would suggest hiring a freelancer

 

Steve

 

Hi Steve,

 

Thanks for your advice. I did try that, but it really throws some errors, so I changed it back.

 

I got this when I had it set without the // in place:

 

Warning: Invalid argument supplied for foreach() in /includes/classes/discount_coupon.php on line 413

 

Warning: array_sum() [function.array-sum]: The argument should be an array in /includes/modules/order_total/ot_discount_coupon.php on line 29

 

Plus I got the error setting payment contact us message as well.

 

I will keep messing with it when I have time or maybe someone else has ideas.

 

Thanks again,

Leslie

Link to comment
Share on other sites

Hi AE

 

run this sql

 

CREATE TABLE eorder_text (
eorder_text_id TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',
language_id TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '1',
eorder_text_one TEXT,
PRIMARY KEY ( eorder_text_id, language_id )
)

 

Steve

 

hey Steve that addressed my question haha. Man thats the difference between a programmer and me. lol can you address question 1 in my previous post? Also I haven't seen my success page befoe after installing your contribution but it shouldn't look like this below

screenshot2.jpg

 

Thanks

Thank you in advance,

AE

Link to comment
Share on other sites

hey Steve that addressed my question haha. Man thats the difference between a programmer and me. lol can you address question 1 in my previous post? Also I haven't seen my success page befoe after installing your contribution but it shouldn't look like this below

screenshot2.jpg

 

Thanks

Hi AE,

 

First off are you using STS, also try another browser other than safari and see what happens,

 

Steve

Link to comment
Share on other sites

Hi AE,

 

First off are you using STS, also try another browser other than safari and see what happens,

 

Steve

 

Hey Steve, no no I'm not using STS. Heard about it but don't know it. Also its not a browser issue because that page use to work.

 

Here is my code for that page. I think it has to do with the code that I placed for this contribution.

 

<?php
/*
 $Id: checkout_success.php,v 1.49 2003/06/09 23:03:53 hpdl Exp $

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

/* One Page Checkout - BEGIN */
 if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
     if (!tep_session_is_registered('onepage')){
         if (!tep_session_is_registered('customer_id')) {
             tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
         }
     }else{
         require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT);
         require_once('includes/functions/password_funcs.php');
         require('includes/classes/onepage_checkout.php');
         $onePageCheckout = new osC_onePageCheckout();
         $onePageCheckout->createCustomerAccount();
     }
 }else{
     if (!tep_session_is_registered('customer_id')) {
         tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
     }
 }
/* One Page Checkout - END */

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {
   $notify_string = 'action=notify&';
   $notify = $HTTP_POST_VARS['notify'];
   if (!is_array($notify)) $notify = array($notify);
   for ($i=0, $n=sizeof($notify); $i<$n; $i++) {
     $notify_string .= 'notify[]=' . $notify[$i] . '&';
   }
   if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);

   tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
 }

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

 $breadcrumb->add(NAVBAR_TITLE_1);
 $breadcrumb->add(NAVBAR_TITLE_2);

 $global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'");
 $global = tep_db_fetch_array($global_query);

/* One Page Checkout - BEGIN */
 if (tep_session_is_registered('customers_id')){
/* One Page Checkout - END */

 if ($global['global_product_notifications'] != '1') {
   $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");
   $orders = tep_db_fetch_array($orders_query);

   $products_array = array();
   $products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$orders['orders_id'] . "' order by products_name");
   while ($products = tep_db_fetch_array($products_query)) {
     $products_array[] = array('id' => $products['products_id'],
                               'text' => $products['products_name']);
   }
 }
?>
<!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; ?> - <?php echo strip_tags($breadcrumb->trail(' ª ')); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">

<!--[if IE 7]> <link href="ie.css" rel="stylesheet" type="text/css"> <![endif]-->
<!--[if IE 8]> <link href="ie8.css" rel="stylesheet" type="text/css"> <![endif]-->
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<div id="cidiKA" style="z-index:100;position:absolute"></div>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<!-- <tr>
   <td class="col_left">
<!-- left_navigation //-->
<?php //require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
<!--  </td>
<!-- body_text //-->
   <td width="100%" class="col_center">
 <div id="breadcrumb_wrap">
<ul id="breadcrumb">
       <li><a href="http://www.bestmacdiscounts.com" title="Home"><img src="images/home.png" alt="Home" class="home" /></a></li>
       <li><?php echo $breadcrumb->trail('   ')?></li>
</ul>
<div>
 <div id="ddtabs1" class="basictab">
<ul>
<li><!-- BEGIN ProvideSupport.com Text Chat Link Code -->
<div id="scdiKA" style="display:inline"></div><div id="sddiKA" style="display:none"></div><script type="text/javascript">var sediKA=document.createElement("script");sediKA.type="text/javascript";var sediKAs=(location.protocol.indexOf("https")==0?"https":"http")+"://image.providesupport.com/js/aelalfy1989/safe-textlink.js?ps_h=diKA&ps_t="+new Date().getTime()+"&online-link-html=Live%20Help&offline-link-html=Live%20Help";setTimeout("sediKA.src=sediKAs;document.getElementById('sddiKA').appendChild(sediKA)",1)</script><noscript><div style="display:inline"><a href="http://www.providesupport.com?messenger=aelalfy1989">Online Chat</a></div></noscript>
<!-- END ProvideSupport.com Text Chat Link Code --></li>
<li><a href="<?php echo tep_href_link('account.php')?>">Account</a></li>
<li><a href="<?php echo tep_href_link('shopping_cart.php')?>">Cart <?php echo $cart->count_contents()?><img src="images/cart.png" width="22" height="16" style="vertical-align:middle; border:0px;" /></a></li>
</ul>
</div>
</div>
</div>
<DIV style="margin-top:8px"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td>

<? tep_draw_heading_top_4();?>

	<table border="0" width="100%" cellspacing="4" cellpadding="2">
         <tr>
           <td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br>Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you. You may log into your account at www.paypal.com/ca to view details of this transaction.<br><br>
<?php
 if ($global['global_product_notifications'] != '1') {
   echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';

   $products_displayed = array();
   for ($i=0, $n=sizeof($products_array); $i<$n; $i++) {
     if (!in_array($products_array[$i]['id'], $products_displayed)) {
       echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';
       $products_displayed[] = $products_array[$i]['id'];
     }
   }

   echo '</p>';
 } else {
   echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;
 }
/* One Page Checkout - BEGIN */
 }
/* One Page Checkout - END */

?>
           <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td>
         </tr>
       </table>

    <table cellpadding="0" cellspacing="0" border="0">
 	<tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>
     	<tr><td align="right" class="main bg_input"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td></tr>
     	<tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>
 </table>


  <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 width="50%"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
           <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
         </tr>
      </table>

<? tep_draw_heading_bottom_4();?>

	</td>
     </tr>
<?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?>
   </table></form></td>
<!-- body_text_eof //-->
   </DIV>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footerori.php'); ?>
<!-- footer_eof //-->


</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Thank you in advance,

AE

Link to comment
Share on other sites

Hi Steve,

 

BTW my name is Ahmed, thanks for all your help if you had a paypal account, i would forsure donate something for all the help. You seem to really care about others and you do your best to help. I have noticed that several times even looking at this contribution forum area, you don't leave a question unanswered. Anyways I figured out what the issue was it has to do with

 

/* One Page Checkout - BEGIN */

if (tep_session_is_registered('customers_id')){

/* One Page Checkout - END */

 

/* One Page Checkout - BEGIN */

}

/* One Page Checkout - END */

 

That were added to that page. They screw up everything. Without them the page works perfectly. Even though that part of the code shouldn't effect anything it does. can you explain? i think its an important part of the code to ensure no hacking occurs

 

Thanks

AE

Thank you in advance,

AE

Link to comment
Share on other sites

Hi Steve,

 

BTW my name is Ahmed, thanks for all your help if you had a paypal account, i would forsure donate something for all the help. You seem to really care about others and you do your best to help. I have noticed that several times even looking at this contribution forum area, you don't leave a question unanswered. Anyways I figured out what the issue was it has to do with

 

/* One Page Checkout - BEGIN */

if (tep_session_is_registered('customers_id')){

/* One Page Checkout - END */

 

/* One Page Checkout - BEGIN */

}

/* One Page Checkout - END */

 

That were added to that page. They screw up everything. Without them the page works perfectly. Even though that part of the code shouldn't effect anything it does. can you explain? i think its an important part of the code to ensure no hacking occurs

 

Thanks

AE

 

Hi Ahmed,

 

that code just redirects them if not loged in or no session id

 

i have this code at the top of that file

// START: One Page Checkout v1.09
 /*
 // PREVIOUS CODE APPEARS WITHIN THESE COMMENTS!!!
// if the customer is not logged on, redirect them to the shopping cart page
 if (!tep_session_is_registered('customer_id')) {
   tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }
 */

 if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
   if (!tep_session_is_registered('onepage')){
     if (!tep_session_is_registered('customer_id')) {
       tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
     }
   } else {
     if (!tep_session_is_registered('customer_id')) {
       // there is no customer identifier in the session vars so we need to create an account
       require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT);
       require_once('includes/functions/password_funcs.php');
       require('includes/classes/onepage_checkout.php');
       $onePageCheckout = new osC_onePageCheckout();
       $onePageCheckout->createCustomerAccount();
     }
   }
 } else {
   if (!tep_session_is_registered('customer_id')) {
     tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
   }
 }
// END: One Page Checkout v1.09

 

which is slightly different to your one

 

i do have a paypal account pm me for it :)

 

Steve

Edited by steve_s
Link to comment
Share on other sites

Hello!

 

there is one problem: password confirmation don't work in "billing address". If I enter the passwords are not identical, the registration is still going on

Anyone knows how to fix this problem?

 

 

P.S. Thanks for this contribution!

Hi!

Here is a fix for this bug!

In file ../includes/checkout/checkout.js find

$('#checkoutButton').click(function() {
		return checkAllErrors();
	});

and replace with

function checkPasswords(){

if (!$('input[name="confirmation"]').is(':visible')){
     return true;  
 }

if(!$('input[name="password"]').val()){	
	return true;
}

if ($('input[name="password"]').val().length < 5){
	alert("Password minimum length 5 characters");
	return false;
}

  if($('input[name="password"]').val()!=$('input[name="confirmation"]').val()){
   alert('Passwords are not correct!');
   return false;
  }
  return true;
 }
$('#checkoutButton').click(function() {
if(!checkPasswords()){
	return false;
}
return checkAllErrors();
 });

That's all!

 

P.S. Thanks to Wing for this fix.

Link to comment
Share on other sites

The orders are missing the state in my admin area and in the order history. The invoice and packing slip too. Orders go through just fine, the state is in the email sent to customer, just not in the admin area or a customer order history. I have now installed order editor so I can fix it from there, until I find a perm fix.

 

Any ideas?

Life Is Too Short,

Enjoy Your Coffee!

Pete

Link to comment
Share on other sites

The orders are missing the state in my admin area and in the order history. The invoice and packing slip too. Orders go through just fine, the state is in the email sent to customer, just not in the admin area or a customer order history. I have now installed order editor so I can fix it from there, until I find a perm fix.

 

Any ideas?

Hi

 

Test this out on their demo site and if its still not in customer order history, report it as bug to itwebexperts.com

 

Steve

Link to comment
Share on other sites

I added the Gift Voucher / Coupon module. When I submit the coupon code it says "There was an error redeeming coupon. Please inform IT Web Experts about this error".

 

Then, if I refresh, it deducts the coupon.

 

Any idea why this happening??? I'd greatly appreciate any help.

 

Thanks!

Link to comment
Share on other sites

Hi Folks,

 

I'm having a bit of a glitch :(

 

I'm using sts in parallel with one page check out and when i try to sign in on the check out page, what SHOULD happen is that there is a login box appears, which does - except it's transparent, so whatever is written on the checkoutpage beneath where the popup box appears can still be seen.

 

So this:

if31ft.jpg

 

Becomes this:

htcxg4.jpg

 

Can anyone help - is this to do with coding elsewhere?

 

Thanks in advance!

Link to comment
Share on other sites

I added the Gift Voucher / Coupon module. When I submit the coupon code it says "There was an error redeeming coupon. Please inform IT Web Experts about this error".

 

Then, if I refresh, it deducts the coupon.

 

Any idea why this happening??? I'd greatly appreciate any help.

 

Thanks!

Hi

 

Remove this from

checkout.php

//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', 'coupon code') . '</td>
		  <td class="main">' . tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'id="voucherRedeemCoupon"') . '</td>
		 </tr>
		</table>';
	}
	//EOF KGT

 

Now see if you get that error

 

Steve

Link to comment
Share on other sites

Hi Folks,

 

I'm having a bit of a glitch :(

 

I'm using sts in parallel with one page check out and when i try to sign in on the check out page, what SHOULD happen is that there is a login box appears, which does - except it's transparent, so whatever is written on the checkoutpage beneath where the popup box appears can still be seen.

 

So this:

if31ft.jpg

 

Becomes this:

htcxg4.jpg

 

Can anyone help - is this to do with coding elsewhere?

 

Thanks in advance!

 

Hi do a search in bottom of theis thread for STS, you will find all you need to know to get this to work

 

Steve

Link to comment
Share on other sites

Hmmm... when I remove that... it takes the coupon box away - so nowhere to enter in the coupon code.

 

Hi

 

Remove this from

checkout.php

//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', 'coupon code') . '</td>
		  <td class="main">' . tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'id="voucherRedeemCoupon"') . '</td>
		 </tr>
		</table>';
	}
	//EOF KGT

 

Now see if you get that error

 

Steve

Link to comment
Share on other sites

Hi!

 

I have problem with language encoding. My DB is set to UTF-8. If I register through the One Page Checkout, then in DB "customers" I got "B?rzi??" instead of "Bērziņš". but if I register through Create Account.php all is OK!

 

Any help?

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