Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One Page Checkout Support


Guest

Recommended Posts

hi

 

i would like to replace the words Billing Address and Shipping Address with 2 images. Is it possible?

thanks

Hi,

 

Yes catalog/checkout.php

find

$header = TABLE_HEADING_BILLING_ADDRESS;

replace with

$header = '<img src="images/image.gif" />';

 

find

$header = TABLE_HEADING_SHIPPING_ADDRESS;

replace with

$header = '<img src="images/image.gif" />';

 

Steve

Link to comment
Share on other sites

Hi Monk,

 

Nope i'm not with them, just helping out where i can :)

email is kjavitz @ itwebexperts.com

just piece it together

 

Steve

 

Thanks.....i emailed them

 

I think the issue with the State Field not staying filled an a post error has to do with the following in the onepage_checkout.php file:

 

global $onepage;

if ($manualCid !== false){

$country = $manualCid;

$name = 'billing_state';

if ($key != 'billing'){

$name = $key . '_state';

}

}else{

$country = $_POST['cID'];

$name = $_POST['fieldName'];

if ($name == 'billing_state'){

$key = 'billing';

}else{

$key = 'delivery';

}

}

 

and then the

 

isset($onepage[$key]['state']) ? $onepage[$key]['state']

 

its not keeping the State set as a variable.

 

No idea how to fix it yet....but if anyone else has any ideas....would love to hear them

Link to comment
Share on other sites

Hi Steve,

It's version 2.2 RC2a that I'm using, and he's the first few lines of the code from catalog/checkout_shipping_address.php:

require('includes/application_top.php');

 

// if the customer is not logged on, redirect them to the login page

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

// if there is nothing in the customers cart, redirect them to the shopping cart page

if ($cart->count_contents() < 1) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

 

Liz

Hi Liz

 

you could try this after

// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
   tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }

if (isset($_SESSION['customer_id'])) {
echo tep_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br>');
}

 

Steve

Link to comment
Share on other sites

Hi,

 

I installed the lastest one page checkout. On shopping_cart page, if I clicked checkout then it takes me to login page. This is actually correct because it goes to checkout_shipping page first and check if (!tep_session_is_registered('customer_id')). If not then redirect to login page.

My question is when did the cusomter_id session did get registered. Which file made the session registered? How to fix this situation?

 

Thanks for any help in advance.

Link to comment
Share on other sites

Hi,

 

I installed the lastest one page checkout. On shopping_cart page, if I clicked checkout then it takes me to login page. This is actually correct because it goes to checkout_shipping page first and check if (!tep_session_is_registered('customer_id')). If not then redirect to login page.

My question is when did the cusomter_id session did get registered. Which file made the session registered? How to fix this situation?

 

Thanks for any help in advance.

Never mind. I forgot to change some of the files mentioned in the instruction. Sorry.

Link to comment
Share on other sites

Hi,

 

I have another problem which I just can't find a solution to, the two buttons, the redeem for the credit vouchers and if payment is not chosen the continue button. Once I pressed it it goes to a blank page. When version 1.08 came up it was all fine. But then I have done some modification to the website, now those two errors came back again.

 

I went thought the javascript check on chrome and it stops at

 

this.setModuleMethod('shipping', $button.val(), function (data){

 

and various other point in relation to shipping.

 

If I disabled shipping module, the error is gone.

 

Can someone tell me or have a solution to this problem. I tried going back through the modification that I have done, but no luck so far, any help would be much appreciated thanks in advance

Link to comment
Share on other sites

Hi,

 

I have another problem which I just can't find a solution to, the two buttons, the redeem for the credit vouchers and if payment is not chosen the continue button. Once I pressed it it goes to a blank page. When version 1.08 came up it was all fine. But then I have done some modification to the website, now those two errors came back again.

 

I went thought the javascript check on chrome and it stops at

 

this.setModuleMethod('shipping', $button.val(), function (data){

 

and various other point in relation to shipping.

 

If I disabled shipping module, the error is gone.

 

Can someone tell me or have a solution to this problem. I tried going back through the modification that I have done, but no luck so far, any help would be much appreciated thanks in advance

 

Hi

 

Go back to default files from the one page checkout download

 

Steve

Link to comment
Share on other sites

What issues are you having?

 

where is there is an error on the page submission - like a bad credit card entry - then the Billing State does not stayed filled in - but all the other values do.

The user then has to reselect the state to get the Payment Methods to show

Link to comment
Share on other sites

Hi there,

 

I'm having an issue right now with PayPal Standard (the return page) with a pretty fresh install. I couldn't find much on this error. Any suggestions would be awesome!

 

After making payment and returning to my site from PayPal, I get the following:

 

ERROR:

Fatal error: Call to a member function getAddressFormatted() on a non-object in /home/content/website/html/catalog/includes/modules/payment/paypal_standard.php on line 539

 

 

Here is the code:

536	/* One Page Checkout - BEGIN */
537	  $sendToFormatted = tep_address_label($customer_id, $sendto, 0, '', "\n");
538	  if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
539	      $sendToFormatted = $onePageCheckout->getAddressFormatted('sendto');
540	  }
541  
542	  $billToFormatted = tep_address_label($customer_id, $billto, 0, '', "\n");
543	  if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
544	      $billToFormatted = $onePageCheckout->getAddressFormatted('billto');
545	  }
546	/* One Page Checkout - END */

Link to comment
Share on other sites

Hi there,

 

I'm having an issue right now with PayPal Standard (the return page) with a pretty fresh install. I couldn't find much on this error. Any suggestions would be awesome!

 

After making payment and returning to my site from PayPal, I get the following:

 

ERROR:

Fatal error: Call to a member function getAddressFormatted() on a non-object in /home/content/website/html/catalog/includes/modules/payment/paypal_standard.php on line 539

 

 

Here is the code:

536	/* One Page Checkout - BEGIN */
537	  $sendToFormatted = tep_address_label($customer_id, $sendto, 0, '', "\n");
538	  if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
539	      $sendToFormatted = $onePageCheckout->getAddressFormatted('sendto');
540	  }
541  
542	  $billToFormatted = tep_address_label($customer_id, $billto, 0, '', "\n");
543	  if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
544	      $billToFormatted = $onePageCheckout->getAddressFormatted('billto');
545	  }
546	/* One Page Checkout - END */

Hi try adding this

before that code above

if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
     require('includes/classes/onepage_checkout.php');
}

 

Steve

Link to comment
Share on other sites

Hi try adding this

before that code above

if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
     require('includes/classes/onepage_checkout.php');
}

 

Steve

 

 

I tried that and got:

 

Fatal error: Cannot redeclare class osC_onePageCheckout in /home/content/Website/html/catalog/includes/classes/onepage_checkout.php on line 13

Link to comment
Share on other sites

Hi try adding this

before that code above

if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
     require('includes/classes/onepage_checkout.php');
}

 

Steve

 

steve - did you get a chance to look at the State error?

Everyone should be getting it

Link to comment
Share on other sites

where is there is an error on the page submission - like a bad credit card entry - then the Billing State does not stayed filled in - but all the other values do.

The user then has to reselect the state to get the Payment Methods to show

 

I am also getting this as well -

 

In detail: If you get an error when entering in Credit Card information, you need to re-enter your Billing Address info. For some reason, the State stays set, but all other fields are cleared. This causes the Billing Method box to stay hidden until you deselect and reselect your state in the Billing Address.

Link to comment
Share on other sites

Hi,

 

Yes catalog/checkout.php

find

$header = TABLE_HEADING_BILLING_ADDRESS;

replace with

$header = '<img src="images/image.gif" />';

 

find

$header = TABLE_HEADING_SHIPPING_ADDRESS;

replace with

$header = '<img src="images/image.gif" />';

 

Steve

 

 

thank you Steve....the thing is that i have modified the infoboxes and also removed the arrays which were showing those words on all store...and now the shipping address or billing address words are not showing at all for some reason...without the onepagecheckout the words would appear since i would add them in their respective files...any guidance would be appreciated.

thanks

Link to comment
Share on other sites

thank you Steve....the thing is that i have modified the infoboxes and also removed the arrays which were showing those words on all store...and now the shipping address or billing address words are not showing at all for some reason...without the onepagecheckout the words would appear since i would add them in their respective files...any guidance would be appreciated.

thanks

 

make a copy of the original infobox class and call it inforbox2

 

then use that - editing it to do what you want with the titles

Link to comment
Share on other sites

Hi,

 

Can somebody let me know where the functions pre_confirmation_check and confirmation are defined? I got errors and couldn't find them on my site. Wonder if there is some add on I don't have on our site. The error is pointing to the code in includes/classes/onepage_checkout.php.

 

$GLOBALS[$paymentMethod]->pre_confirmation_check();

$GLOBALS[$paymentMethod]->confirmation();

 

Thanks for any help in advance.

Link to comment
Share on other sites

Hi,

 

Can somebody let me know where the functions pre_confirmation_check and confirmation are defined? I got errors and couldn't find them on my site. Wonder if there is some add on I don't have on our site. The error is pointing to the code in includes/classes/onepage_checkout.php.

 

$GLOBALS[$paymentMethod]->pre_confirmation_check();

$GLOBALS[$paymentMethod]->confirmation();

 

Thanks for any help in advance.

 

includes/classes/payment.php

Link to comment
Share on other sites

includes/classes/payment.php

 

Thank you very much, Monk.

 

I just noticed that in the following line of code that $paymentMethod is empty. Where does $onepage['info'['payment_method'] get set? Which file and after what event(after clicking certain button)?

 

$paymentMethod = $onepage['info']['payment_method'];

 

Thanks for any help in advance.

Edited by bbyyaa
Link to comment
Share on other sites

Hi,

 

Where does $order_id get assigned for the one page checkout? My site (without using one page checkout) is in the checkout_process.php which is kind of late so it causes $order_id undefined error in the includes/classes/order.php.

 

Thanks for any help in advance.

Link to comment
Share on other sites

I tried that and got:

 

Fatal error: Cannot redeclare class osC_onePageCheckout in /home/content/Website/html/catalog/includes/classes/onepage_checkout.php on line 13

report the bug to itwebexperts is an email for reporting bugs in the insttal documentation

 

Steve

Link to comment
Share on other sites

Hi,

 

Where does $order_id get assigned for the one page checkout? My site (without using one page checkout) is in the checkout_process.php which is kind of late so it causes $order_id undefined error in the includes/classes/order.php.

 

Thanks for any help in advance.

Hi

 

It gets assigned in catalog\includes\classes\order.php as with normal OSC

 

Steve

Link to comment
Share on other sites

steve - did you get a chance to look at the State error?

Everyone should be getting it

I will have a look tonight, need to make sure i have 1.0.8 in my test store and not 1.0.7 due to me accidentally deleting the main store and not the backup one lol

 

Steve

Link to comment
Share on other sites

Hi everyone!

 

First of all, thank you for this great contribution and for everyone who continues to help on making it better.

 

I have read most of the posts, and either I missed it entirely or this has not been an issue with anyone, but I am unable to get this contribution to work with Table Rates. Is that a known issue? Does anyone have it working with table rates? I have several tables and that is all I use for calculation shipping!

 

This is my issue:

 

Whenever I try to go through checkout I don't get the "Shipping Method" table to display. Instead if I click on the "Continue" button at the bottom I get a pop-up window that says "Shipping Selection Error" with "You must select a shipping method." . . . . . Well duh! I would if I could get the shipping selection table to appear.

 

Any help on this issue will save some of the few hairs I have left :)

 

Thank you!

 

p.s. Issue is independent of browser or platform Mac or PC

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