Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fast easy checkout


nana

Recommended Posts

  • Replies 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

i have chemo older version 1.4 i think also on my other site and it works fine.cname or rewrite?

let me get this

you are using create_account3.php

you click on the checkout and it takes you to create_account3.php if you have something in your cart

you enter your shipping information

do you enter your payment information at this stage?

you click on confirm order

you goto checkout_shipping.php

you pick your payment and shipping method

you click on continue

you do not get to checkout_confirmation.php

you get kicked back to login.php

is this the correct steps?

where do you see the address first?

where do you try to change the address?

can you try this on my test site to see if you have the same problem?

can you provide a url that i can see?

Edited by nana
Link to comment
Share on other sites

i have chemo older version 1.4 i think also on my other site and it works fine.cname or rewrite?

let me get this

you are using create_account3.php

you click on the checkout and it takes you to create_account3.php if you have something in your cart

you enter your shipping information

do you enter your payment information at this stage?

you click on confirm order

you goto checkout_shipping.php

you pick your payment and shipping method

you  click on continue

you do not get to checkout_confirmation.php

you get kicked back to login.php

is this the correct steps?

where do you see the address first?

where do you try to change the address?

can you try this on my test site to see if you have the same problem?

can you provide a url that i can see?

 

I use the create_account.php i think, the one which skips 2 steps instead of one I believe, but maybe wrong.

 

www.dneprimport.com/dog-store/

 

Here's steps I take:

a. Create account from main page ( It will give you an error, but account is created)

or

b. click on log yourself in, and create account then. It wont give error and log in automatically.

 

1. Log in with account

2. Add a product

3. Go to checkout

4. At this point, I enter payment information and its supposed to show adress here, but as you will see it just shows empty fields, also choose shipping here

5. Click on continue, and it kicks me back to login, when its supposed to go to confirmation

 

 

I think i confused my self a little, create account and see for your self.

Link to comment
Share on other sites

just another thought

create_account.php and create_account3.php are two diffrent files.

on top of the checkout_shipping.php in the top around line 24-25 you get to choose which one you want to use

switch back to create_account.php and see if you still have the same problem.

as far as back button in the browser add

if (tep_session_is_registered('customer_id')) {
         tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL'));
     }

after

  require('includes/application_top.php');

Link to comment
Share on other sites

just another thought

create_account.php and create_account3.php are two diffrent files.

on top of the checkout_shipping.php in the top around line 24-25 you get to choose which one you want to use

switch back to create_account.php and see if you still have the same problem.

as far as back button in the browser add

if (tep_session_is_registered('customer_id')) {
         tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL'));
     }

after

  require('includes/application_top.php');

 

 

That worked, kinda! :)

 

Now it gives me a TEP STOP error when I confirm order <_<

-0

insert into orders (customers_id, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_...................

 

As well as still giving a TEP STOP error when creating an account from main page.

 

But it now lets me into Order confirmation.

 

Doesnt save the adress either.

Edited by oriondw
Link to comment
Share on other sites

no ssl on the test site either

lets stay with this create_account.php in the mean time since this is very much like the original.

around line 210 to 215 comment out this line

tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())");

also look at your db and see if customers_default_address_id in table customers get filled out

Link to comment
Share on other sites

no ssl on the test site either

lets stay with this create_account.php in the mean time since this is very much like the original.

around line 210 to 215 comment out this line

tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())");

also look at your db and see if customers_default_address_id in table customers get filled out

 

 

done,

 

and

 

It gets filled with 0's. One entry has a 4.

 

edit:

 

Still gives following error when confirming order:

0 -

 

insert into orders (customers_id, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, date_purchased, orders_status, currency,..........

 

Tep stop

Edited by oriondw
Link to comment
Share on other sites

confirming the order is not a problem now i want to see the account first

can you ck when a non-account or an account is created the customers_default_address_id is filled as soon as you are finished with the create_account.php

Link to comment
Share on other sites

confirming the order is not a problem now i want to see the account first

can you ck when a non-account or an account is created the customers_default_address_id is filled as soon as you are finished with the create_account.php

 

 

Well, i finished create_account.php as soon as you posted corrections, took me just a second.

 

 

Im looking at database and its all 0's (defaults) for both Y's and N's

Link to comment
Share on other sites

you have to look in your database to see if the address is added as soon as you are finishing with create_account.php

the customers_default_address_id is the id number of the address as soon as it is entered in the address_book table and this is how it will show up in the confirmation page and other places

 

 

Right, I created an account, then right away checked DB, it added it

 

 

address_book_id is set as "1"

 

 

customers_default_address_is set to 0 for all accounts.

Edited by oriondw
Link to comment
Share on other sites

around line 200 to 215 you should have these lines

tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

 

$address_id = tep_db_insert_id();

 

tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'");

could you make sure you have them in the same order

do you have any modification to your customer_id

address_book_id or any other of your id that is no longer an integer and maybe you can try removing (int) from these lines and see if customers_default_address_id gets updated

Link to comment
Share on other sites

around line 200 to 215  you should have these lines

  tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

 

    $address_id = tep_db_insert_id();

 

    tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'");

could you make sure you have them in the same order

do you have any modification  to your customer_id

address_book_id or any other of your id that is no longer an integer and maybe you can try removing (int) from these lines and see if customers_default_address_id gets updated

 

 

They are around line 250 actually.

 

Let me empty, the tables, and try with (int) removed.

Link to comment
Share on other sites

i tried this with your checkout_shipping_address.php and it does not work either try changing this to a number instead i think that would work as a test only

were you able to add an account before installing te new create_account.php?

if yes you can look in the original file to see how this is handeled.

if not it might be a php version issue

which php version you are using?

Edited by nana
Link to comment
Share on other sites

i tried this with your  checkout_shipping_address.php and it does not work either try changing this to a number instead i think that would work as a test only

were you able to add an account before installing te new create_account.php?

if yes you can look in the original file to see how this is handeled.

if not it might be a php version issue

which php version you are using?

 

 

Not sure what you mean by "chaning this to a number"

 

Well yes, but it does create an account now. Even though it gives an error and doesnt remember adresses, the account is created, you can login into it.

 

PHP Version: 4.3.10 (Zend: 1.3.0)

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