Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

After Log In- need to go to PAYMENT options


jobywankanobi

Recommended Posts

Posted

Someone uses my store- adds to their cart- they go to purchase and it says "You must log in" or "You must create an account"

so the person does and when they press the log in button-

it goes back to their cart.

I want them to go straight to Checkout (payment_options.php) so they can keep moving forward in the direction they were already going. I am having trouble locating which folder the link is in.

 

 

Does this make sense?

 

FOR bonus points: How do I add a third option for people who want to buy something but dont want to fill out an account, or log in-

"Don't have an account" "don't want to log in" but "I want to purchase an item as a guest" option.

 

That one wins a one week cruise to Russia. :-)

Posted

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();

tep_redirect($origin_href);

} else {

tep_redirect(tep_href_link(FILENAME_DEFAULT));

}

 

change

tep_redirect($origin_href); to the page You want to redirect. // tep_redirect(chekoutpayment.php);

 

 

 

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.

Posted

You freakin rule man! Thanks!

 

 

 

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();

tep_redirect($origin_href);

} else {

tep_redirect(tep_href_link(FILENAME_DEFAULT));

}

 

change

tep_redirect($origin_href); to the page You want to redirect. // tep_redirect(chekoutpayment.php);

 

 

 

Satish

  • 2 weeks later...
Posted

Hey Satish- I tried this and It still doesn't work-- am I including the two backslashes in the code as well?

 

am I replacing

tep_redirect($origin_href);

 

with

 

// tep_redirect(checkout_shipping.php)

 

??

 

 

 

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();

tep_redirect($origin_href);

} else {

tep_redirect(tep_href_link(FILENAME_DEFAULT));

}

 

change

tep_redirect($origin_href); to the page You want to redirect. // tep_redirect(chekoutpayment.php);

 

 

 

Satish

Posted

// tep_redirect(checkout_shipping.php)

 

putting two backslashes will comment the code and it will not get executed.

 

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.

Posted

tep_redirect($origin_href); to the page You want to redirect

 

This is what needs to be done.

change $origin_href to the value you want to redirect.

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.

  • 1 month later...
Posted
tep_redirect($origin_href); to the page You want to redirect

 

This is what needs to be done.

change $origin_href to the value you want to redirect.

Satish

 

 

I tried this listing both in the login.php page:

 

tep_redirect(checkout_shipping.php);

and tep_redirect(shop/checkout_shipping.php)

 

and nothing happens. It still goes to shopping cart or i get an error.

Any thoughts?

  • 3 weeks later...
Posted
I tried this listing both in the login.php page:

 

tep_redirect(checkout_shipping.php);

and tep_redirect(shop/checkout_shipping.php)

 

and nothing happens. It still goes to shopping cart or i get an error.

Any thoughts?

 

 

Try Using File Names such as

 

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING));

 

I had to change the redirect in 2 places on my login page.

It's a Zoo in Here, Literaly...

Archived

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

×
×
  • Create New...