Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PWA straight to checkout


oops123

Recommended Posts

The "redirect" to the start checkout page is set in checkout_shipping.php

Link to comment
Share on other sites

In checkout_shipping.php you can set which page the customer is sent to when trying to checkout.

 

Default goes to login.php

 

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

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

}

 

If you want to skip the login page and go straight to the create account page, you can use this instead:

 

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

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

}

 

If you use the latest PWA version and want to go straight to the PWA page, you can use this instead:

 

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL'));

}

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