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

  • SEARCH
  • Home
  • 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 6585469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:40:04+00:00 2026-05-25T16:40:04+00:00

I’m trying to make a loose connection between a Magento installation and another application.

  • 0

I’m trying to make a loose connection between a Magento installation and another application. In particular, there are only two things I care about at the moment – customers and their purchases. What I edited thus far is the file app/code/core/Mage/Customer/controllers/AccountController.php – function createPostAction() is augmented to send the customer’s info to the other application. Another modification was made in success.phtml file to send out the details of the order once it’s placed.

The problem I’m having is that if a user just places items in a cart (as a guest) and then registers as part of the checkout process – the customer’s record in the second application is never created. It only works if the user first explicitly registers, and then checks out separately.

I suppose AccountController.php may be the wrong file to modify to achieve my desired result, which file should I use instead?

Edit: I am not including the code samples, as it’s largely irrelevant – the problem is not with the code, but with the fact that it’s apparently in the wrong place. Where would be a good place to add custom code which should run when a new customer is registered?

  • 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-25T16:40:04+00:00Added an answer on May 25, 2026 at 4:40 pm

    This is a bit tricky to do cleanly in Magento but possible to achieve. I’ve had the same task a while ago and solved using observers

    First you need to create an observer which listens controller_action_postdispatch event:

    <events>
        <controller_action_postdispatch>
            <observers>
                <yourmodule_anything>
                    <type>singleton</type>
                    <class>yourmodule/observer</class>
                    <method>someMethod</method>
                </yourmodule_anything>
            </observers>
        </controller_action_postdispatch>
    </events>
    

    Then in your observer method you can check action names as follows

    <?php
    $action = $observer->getEvent()->getControllerAction();
    if ($action->getFullActionName() == 'customer_account_createpost') {
        if (Mage::getSingleton('customer/session')->isLoggedIn()) { // this check allows to determine if customer session was created which means successfull registration
        }
    }
    

    Something similar can be done for checkout registration. In general observers are great (and proper) way to extend Magento functionality. Read more about them here

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I am trying to loop through a bunch of documents I have to put

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.