Jump to content
NimaP

One Page Checkout Support

Recommended Posts

Hello,

 

Great job on this wonderful contribution, its really useful!

 

i am having one problem with a payment method "Icepay", the problem is when the address fields and other fields are saved in the onepagecheckout, then there is no problem selecting and proccesing the payment through Icepay.

 

But when a new costumer tries to fill in the fields and selects Icepay as the method it gives an error on the next page...

 

this is the error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 1' at line 1

 

select countries_iso_code_2 from countries where countries_id = limit 1

 

[TEP STOP]

it would be great if you could have a solution for this, you can take a look at our test store on this url: http://okesite.com/catalog1/product_info.php?products_id=28

 

I hope you, or someone else will be able to help, thanks in advance.

 

Hi it seems i cant get the country code, set in one page chckout admin require login to be try and add account create success skip contribution http://addons.oscommerce.com/info/5690

ok its 2 page checkout now but must people will be happy with that

 

 

Steve

Share this post


Link to post
Share on other sites

Hi it seems i cant get the country code, set in one page chckout admin require login to be try and add account create success skip contribution http://addons.oscommerce.com/info/5690

ok its 2 page checkout now but must people will be happy with that

 

 

Steve

 

 

thanks steve, i really like ur script thats why i installed it, isnt there anny other option to get it working without requiring people to register themselfes, becoz i want to avoid the registering.

Edited by samie

Share this post


Link to post
Share on other sites

Thank you steve for your kindness.

 

But i must say i'm not content with this solution.The develloper took efford to run the script if have or dont have coupons installed/running.

I have not really look into the code but i noticed it.

 

It also wonders me that the develloper still releases updates ( i readed this entire 49 pages).

 

But also for you steve a big + , you really help people out with this contribution.

you could install the KGT discount if you want to, then you will have one page checkout and discount coupons i think this is the one http://addons.oscommerce.com/info/4269

 

Steve

Share this post


Link to post
Share on other sites

Thank's again steve.

 

I found the issue , al was related to the coupon code.

I tweaked the original code a little , and yes theoretical it would be best to install the coupon code contribution.

But as stated before , that isnt the real solution , somehow if i disable sts it works , excepts it still shows all abouth coupon codes, even if asked in the code for example:

if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true'){
if (MODULE_ORDER_TOTAL_INSTALLED)

 

indeed it offers support IF the coupon code is installed , but it isnt told you NEED it.

Yes the if don't work properly

 

you could try adding in checkout.php file

find

 define('CHARSET', 'UTF-8');

 

add after

define('MODULE_ORDER_TOTAL_COUPON_STATUS','false');

 

Steve

Edited by steve_s

Share this post


Link to post
Share on other sites

Hi,

 

Ok, I think I am just going to have to admit defeat with the remaining issues I have, and ask if anyone here may be able to help me find solutions to them:

 

1. I read earlier in the thread that there used to be a problem with the telephone number not being captured; I seem to be having a similar problem, but I am using the latest version of the code v1.11. If a customer account is created the telephone number IS successfully added to the customer record; however, the telephone number IS NOT added to the order record in the database. This is a big problem for us, as it means that the telephone number does not appear on our invoice and packing slips; does anyone else who is using this contribution see similar behaviour, and if so, have you found a fix?

 

2. I have noticed that when an order is created by this contribution, it is always given the stores' default order status; in my opinion this does not fit well with the standards provided by oscommerce. The code should use the administrator specified initial order status for the selected payment module. For example, on our stores we use an initial order status of "Pending [PayPal]" and "Pending [WorldPay]" for two of our payment modules so that we can investigate customer payment issues more efficiently; one page checkout ignores these order statuses, and just sets them with the store default of "Pending". Anyone know where the code is that needs to be changed in order to get this contribution to respect the administrator specified default order statuses during order creation?

 

Cheers,

Paul

Share this post


Link to post
Share on other sites

Hi,

 

Carried on battling away at it, and came up with this for the missing telephone number in the order object:

 

IN THE FILE "catalog/includes/classes/onepage_checkout.php" FIND THE FOLLOWING CODE INSIDE THE FUNCTION "processCheckout()":

 

$onepage['customer']['telephone'] = (isset($_POST['billing_telephone']) ? $_POST['billing_telephone'] : '');

 

ADD IMMEDIATELY BELOW IT:

 

$order->customer['telephone'] = $onepage['customer']['telephone'];

 

 

Cheers,

Paul

Share this post


Link to post
Share on other sites

Anyone else getting the "There was an error setting payment method, please inform IT Web Experts about this error." when you click the credit card as your payment option? Also I noticed when you click paypal as your payment option the credit card slot where your info goes disappears and when you click the credit card it doesn't pop back up unless you refresh the page.

Any update on this?

I also noticed that when an order comes through there is no information only a total and a date, when you click on the order the shipping and billing address are filled in but the customer, phone number, and email address fields are empty.

Share this post


Link to post
Share on other sites

Any update on this?

I also noticed that when an order comes through there is no information only a total and a date, when you click on the order the shipping and billing address are filled in but the customer, phone number, and email address fields are empty.

Hi

 

if your suing paypal standard a lot of people are having that problem, even without one page checkout

 

Steve

 

if your using cc.php payment mod that isnt supposed to be used for real transactions

Share this post


Link to post
Share on other sites

Another STS problem:

 

When set: Show Oscommerce Columns false ;

The original header shows up beneath the STS created header.

 

When set: Show Oscommerce Columns true;

 

The original header dissapears and all looks good , however , then the ajax (pop-up)login stops working , and it also not re-direct to the default login.

 

Beside this , this module seems just to work fine on my local dev server.

 

What also is a pitty , the javascripts showing many errors in FF webdev ( i can live with it, but it shouldnt be like that)

However, respect to the author.

Yes this is down to sts and the way it handles java, which is why i removed sts and went with bts a lot less hassle when using mods with java

 

Steve

Share this post


Link to post
Share on other sites

What version do you use for OPC, couse i installed this contribution Version 1.1, but the issue's you have i didnt seen + i readed the 49 pages before and didnt see anything related to what you encounter.

 

I use the latest version of OPC and CCGV. I may try installing one of the earlier versions to see what happens. It could be a caching issue or the way Internet Explorer 8 handles it.

 

Thanks for replying.

Share this post


Link to post
Share on other sites

Hello,

 

I've just installed this module and it's mostly functional. It's a great contribution, but I'm experiencing some minor issues:

 

With One Page Checkout enabled:

1. If the customer fills cart and enter all required information, everything goes fine except when they click the continue button they're returned to the checkout page. No order or information is posted in admin.

 

2. The email field remains filled with previous customer's email address. The next customer sees a 'Email address already exists, please login to use a different address' message box.

 

With One Page Checkout disabled: (OPC remains enabled and it seems to work better disabled in admin.)

1. If the customer fills the cart and enter all required information and click the continue button they're taken to the Create Account page. Once all the information is entered and click continue they're taken back to checkout.php the only thing that is pre-filled is the email field.

 

2. The email field remains filled with previous customer's email address. The next customer sees a 'Email address already exists, please login to use a different address' message box.

 

3. The order goes through, customers receive welcome email and all information goes where it should.

 

 

I got the coupon module CCGV working perfectly and I left One Page Checkout disabled in admin so orders can come through.

 

Thanks for any help given.

 

I would like to get this working so the customer can feel safe and have more control over the checkout process.

I wouldnt call these issues "minor issues".

Have you made any progress with this, and found out if it is related to this contribution?

 

//Fredrik

Share this post


Link to post
Share on other sites

I wouldnt call these issues "minor issues".

Have you made any progress with this, and found out if it is related to this contribution?

 

//Fredrik

Thanks for replying.

 

The email issue is resolved when the browser is closed and re-opened. I guess cookies or IP logging may have something to do with it.

 

With OPC enabled, the customer gets returned to the checkout page. With OPC disabled, the customer goes to the login page to either login or create account. I run OSCommerce RC2. I will try installing earlier version of OPC to see if code changes in the updates may have triggered the problem.

Share this post


Link to post
Share on other sites

I have just noticed that I have got a ?> under the left of the top nav bar. How can I get rid of this?

 

Can anybody help with this?

 

It is on the checkout.php page.

 

Thanks.

Share this post


Link to post
Share on other sites

Can anybody help with this?

 

It is on the checkout.php page.

 

Thanks.

Hi

 

I would suggest uploading catalog/checkout.php again

 

Steve

Share this post


Link to post
Share on other sites

The KGT module is not working. I get this error:

 

Fatal error: Call to undefined method stdClass::calculate_discount() 

 

The calculate_discount function is in discount_coupon.php (includes/classes). Have I missed something?

Share this post


Link to post
Share on other sites

Another STS problem:

 

When set: Show Oscommerce Columns false ;

The original header shows up beneath the STS created header.

 

When set: Show Oscommerce Columns true;

 

The original header dissapears and all looks good , however , then the ajax (pop-up)login stops working , and it also not re-direct to the default login.

 

 

Put this code before the </body> tag in the checkout.php.html

 

<!-- dialogs_bof //-->
<div id="loginBox" title="Log Into My Account" style="display:none;"><table cellpadding="2" cellspacing="0" border="0">
<tr>
 <td class="main">E-mail adres:</td>
 <td><input type="text" name="email_address"></td>
</tr>
<tr>
 <td class="main">Wachtwoord:</td>
 <td><input type="password" name="password" maxlength="40"></td>
</tr>
<tr>
 <td colspan="2" align="right" class="main"><a href="https://www.domain.com/password_forgotten.php">Password forgotten? Click here.</a></td>
</tr>
<tr>
 <td colspan="2" align="right"><img src="includes/languages/dutch/images/buttons/button_login.gif" width="128" height="24" id="loginWindowSubmit" border="0" alt="Inloggen" title="Inloggen"></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//-->

 

It's working for me!

Edited by Mark Evans

Share this post


Link to post
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//-->

Share this post


Link to post
Share on other sites

The KGT module is not working. I get this error:

 

Fatal error: Call to undefined method stdClass::calculate_discount() 

 

The calculate_discount function is in discount_coupon.php (includes/classes). Have I missed something?

re check install it should work with kgt discount

 

Steve

Share this post


Link to post
Share on other sites

I'm also getting "There was an error setting the payment method" message as soon as I click off of the Zip Code field. Never been able to get OPC to work, no matter what payment method I attempt to use.

Where did I go wrong?

Edited by vespa2112

Share this post


Link to post
Share on other sites

I'm also getting "There was an error setting the payment method" message as soon as I click off of the Zip Code field. Never been able to get OPC to work, no matter what payment method I attempt to use.

Where did I go wrong?

Hi

 

In includes/classes/onepage_checkout.php

 

find this code and comment uncomment for your version of oscommerce

function setPaymentMethod($method){
   global $payment_modules, $language, $order, $cart, $payment, $onepage;
   /* Comment IF statement below for oscommerce versions before MS2.2 RC2a */
   if (tep_session_is_registered('payment') && tep_not_null($payment) && $payment != $method){
     $GLOBALS[$payment]->selection();
   }

   if (!tep_session_is_registered('payment')){
     tep_session_register('payment');
   }
   $payment = $method;
   $onepage['info']['payment_method'] = $method;

   $order->info['payment_method'] = $GLOBALS[$payment]->title;

   //BOF Tell Paypal to pre-recorded Order again or the new options will not be applied
   switch($GLOBALS[$payment]->code)
   {
     case 'paypal_ipn':
     case 'paypal_standard':
     case 'worldpay_junior':
     break;
     default:
     /* 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();
     break;

 

Steve

Share this post


Link to post
Share on other sites

HELP HELP HELP

 

There is no description in paypal after I installed onepage checkout. I know a lot of people have the same problems and using Paypal-standard better description to correct it. I used it, and still there is nothing except it is a blank option for customers to type in? (I dont want that).

 

And other problem is tax. Example: product cost $22.95, instead of $22.95 + % tax, it is show up with 21.29 + % Tax

Share this post


Link to post
Share on other sites

STEVE!!!!

You are a freakin genius!!! Looks like only one more error left now... I am using the Moneris eSelect payment module API and I get this error as soon as I hit continue to complete the OPC:

Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0 in /oscomm/includes/modeuls/payment/monerisusmpg.php on line 205

Processing Order, Please Wait....

Here is the code behind that

 

    function confirmation() {
     global $HTTP_POST_VARS, $order;

     $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 
                           'fields' => array(array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_OWNER,
                                                   'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']),
                                             array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_NUMBER,
                                                   'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),
                                             array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_EXPIRES,
                                                   'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['usmpg_cc_expires_month'], 1, '20' . $HTTP_POST_VARS['usmpg_cc_expires_year'])))));

     return $confirmation;

   }

 

 

Hi

 

In includes/classes/onepage_checkout.php

 

find this code and comment uncomment for your version of oscommerce

function setPaymentMethod($method){
   global $payment_modules, $language, $order, $cart, $payment, $onepage;
   /* Comment IF statement below for oscommerce versions before MS2.2 RC2a */
   if (tep_session_is_registered('payment') && tep_not_null($payment) && $payment != $method){
     $GLOBALS[$payment]->selection();
   }

   if (!tep_session_is_registered('payment')){
     tep_session_register('payment');
   }
   $payment = $method;
   $onepage['info']['payment_method'] = $method;

   $order->info['payment_method'] = $GLOBALS[$payment]->title;

   //BOF Tell Paypal to pre-recorded Order again or the new options will not be applied
   switch($GLOBALS[$payment]->code)
   {
     case 'paypal_ipn':
     case 'paypal_standard':
     case 'worldpay_junior':
     break;
     default:
     /* 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();
     break;

 

Steve

Edited by vespa2112

Share this post


Link to post
Share on other sites

Hi Do you get that error on normal checkout, one page checkout disabled ? my php isnt that good but its a very minor issue a php freelancer could easily fix this

 

you could try the php curl bypass for that contribution and see if that helps i not alread installed

 

 

Steve

 

did you also try the php curl bypass for that mod

STEVE!!!!

You are a freakin genius!!! Looks like only one more error left now... I am using the Moneris eSelect payment module API and I get this error as soon as I hit continue to complete the OPC:

Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0 in /oscomm/includes/modeuls/payment/monerisusmpg.php on line 205

Processing Order, Please Wait....

Here is the code behind that

 

    function confirmation() {
     global $HTTP_POST_VARS, $order;

     $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 
                           'fields' => array(array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_OWNER,
                                                   'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']),
                                             array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_NUMBER,
                                                   'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),
                                             array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_EXPIRES,
                                                   'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['usmpg_cc_expires_month'], 1, '20' . $HTTP_POST_VARS['usmpg_cc_expires_year'])))));

     return $confirmation;

   }

Share this post


Link to post
Share on other sites

HELP HELP HELP

 

There is no description in paypal after I installed onepage checkout. I know a lot of people have the same problems and using Paypal-standard better description to correct it. I used it, and still there is nothing except it is a blank option for customers to type in? (I dont want that).

 

And other problem is tax. Example: product cost $22.95, instead of $22.95 + % tax, it is show up with 21.29 + % Tax

 

Hi i would check the includes/languages/xxx/modules/payments and make sure the defines match the ones in the payment module

 

Im not to sure why tax is doing that, do you have display prices with tax enabled also what should the tax % rate be?

 

Steve

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

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

Create an account

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

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×