Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

As guest adding to cart and going to checkout


porrier

Recommended Posts

Hello!

 

I am using oscommerce-2.2rc2a and have the problem that a guest lands

on the startpage, after adding a product to the cart und creating a new

account.

With my old osCommerce 2.2-MS2 I did not have this problem and

the customer was directed directly to the checkout after creating

a new accout.

 

Any help on this!

 

Kind regards

 

Andreas

Link to comment
Share on other sites

You could try this:

 

Login and Return to same page

 

It won't take them to checkout, but it should put them back on the page they were at.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Due to typing errors Your query is not clear.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Due to typing errors Your query is not clear.

 

Satish

 

OK, I try to rephrase.

 

I am using oscommerce-2.2rc2a and have the problem that a guest lands

on the startpage, after adding a product to the cart and creating a new

account.

With my old osCommerce 2.2-MS2 I did not have this problem and

the customer was directed directly to the checkout after creating

a new account.

 

A customer comes to the shop, adds a product to the cart and goes

to the till. So he must create an account and after that he doesn't come

to the checkout_process instead he comes to the startpage. Very

confusing. He must then explicitly call the cart to go to the checkout

again.

 

I hope there is a solution for this problem.

 

Kind regards

 

Andreas

Link to comment
Share on other sites

OK, I try to rephrase.

 

I am using oscommerce-2.2rc2a and have the problem that a guest lands

on the startpage, after adding a product to the cart and creating a new

account.

With my old osCommerce 2.2-MS2 I did not have this problem and

the customer was directed directly to the checkout after creating

a new account.

 

A customer comes to the shop, adds a product to the cart and goes

to the till. So he must create an account and after that he doesn't come

to the checkout_process instead he comes to the startpage. Very

confusing. He must then explicitly call the cart to go to the checkout

again.

 

I hope there is a solution for this problem.

 

Kind regards

 

Andreas

Perhaps check your sessions settings in Admin.

Link to comment
Share on other sites

You get directed back to the index most likely because of this code at the top of create_account_success.php

 

if (MODULE_PAYMENT_PAYPAL_EC_STATUS == 'True' || MODULE_PAYMENT_PAYPAL_WPP_STATUS == 'True') { $origin_href = tep_href_link(FILENAME_CHECKOUT_SHIPPING); } else { $origin_href = tep_href_link(FILENAME_DEFAULT);}

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Not if you used the latest version.

 

I installed it (latest version) with no problem.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

You get directed back to the index most likely because of this code at the top of create_account_success.php

 

if (MODULE_PAYMENT_PAYPAL_EC_STATUS == 'True' || MODULE_PAYMENT_PAYPAL_WPP_STATUS == 'True') { $origin_href = tep_href_link(FILENAME_CHECKOUT_SHIPPING); } else { $origin_href = tep_href_link(FILENAME_DEFAULT);}

 

There is no line contain PAYPAL or CHECKOUT_SHIPPING. What I found is this line

at the beginning:

 

if (sizeof($navigation->snapshot) > 0) {

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot

['get'], array(tep_session_name())), $navigation->snapshot['mode']);

$navigation->clear_snapshot();

} else {

$origin_href = tep_href_link(FILENAME_DEFAULT);

}

 

Andreas

Link to comment
Share on other sites

The code is different, but the result is the same...

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

There is no line contain PAYPAL or CHECKOUT_SHIPPING. What I found is this line

at the beginning:

 

if (sizeof($navigation->snapshot) > 0) {

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot

['get'], array(tep_session_name())), $navigation->snapshot['mode']);

$navigation->clear_snapshot();

} else {

$origin_href = tep_href_link(FILENAME_DEFAULT);

}

 

I forgot to say that the same happens when a guest adds something

to cart an then logs in to an existing account when he goes to the

checkout.

 

Andreas

Link to comment
Share on other sites

I'm using osCommerce 2.2-MS2, and with the contribution I mentioned correctly installed, you are taken to checkout if you:

 

Add to cart, click checkout, create account, click "continue".

 

Have you tested this with your version?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I'm using osCommerce 2.2-MS2, and with the contribution I mentioned correctly installed, you are taken to checkout if you:

 

Add to cart, click checkout, create account, click "continue".

 

Have you tested this with your version?

:unsure:

 

Yes, same behavior. I tested two versions:

 

With this one I get the known behavior landing on the startpage:

if ( (basename($PHP_SELF) != FILENAME_LOGIN) && (basename($PHP_SELF) != FILENAME_LOGOFF) && (!strstr($PHP_SELF,'create')) && (!strstr($PHP_SELF,'popup'))) {

$navigation->set_snapshot();

 

}

 

 

With this one I get an empty page:

if ( (basename($PHP_SELF) != FILENAME_LOGIN) && (basename($PHP_SELF) != FILENAME_LOGOFF) && (!strstr($PHP_SELF,'create')) && (!strstr($PHP_SELF,'popup')) {

 

$navigation->set_snapshot();

 

}

 

No luck! :(

 

I wonder if it has something to do with sessions. I turned

"Use Search-Engine Safe URLs (still in development)" on and off without success.

Sessions are created in the tmp directory inside the shop-directory

 

Andreas

Link to comment
Share on other sites

Yes, same behavior. I tested two versions:

 

With this one I get the known behavior landing on the startpage:

if ( (basename($PHP_SELF) != FILENAME_LOGIN) && (basename($PHP_SELF) != FILENAME_LOGOFF) && (!strstr($PHP_SELF,'create')) && (!strstr($PHP_SELF,'popup'))) {

$navigation->set_snapshot();

 

}

 

 

With this one I get an empty page:

if ( (basename($PHP_SELF) != FILENAME_LOGIN) && (basename($PHP_SELF) != FILENAME_LOGOFF) && (!strstr($PHP_SELF,'create')) && (!strstr($PHP_SELF,'popup')) {

 

$navigation->set_snapshot();

 

}

 

No luck! :(

 

I wonder if it has something to do with sessions. I turned

"Use Search-Engine Safe URLs (still in development)" on and off without success.

Sessions are created in the tmp directory inside the shop-directory

 

Andreas

Finaly found the problem. I just made a mistake in application_top.php adding

some contributions.

 

Thank you for your patience!

 

Andreas

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...