Results 1 to 10 of 241

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Login as Customer module

    hmm, I'm not sure I'm following you.

    What happens when you are in admin customers and click place order?
    it should bring you to /index.pgp?main_page=login_as_customer

    You should see the page that says are you sure you want to login as:

    With the customers information filled in.

    Then when you click the Place order button on here you should be sent to:

    /index.php?main_page=login&action=process

    and it should log you in.

    Based on the above information let me know what happens when you click on the place order from admin -> suctomers and then what happes when you click it from login_as customers

    -Sid

  2. #2
    Join Date
    Dec 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Login as Customer module

    When I click on the Place Order feature, I get redirected to a page as follows

    I see the page that says are you sure you want to login as:

    With the customers information NOT filled in. It is blank. I have tried several customers with the same problem.

    Any ideas what causes this?

  3. #3
    Join Date
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default Re: Login as Customer module

    Quote Originally Posted by vmmeup View Post
    What happens when you are in admin customers and click place order?
    it should bring you to /index.pgp?main_page=login_as_customer
    I click on "Place Order" : I arrive on index.php?main_page=login
    and the form is completely empty.

    But once I fill the email and password, I arrive on the customer welcome page, with the following text : "Are you sure you want to log in as:" !!


    Quote Originally Posted by kenwvs View Post
    When I click on the Place Order feature, I get redirected to a page as follows

    I see the page that says are you sure you want to login as:

    With the customers information NOT filled in. It is blank. I have tried several customers with the same problem.
    This is exactly the same problem I get...


    sanji

  4. #4
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Login as Customer module

    Kenwva & Sanji,

    Do both of you have register_globals = off? I haven't been able to test this on a test system with register_globals=off. The fact that you both don't see any of the data leads me to beleive that this could be the problem.

    The thing is even if you were do have register_globals=off I'm posting the data from the admin -> customers page to the login_as_customer page and accessing the data using $_post['variable'] so it doesn't make any sense that it would be the register_globals, but I can't be sure as I haven't tested on a server with them off.

    Sanji,

    Weren't you getting the variable data with an older version of the script, but just having the SecurityToken problem?

  5. #5
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Login as Customer module

    If anyone has a server that they are 100% msure has register_globals=off and has tried this script on a stock ZenCart install I would appreciate any feedback as to weither it worked or not.

  6. #6
    Join Date
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default Re: Login as Customer module

    Quote Originally Posted by vmmeup View Post
    Kenwva & Sanji,

    Do both of you have register_globals = off? I haven't been able to test this on a test system with register_globals=off. The fact that you both don't see any of the data leads me to beleive that this could be the problem.
    Checking from admin/server_info.php, I can confirm that I have register_globals = ON. This should then not be the issue...


    Quote Originally Posted by vmmeup View Post
    Sanji,

    Weren't you getting the variable data with an older version of the script, but just having the SecurityToken problem?
    Yes, I was, but the script has been modified a lot since then. At that time, it was using a file in the root directory of ZC. And I confirm that data - except for the SecurityToken - where passed properly...


    sanji

  7. #7
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Login as Customer module

    hmm that is very strange because the varianles haven't changed.. the only difference is I had to access them using $_POST['variable'] instead of just the variable itself. When I tried the original login_as_customer file as part of zen it would not get the variables until I used the $_POST.

    I had to bring it in to ZEN so that ZEN would generate the SecurityToken and add it to the session so that I could grab it and use it to login.

    I honestly have no idea why you wouldn't be getting any of the variables now. Is it possible for you to setup a duplicate of your site without any important information for testing on to see if we can figure this out?

    You are defintaly using the 1.3.8 version I posted?

  8. #8
    Join Date
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default Re: Login as Customer module

    Yes, absolutely, I am now using 1.3.8a and used the 1.3.8 version of your contribution.

    If you don't mind checking, I indeed will set up a mirror copy of the site and give you full admin access, so you can see by yourself. I just need 1/2 days to get that ready. Will contact you by pm...

    Thanks,

    sanji

  9. #9
    Join Date
    Dec 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Login as Customer module

    Quote Originally Posted by vmmeup View Post
    Kenwva & Sanji,

    Do both of you have register_globals = off? I haven't been able to test this on a test system with register_globals=off. The fact that you both don't see any of the data leads me to beleive that this could be the problem.
    I am able to confirm that I have register_globals turned on.

    I was able to rectify the problem by reinstalling the files. I did have it working, then I changed the admin password and it quit working. Once I reinstalled all of the files (except the master password file) it is working properly again. I am not sure what causes this, but I am happy none the less that it is working.

    Thanks for the help

    Ken

  10. #10
    Join Date
    May 2005
    Posts
    539
    Plugin Contributions
    0

    Default Re: Login as Customer module

    Quote Originally Posted by sanji View Post
    I click on "Place Order" : I arrive on index.php?main_page=login
    and the form is completely empty.

    But once I fill the email and password, I arrive on the customer welcome page, with the following text : "Are you sure you want to log in as:" !!




    This is exactly the same problem I get...


    sanji
    I was getting the same thing and seemed to solve the problem by using the full syntax for php in the i.e. <?php not just <?

    This might help

 

 

Similar Threads

  1. MultiSite Module Support Thread
    By Gerome in forum All Other Contributions/Addons
    Replies: 2246
    Last Post: 29 Dec 2025, 10:13 AM
  2. v150 Admin New Customer [Support Thread]
    By lhungil in forum All Other Contributions/Addons
    Replies: 34
    Last Post: 4 Nov 2016, 06:20 AM
  3. v150 Minimum Customer Account Information - Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 87
    Last Post: 30 Nov 2015, 04:00 PM
  4. PC Configurator Module [Support Thread]
    By lebrand2006 in forum All Other Contributions/Addons
    Replies: 254
    Last Post: 22 Aug 2012, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg