Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7488587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:59:44+00:00 2026-05-29T14:59:44+00:00

When a user who is not logged in (anonymous) clicks Proceed to checkout ,

  • 0

When a user who is not logged in (anonymous) clicks Proceed to checkout, I want them the be taken to the login page. Then, after they’ve logged in or registered, they should be taken back to the checkout page.

I’m using onepage checkout, which has a login section you’re not logged in, but the powers that be don’t want this.

Initially, I started down the route of changing checkout.xml to have these values:

<customer_logged_in>

    <block type="core/text_list" name="checkout.cart.top_methods" as="top_methods" translate="label">
        <label>Payment Methods Before Checkout Button</label>
        <block type="checkout/onepage_link" name="checkout.cart.methods.onepage" template="checkout/onepage/link.phtml"/>
    </block>

</customer_logged_in>

<customer_logged_out>

    <block type="core/text_list" name="checkout.cart.top_methods" as="top_methods" translate="label">
        <label>Payment Methods Before Checkout Button</label>
        <block type="checkout/onepage_link_not_logged_in" name="checkout.cart.methods.onepage" template="checkout/onepage/link_not_logged_in.phtml"/>
    </block>

</customer_logged_out>

And link_not_logged_in.phtml:

$this->getLoginUrl();

but this did not even pull my new phtml file, and I’m not even sure this would take me to the checkout page after. Any articles or help greatly receieved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T14:59:44+00:00Added an answer on May 29, 2026 at 2:59 pm

    Go to your site’s admin. Click Stores. Go to Configuration -> Sales -> Checkout -> Checkout Options and set Allow Guest Checkout to “No”`

    edit

    Open app/design/frontend/base/default/template/checkout/onepage.phtml. Place the following code at the very top of the file:

       <?php
              if (!$this->helper('customer')->isLoggedIn()) {
                     header("Location: /customer/account/login/");
                     exit();
              }
       ?>
    

    Finally, install Custom Login Redirect at https://marketplace.magento.com/magehit-magehit-customloginredirect.html. Go to Admin -> System -> Configuration -> Customers -> Custom Login Redirect. Set it to checkout/cart

    All set! I tested this and it does what you have described. Normally I would go through all of the various steps to complete the revisions that are present in these Extensions but you can see that by going to app/code/local and viewing the extension code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My JSF application redirects any user who is not logged in to the login
i want to get the user who login now .. how to do this
I need to retrieve the login ids of the user who is logged onto
Suppose you want to show a message to a user who has logged in
Is there an error code for handling users who are not logged in user
I was wondering how i can force a user who has requested a page
I am trying to fetch the friends of the user (who is logged in
I have one user who gets an error message when he closes his browser.
I have a business user who tried his hand at writing his own SQL
I'm an emacs user who just started working for a new company where eclipse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.