-
Login as Customer module [Support Thread]
NOTE: This sort of feature is already built-in since Zen Cart v1.5.7, no plugin required.
Hello I have developed a module that allows you to login as a customer from the backend of zencart to place an order. A button apperars under customers that says place order and it will automatically open a new windows and talke you to the frontside on Zen and log you in as that customer. Hope you enjoy and if you have any suggestions please feel free to let me know.
It's available in the downloads section. Download: Admin login as customer plugin
It can be demoed here. http://www.vmitek.com
-
Re: Login as Customer module
Actually there already is a mod that does this too (master password)
-
Re: Login as Customer module
This uses Master Password, the difference is you don't have to lookup the customer on the back end copy their email address, then go to the front end to login. You just select the customer and click place order.
-
Re: Login as Customer module
Hi,
You're mod appears to rely on register_globals being switched on. 99% of Zen Cart users will have it switched off because it is a security risk.
A warning about it being switched on should have appeared when you installed your demo version of Zen Cart.
Regards,
Christian.
-
Re: Login as Customer module
Thanks for the heads up. I will fix that. I unfortuanlty don't have that choice because my hosting provider has it on and I deployed Zen from cpanel using fantasico which I would assume is also the case with alot of Zen users. I think there are alot that use this way of deploying and probably also have globals on, but it is better to not use....thanks for the heads up.
-
Re: Login as Customer module
Updatred version that allows for SSL support if you have zen configured to use SSL support admin as well as front end.
See downloads area.
-
Re: Login as Customer module
Hello everybody:
I installed this contibucion on a page proof and everything right in the installation but when I asked to place order, go to a page that says 404, Not found.
Someone knows it can happen or if i did something wrong.
Another wondered if someone knows this contribution is compatible with Super Orders 2.
Greetings.
Merry Christmas
-
Re: Login as Customer module
There is a file that get's copied to the root of your sen installation. The name is login_as_customer.php. In that file you will find a line of code as follows:
<form name='form1' action='/index.php main_page=login&action=process' method='post'>
If you have installed zen into a sub-directory you need to edit this line of code to incluse the sub directory before the index.php.
If you had you Zen installation like so http://www.domain.com/test/ then the line would look like the following:
<form name='form1' action='/test/index.php main_page=login&action=process' method='post'>
If you would like to see a demo of this mod you can go to http://www.vmitek.com/zencart/ I also have other mods installed on this demo site. You can find a complete list of mods on the site.
-vmmeup
-
Re: Login as Customer module
Thanks for this mod. I would suggest to underline the necessity to change the <form name='form1' action='/index.php main_page=login&action=process' method='post'> line to reflect the exact path in the readme file - I was blocked there for a while.
Still, I have a problem: when I click on the Place Order button, I arrive on the login page, but get a "Security Error". This is a 1.3.8 feature, so I wonder, is this mod compatible with the latest version of ZC? If yes, do you know where this problem could come from? Login with master password is working fine...
sanji
-
Re: Login as Customer module
Instead of hard-coding
PHP Code:
<form name='form1' action='/index.php main_page=login&action=process' method='post'>
you should use the php constant DIR_WS_CATALOG which will automatically account for installation in a subdirectory.
Something like
PHP Code:
<form name='form1' action='<?php echo DIR_WS_CATALOG;?>index.php main_page=login&action=process' method='post'>
Not sure if it needs to be stated a little differently, but that is the constant to use.
Perhaps
PHP Code:
<?php echo '<form name="form1" action="' . DIR_WS_CATALOG . 'index.php main_page=login&action=process" method="post">';?>
-
Re: Login as Customer module
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')) . zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
-
Re: Login as Customer module
Right, that's the real answer to the problem! :-)
-
Re: Login as Customer module
Not working for me...
I changed
Code:
<div align="center"><form target="_blank" name="login" action="' . $login_as_customer . '" method="post">
<input type="hidden" name="firstname" id="firstname" value="' . $c_firstname . '">
<input type="hidden" name="lastname" id="lastname" value="' . $c_lastname . '">
<input type="hidden" name="email_addr" id="login-email-address" value="' . $email_address . '">
<input type="hidden" name="password" id="login-password" value="' . $pass . '">
<input type="image" src="' . $place_order_button . '">
</form></div>
to
Code:
<div align="center"><form target="_blank" name="login" action="' . $login_as_customer . '" method="post">
<input type="hidden" name="firstname" id="firstname" value="' . $c_firstname . '">
<input type="hidden" name="lastname" id="lastname" value="' . $c_lastname . '">
<input type="hidden" name="email_addr" id="login-email-address" value="' . $email_address . '">
<input type="hidden" name="password" id="login-password" value="' . $pass . '">
<input type="hidden" name="securityToken" id="securityToken" value="' . $_SESSION['securityToken'] . '">
<input type="image" src="' . $place_order_button . '">
</form></div>
But still get the same problem...
Any idea?
sanji
-
Re: Login as Customer module
This is wonderful. Thank you very much for your help.:yes:
Anybody know if are there any contribution i can modify existences in stock whitout have to edit de article like an erp.
Happy new year to every body.
-
Re: Login as Customer module
As I said for me, this is NOT working, so if you have any suggestion...
sanji
-
Re: Login as Customer module
I have done this in my new version1.2 which should be availble from the downloads soon. I have it available for download off of the demo site located at http://www.vmitek.com/zencart/
SSL Demo Site located at http://www.virgintattoos.com/zencart/
Thanks for the suggestion, I was planning on doing that, just wanted to do some testing before I released it.
-
Re: Login as Customer module
Sanji what version on ZenCart are you running? I have yet to test with the latest 1.3.8, but I made some mods that might help you if you are running 1.3.7. I hope to test and tweak for 1.3.8 soon.
My latest version 1.2 should be available for download soon, but you can download it at the demo site http://www.vmitek.com/zencart/
Please let me know if this works for you.
-
Re: Login as Customer module
Hi vmmeup,
I am running the latest 1.3.8a. Obviously, the problem comes from the $_SESSION['securityToken'] information, but I couldn't pass it to the login page so far - and that's why it is not working directly, I get the Security Error message. If I just click again on "login" - the password is already filled in - then the connection proceeds...
sanji
-
Re: Login as Customer module
If any has trieds this on a server with register globals = 0ff please let me know I have no control over this with my provider and cannot test but would like to code it to work if they are on or off. If it doesn't work any guidance as to how I can change the code to allow for it to work woth them off would be appreciated as well.
Thanks,
Sid
-
Re: Login as Customer module
Sanji,
I think I can fix that.....I'm in the process of setting up a 1.3.8 site so I will tweak to get it to work.....
Thanks,
Sid
-
Re: Login as Customer module
OK, I installed the latest 1.2 version. But the problem remains the same, you need to pass this securitytoken. Indeed, customers.php was heavily midified for 1.3.8a, and even with all changes, this problem stays.
Hope you can help,
sanji
PS: your upload 1.2 contains lots of hard coded stuff, like the name of the folder in login_as_customer.php, and all texts. It would be great to use the language files for people using other languages...
-
Re: Login as Customer module
Ok, also please note that I accidentially used get instead of post for the form variables and have reuploaded it with the proper changes. I plan to put stuff in the language files once I get a fully tested and verified working version for both 1.3.7 & 1.3.8 as well as for the register globals on and off.
I have fixed the sub directory issue by using HTTP_SERVER and HTTPS_SERVER as well as DIR_WS_CATALOG & DIR_WS_HTTPS_CATALOG.
I did test passing the session security token through on 1.3.8 but I think the problem is that the session data is different from the admin side to the front side so the securityToken is not valid from the admin to the Catalog side. I believe that after the error a front end securityToken is generated and is used that is why once you click login a second time you are able to login, but that is just what I think is happening, not 100% at this point but will be doing more research.
I am open to any suggestions on ways to improve my code, I'm new at this and haven't coded PHP is a few years so I know it's probably pretty ugly. I plan to streamline it as much as I can, but needed the mod so i got it working, on 1.3.7 anyway and now I want to streamline and get working properly on 1.3.8.
Thank You,
Sid Smith
-
Re: Login as Customer module
Yes, I corrected already that post/get stuff.
Indeed, I tried to raise that token question here : http://www.zen-cart.com/forum/showpo...4&postcount=64
Obviously, there is a problem with it, but I don't really understand how this token is generated...
For the code, I would mostly suggest to use the existing language datafiles as much as possible, for name, address, email, location, country and so on...
sanji
-
Re: Login as Customer module
Sanji,
I solved the securityToken problem. I just need to clean up some code and I will package it up and post for you to try. It will not have the language file changes yet, but I will be working on soon. Just wanted to get it working for you.
Thanks,
Sid
-
Re: Login as Customer module
OK the Admin Login as Customer module now work with Zencart 1.3.8a. I have it up for download at http://www.vmitek.com/zencart/ as V1.3 and will be submitting to the Downloads section of the ZenCart Site.
I will have a ZenCart 1.3.8 Demo site up and online within the next day or so for both SSL and Non-SSL version. I am also continuing to revise the code for this to make it more streamlined.
Things I will be working on:
Using Language Files for Static Data
Tweak the cosmetics to make it easier on the eyes
I need to get the state to pass over to the module. (apperantly there is more to the state then meets the eye so I have to do some digging to get the state to show up.)
Steamiling the code to minimize the variables I am using.
Adding Support to Flag Disabled Customers (It will allow you to login as a customer even if they are disabled. )
Adding Customer Memo Support.
Please let me know how it works for you.
-
Re: Login as Customer module
I noticed I forgot to include something in the README for the 1.3.8 version.
You need to rename a folder before you copy it in.
includes/templates/YOUR_TEMPLATE_FOLDER/templates
rename YOUR_TEMPLATE_FOLDER to your template folder name.
-
Re: Login as Customer module
Sorry, but still a problem: the form and submit button in customers.php is correct, the master password is indicated, but when I click on the Place Order link, I get redirected directly to the index.php?main_page=login page, with no information in the email and password fields...
Indeed, if I directly type the following URL :
index.php?main_page=login_as_customer
I always finish on that page:
index.php?main_page=login
The tpl_login_as_customer_default.php file has been placed in both my template and the default_template...
Thanks,
sanji
-
Re: Login as Customer module
Do you have register globals = off? This is the only thing I can think of at this point. I have it working perfectly on my 1.3.8a demo site, the only thing is I have register globals = on so I cannot test with it off. I'm assuming you are using the SSL version I published, I will double check the code including with that package to be sure that I included the right files.
I also don't totally understand what you are trying to describe as far as what is happening. If you can try and explain a little better maybe I can figure out what is going on.
Thanks,
Sid
-
Re: Login as Customer module
Ok so here is what I noticed. On a non SSL 1.3.8 site everything works fine, not a problem at all you can check it out at http://www.vmitek.com/zencart138/admin/ User: Demo Pass: demo1
On my SSL test site something weird is happening. When I click place order I go to the confirmation page then when I go ahead and click Place Order I get a blank page. If I click refresh everything is fine....not sure why this is happehing. I modified my code to detect if SSL is turned on or off, so I am using the exact same code on both sites. The whole blank page thing is really confusing me.
-Sid
-
Re: Login as Customer module
I just noticed on my demo SSL 1.3.8 site even if I manually try to login as a customer I get a blank page. This is strange. I'm not sure if this is an issue anyone else has been having, but I'm going to uninstall and reinstall 1.3.8 on my SSL Demo site and try again to see if I get the same problem.
:oops:
From what I'm seeing I'm confident the code will work I did realize I might not have included a folder needed for this to work in my package. You need to create a folder /includes/modules/pages/login_as_customer there doesn't need to be anything in it, but without it I get 404 error. I will re-install my SSL test site, re-test and re-package up for you to try it. But create that folder and let me know if that helps you.
-Sid
-
Re: Login as Customer module
A blank page on making a customer or checking out has a few causes ...
1 you have a bad upload of files
2 your secure URL is incorrect in the configure.php files in:
/admin/includes/configure.php
/includes/configure.php
You can try to go directly to your secure URL and see if it works ... if not it needs to be corrected ...
3 You have somehting wrong with your template and should switch to Classic to help rule that out ...
4 Or something is busted in your mod
-
Re: Login as Customer module
OK I have released Admin Login As Customer V2.0. It has been tested as is working with both ZenCart 1.3.7 & 1.3.8. It now also uses the language files and auto detects weither or not you have SSL enable to fully secure the data that is passed.
I have submitted it to the downloads section and I have it posted to http://www.vmitek.com/zencart/
I will be puting up a demo site for the 1.3.8 support soon please check
http://www.vmitek.com/zencart for the NON-SSL link and
http://www.virgintattoos.com/zencart/ for the SSL link
-Sid
-
Re: Login as Customer module
To anyone running ZenCart 1.3.7 who downloaded version 2.0 of the Admin Login as Customer Mod I'm sorry I forgot to include a few files on the contrib. I have added v.2.1 which includes the missing files. Youc an also download the updated mod from http://www.vmitek.com/zencart/ under v2.0 which has all the files.
-
Re: Login as Customer module
I have just installed the login as customer v2.1 on Zen Cart1.3.7.
I keep on getting an error message: Error: Sorry, there is no match for that email address and/or password.
The e-mail address looks good, but not sure about the password.
Is there a posibility that someone can help?
-
Re: Login as Customer module
Did you install the version with our without the master password module included?
Did you alreadyhave the master password module installed?
Did you install the SQL patch for the master password module?
Did you set a password for the master password module under configuration -> My Store -> Master Password?
-
Re: Login as Customer module
Installed without the master Password module.
-
Re: Login as Customer module
Do you already have the master password module installed? If not download it from the Zen Downloads section and follow the install instructions included.
-
Re: Login as Customer module
Do think installing the module with the master password will solve the problem. What is the diffrence between the two modules.
-
Re: Login as Customer module
The admin login as customer module is dependant on the master password module to work. That is why there is a version included with the master password for those who do not already have it installed.
-
Re: Login as Customer module
Thank you for the advice. I will install it immediately.
-
Re: Login as Customer module
No problem if you need any further help just let me know
-
Re: Login as Customer module
I have installed the master password module, and it is working perfectly. Thank you for the advice.
-
Re: Login as Customer module
Hi vmmeup,
Just came back and tried to install the new 2.0 (from your web site, downloaded today) version. Unfortunately, I run in the same problem: the form in the admin / customers is fine, with the correct email and master password set, and links to : <form target="_blank" name="login" action="http://www.xxxxx.com/~yyyyy/index.php?main_page=login_as_customer" method="post">
But when I click on that form, I always get redirected to index.php?main_page=login, with empty forms for the email and the password...
Indeed, index.php?main_page=login_as_customer redirects immediately to the normal login page...
I used the 1.3.8 non-SSL version, without the master password which is already installed and working...
Thanks for any advice,
sanji
-
Re: Login as Customer module
When did you donwload to package? The latest version of the mod v2.0 no longer has an SSL and NON SSL version. I changed the code to auto detect the site config and also added language file support. Just in case it was somehow the wrong package I uploaded the v2.1 that i have on the zen download page. I did check the package and all looks good. I also re-extracted it and copied to my 1.3.8 test site and all is working.
Although I had tested and used the old package without any problems. fell terrible that you are having these issues if you use skype or yahoo messenger pm me you handle and maybe I can help while your trying to get it working.
-
1 Attachment(s)
Re: Login as Customer module
I just redownloaded that 2.1 version from ZC, but the files are the same, so the error must from from somewhere else.
To be honest, I used a modified ZC shop, so I can not be 100% sure that the error is not from my side.
But the behavior is really strange: I click on the "Place Order" button, and get redirected to the normal login page, with empty fields. I add a customer's email and master password, click on login and then I get redirected on index.php?main_page=login_as_customer&set_session_login=true page, which means that the "Would you like to log as" is displayed... once I am already logged in!
You can see the result on the attached page. I will try to look more carefully tomorrow into that. But if you have any idea, please let me know. I do appreciate you take time to check on my issue.
Thanks,
sanji
-
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
-
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?
-
Re: Login as Customer module
Quote:
Originally Posted by
vmmeup
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
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
-
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?
-
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.
-
Re: Login as Customer module
Quote:
Originally Posted by
vmmeup
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
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
-
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?
-
Re: Login as Customer module
Quote:
Originally Posted by
vmmeup
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
-
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
-
Re: Login as Customer module
FOUND THE PROBLEM !!!
If your settings for "Customer Shop Status - View Shop and Prices" (Configuration / Customer Details from admin) are
Customer must be approved to shop
0= Not required
1= Must login to browse
2= May browse but no prices unless logged in
0 or 2 - this contribution is working
1 - this contribution is NOT working, as ALL pages are redirected to the login page...
Any idea how to solve that issue?
sanji
-
Re: Login as Customer module
Sanji,
Good find, I would never have though it could be that. The problem is I have it loading inside the Zen Site wrapper so ZenCan generate the securityToaken so I can use it for the login page. The problem is that ZEN is require the customer to be logged in to see any page which includes the login_as _customer page because it now see that as a customer page as well. I would say the way to fix that would probably be to figure out where it process this and code it so it ignores it if the site is being browsed from your own IP address. So that everyone else will have to login, but you won't allowing you to get to the login_as_customer.
-Sid
-
Re: Login as Customer module
I wonder if there is a way to declare login_as_customer in the includes/init_includes/init_customer_auth.php file, so that the authentification is not required for that specific page. I have tried to add "login_as_customer" in that file, but without success so far...
sanji
-
Re: Login as Customer module
Just installed this (version 1.3.7 with master password) on a site with register_globals off and it works great so far.
Thanks for the mod!
-
Re: Login as Customer module
Excellent! Glad to hear that. I'm working on packaging up my newest version which I have built in a memo addon.
-
Re: Login as Customer module
V2.1 on a ZenCart 1.3.8a shop, global registers off by means of special php.ini files in all directories (my host ICDSoft says this only way to force register off functionality on their hosted sites).
This contribution work flawlessly in this configuration.
-
Re: Login as Customer module
I'm running the ZENCART 1.3.8a no SSL and I think I have register globals off " not sure 100% though" and installed both of them with master password and with out and when I go to customers and click on Place Order I a quick page flashes with this line : You are logged in as.. Please wait.then it change to a blank page with a default text on :
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. ...........
Where could be the problem ?
Thank in advance
-
Re: Login as Customer module
Thats the text that I get on the page that I come to when I click on Place Order:
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Can anyone help on how to fix this problem .. and I know now for sure that I have register globals off " :mellow:!!
-
Re: Login as Customer module
:clap:I fixed it myself and it works now on my test Zencart,:wink: Thanks any way
-
Re: Login as Customer module
-
Re: Login as Customer module
It's just I have 3 templates in my Zencart, So I had to put the related files into the active template, Thats all what I did and good luck for you:wink:
-
Re: Login as Customer module
I looked through this topic but couldn't find an answer. i downloaded the mod and it includes what it seems like a double of everything, two folders named the same except one has ...what folders exactly i need to upload to the server? both? if i do that then they'll overwrite each other!
-
Re: Login as Customer module
I think what you need to do is just to upload each file to the right directory "not the folder" , you can change the name of the original file temporarily on the server "to something else, to keep it as backup", that’s what I normally do. Good luck :yes:
-
Re: Login as Customer module
Okay, thank you, it worked.
Here is what i found though an I think the developer needs to address this.
when i logged in as customer, added some items to the shopping cart, then closed the explorer window without logging out and back to the admin, then i highlighted another customer, clicked on the Place Order button, then logged in as that customer. and when i clicked on the shopping carts the items from the previous customer were in this customers shopping cart! it kind of makes sense because the user never logged out, but i think once you click on the Place Order, it should run a routine to log out first and then log in as the current selected customer.
Thanks anyway, its great Mod!
-
Re: Login as Customer module
A properly built mod will not require you to upload individual files, especially if they are in a folder structure already. I presume the two folders are for alternative situations, and only one is intended to be used in any one case. The author could shed more light on this.
Keeping original files renamed in the original locations can sometimes be a problem, as some folders are auto-loading - every file in them will be used. In nearly all cases, if you use the template override system, the original copy of the file is safe in the /template_default/ folder so there is no need to save another copy.
If you are not using the override system, you are setting yourself up for a lot of grief when the next version comes out and you try to upgrade.
For a mod like this that deals with /admin/ files, you do need to replace the originals, so keeping a backup copy elsewhere would be good.
-
Re: Login as Customer module
Thanks for that info Glenn. what i do in my server is create folders called "BACK" one folder in each place where i update or replace files, so i put the originals there and upload the new ones in. i found out the hard way the importance of backing up my files, backing up does saves you allots time...
-
Re: Login as Customer module
Sounds good - that would keep backup files from interfering with the current ones but easily accessible.
-
Re: Login as Customer module
I have ZC 1.37
Installed Log in as Customer with Master Pass
all works well up to the point of clicking the "Place Order" button from Admin
I then get the front side page with all the correct information for the customer
I then click place order and I then get the front side page with "Welcome guest" and I am not logged in as the customer
As a side note if I enter the customers id (email address) from the front side log in and enter my "MASTER" password it works as intended.
Basically the Log in as Customer module passes all the correct information from the admin to the Front side place order or cancel order page but does not log in , it simply goes to the Front side "Welcom Guest " page
Any Ideas ?
-
Re: Login as Customer module
I installed this mode some time ago and it worked several times when testing. but I tried to log on to demonstrate the feature to an assistant but it didn't work.
I get the following message when I click on "Place an Order":
-
Re: Login as Customer module
I really need help with this mod. See my previous post. Can anyone help?
-
Re: Login as Customer module
I figured that this problem is caused because admin's HTTP_SERVER uses http://nahidfashions.com and the store uses http://www.nahidfashions.com
So when i click the Place Order button I'm taken to http://nahidfashion.com/boutique
I fixed this by changing customer.php in admin but there has to be a better way.
Any ideas?
-
Re: Login as Customer module
I have followed the installation directions and have not been able to get the "add order" button to appear in admin/customers.
I am running 1.3.8a and ran the sql patch from the latest version (2.0) and no luck.
I must be missing something, any ideas where to look?
Thanks,
Patrick
-
Re: Login as Customer module
Quote:
Originally Posted by
phark
I have followed the installation directions and have not been able to get the "add order" button to appear in admin/customers.
I am running 1.3.8a and ran the sql patch from the latest version (2.0) and no luck.
I must be missing something, any ideas where to look?
I don't remember all of the installation steps:blush:, but the admin/customers.php should have something like the following around line 1170
Code:
// BOF Set variables for login_as_customer module
$place_order_button = 'includes/languages/english/images/buttons/button_placeorder.gif';
$login_as_customer = 'index.php?main_page=login_as_customer';
if (ENABLE_SSL_CATALOG == 'true') {
$url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;
} elseif (ENABLE_SSL_CATALOG == 'false') {
// SA 04/3/08 added www in front of url because we are coming from admin
$url = "http://www.nahidfashions.com" /*HTTP_SERVER*/ . DIR_WS_CATALOG;
}
$p_url = $url;
$p_url .= $login_as_customer;
//EOF Setf Variables for login_as_customer module
let me know
-
Re: Login as Customer module
Quote:
Originally Posted by
phark
I have followed the installation directions and have not been able to get the "add order" button to appear in admin/customers.
I am running 1.3.8a and ran the sql patch from the latest version (2.0) and no luck.
I must be missing something, any ideas where to look?
Thanks,
Patrick
I had a similar problem and mine was a simple screw up on my part..
The place order image failed to load in the admin ....
admin/includes/languages/english/images/buttons/button_placeorder.gif
after I RE-uploaded it, it showed and worked as it should , probably not the issues in your case but hey,,, we are all human and I just missed it I guess.
-
Re: Login as Customer module
I have the same problem, no PlACE ORDER image in the admin, what can we do????? :frusty:
-
Re: Login as Customer module
Problem solved by reloading the module! now works great :clap:
-
Re: Login as Customer module
The state is not displaying on the tpl_login_as_customer_default.php file. The state tag being used on that page is
Code:
<? echo $c_state; ?>
I am guessing that the state tag is not correct and would like help with the correct state tag for ZC 1.3.8.
-
1 Attachment(s)
Merged with Customer Tax Exempt
I liked your mod alot, thanks, I instsalled the 1.3.8 version without master password. Only problem was it removed from Admin/ customers.php the changes made by the Customer Tax Exempt mod. So I had to Win-merge the two. It works on my machine, but this is THE FIRST mod I've modified.... So could someone with some rank please check this before someone else tries to use it/
-
Re: Login as Customer module
Quote:
Originally Posted by
sanji
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
-
Re: Login as Customer module
I have installed 'Admin Login as Customer" v2.1 onto my 1.3.8a Zen Cart. The installation appeared to go smooth without complications. I did the SQL Patch first, then renamed the template file and uploaded as instructed...
When I login as 'admin' and go to Customer module, I see the PLACE ORDER button as expected. However, when I click it, I get a new front page that is blank.
If I click on 'Login " in the header it takes me to the login page. If I manually enter their e-mail account and the master password, I am logged in as that customer.
From reading the support threads, I assumed that this would open the new page with the customer e-mail entered so only the master password would have to be entered. Am I mistaken?
Thanks!
Jim
-
Re: Login as Customer module
Ok, I can't get anything to show up, so please tell me what I am doing wrong. I added the sql patch and uploaded the new catalog file into my root installation folder. I don't see any login buttons for customers??? I thought there was supposed to be a button under the customer category, so what am I doing wrong here. I can generally figure these things out, but this one is eluding me. :frusty:
-
Re: Login as Customer module
I get this when i selected a customer and click place order
Are you sure you want to log in as:
First Name: Last Name:
Company Name:
Mailing Address:
City: State: Zip Code::
Telephone:
Email Address:
All of i t is blank Then i click place order and get There was a security error when trying to login.
-
Re: Login as Customer module
Great mod!!! Saved my bacon I tell ya!!! My client's site had a glitch where PayPal IPN was not completing orders.. So we would get the payment in PayPal, but the order was still sitting in the customers shopping cart.. This mod allowed me to recover those orders by logging in and completing the checkout process so we at least had an order to apply the PayPal payment against.. (We use Super orders for order management, and it supports manual payment entries) I shudder to think what we would have had to do to make this happen if I hadn't decided to download and install this little gem of an add-on..
-
Re: Login as Customer module
Hi, I've been right through this section of the forum before posting this, I apologize if it is something simple I have missed but I just can't get this to work.
I have Zencart 1.3.8a installed, I have installed the Login as customer module. At first I installed without the Master Password, later I ran the SQL patch then as it still wouldnt work I read this forum. The latest is I copied the 2.0 version of this module including the master password option.
The file downloaded is admin_login_as_customer_v2-1 however when opened it contains alac 2.0
The master password is available and I can change it in the Config/MyStore. The button appears to Place Order when I go to the customers account. The page opens https://xxxxxxxxxx.com/cart/index.ph...in_as_customer
When I click place order I only get the message.
Error: Sorry, there is no match for that email address and/or password.
The page shown is https://xxxxxxxxxxx.com/cart/index.p...action=process
Any suggestions....please!
-
Re: Login as Customer module
Quote:
Originally Posted by
CnTGifts
I get this when i selected a customer and click place order
Are you sure you want to log in as:
First Name: Last Name:
Company Name:
Mailing Address:
City: State: Zip Code::
Telephone:
Email Address:
All of i t is blank Then i click place order and get There was a security error when trying to login.
I am getting the same thing. Did you get it fixed?
-
Re: Login as Customer module
So I've been working on this issue of no customer info showing :
First Name: Last Name:
Company Name:
Street Address:
City: State/Province: Post/Zip Code::
Telephone:
Email Address:
...on the /login_as_customer.html page. I am not a php programmer (or I would probably have this figured out by now), but where are these variables getting created:
$email = $_POST['email_addr'];
$pass = $_POST['password'];
$first_name = $_POST['firstname'];
$last_name = $_POST['lastname'];
$c_company = $_POST['company'];
$c_id = $_POST['cid'];
$c_address = $_POST['address'];
$c_city = $_POST['city'];
$c_state = $_POST['cstate'];
$c_zipcode = $_POST['zipcode'];
$c_telephone = $_POST['phone'];
$url = $_POST['s_url'];
There just not getting passed to this page. Am I missing an include file or something? I assumed the variables were defined on the customers.php page, but I can't seem to tweak it to work.
-
Re: Login as Customer module
Quote:
Originally Posted by
jwatt10k
So I've been working on this issue of no customer info showing :
First Name: Last Name:
Company Name:
Street Address:
City: State/Province: Post/Zip Code::
Telephone:
Email Address:
...on the /login_as_customer.html page. I am not a php programmer (or I would probably have this figured out by now), but where are these variables getting created:
$email = $_POST['email_addr'];
$pass = $_POST['password'];
$first_name = $_POST['firstname'];
$last_name = $_POST['lastname'];
$c_company = $_POST['company'];
$c_id = $_POST['cid'];
$c_address = $_POST['address'];
$c_city = $_POST['city'];
$c_state = $_POST['cstate'];
$c_zipcode = $_POST['zipcode'];
$c_telephone = $_POST['phone'];
$url = $_POST['s_url'];
There just not getting passed to this page. Am I missing an include file or something? I assumed the variables were defined on the customers.php page, but I can't seem to tweak it to work.
I got the similar problem with you ! Any one can help / give some suggest for us to fix this?
I was do everything and upload the SQL patch file.
I don't use master password modules when i install admin login as customer.
KIMSON
-
Re: Login as Customer module
Can anyone tell me what this means? I'm trying to hard....
Rename the includes/templates/template_defaultfor the version with Master Password included folder to the name of your template folder.
I mean...rename it to what? and put it where? I'm trying to follow the instructions on Ver. 2.0, got the SQL installed, but I'm confused on the rest....:cry:
-
Re: Login as Customer module
I cannot get this to work either. Keeps telling me no match found for the password/e-mail address. Both are right, I've double & triple checked. Everything is installed, I don't get it...
-
Re: Login as Customer module
can ALAC be used with encrypted master password instead of regular master password?
-
Re: Login as Customer module
Quote:
Originally Posted by
alhakeem2001
It's just I have 3 templates in my Zencart, So I had to put the related files into the active template, Thats all what I did and good luck for you:wink:
I am now getting this 403 Error too ! Which is very weird as I installed it last night , tested it and it worked , went to show the client today , and now it does not work ! I get the 403 error page.
I have re uploaded the files , and checked that they are going in the right template folder.
Now Stumped ! as I have it working fine on another site and I did not have to do anything !
Help Appreciated
-
Re: Login as Customer module
Quote:
Originally Posted by
ivanc
can ALAC be used with encrypted master password instead of regular master password?
I'm wondering the same thing. I'm about to find out...
-
Re: Login as Customer module
Quote:
Originally Posted by
abko
I'm wondering the same thing. I'm about to find out...
Seems to work great for me. I installed the login as admin module and thought it included the Master Password mod, but was not able to login, so I merged the changes in this master encrypted password mod and now I can login as a customer with the admin pass. Very convenient!
-
Re: Login as Customer module
I installed this module without problems and am able to place an order. However when I click place order this is what I get
Are you sure you want to log in as:
First Name: jim Last Name: doe
Company Name:
Street Address:112 dree street
City:Glasgow State/Province: Post/Zip Code::ML7 5LG
Telephone:333344444
Email Address:xxxxx_xxxx##########################
Place Order Cancel Order
I am not asked for password authentification. When I installed the sql patch I got the message that the master password sql was already installed.
Does this mean that my security is at risk.
I would be grateful for advice from someone with some knowledge about this as soon as possible.
-
Re: Login as Customer module
Quote:
Originally Posted by
findl16
I installed this module without problems and am able to place an order. However when I click place order this is what I get
Are you sure you want to log in as:
First Name: jim Last Name: doe
Company Name:
Street Address:112 dree street
City:Glasgow State/Province: Post/Zip Code::ML7 5LG
Telephone:333344444
Email Address:xxxxx_xxxx##########################
Place Order Cancel Order
I am not asked for password authentification. When I installed the sql patch I got the message that the master password sql was already installed.
Does this mean that my security is at risk.
I would be grateful for advice from someone with some knowledge about this as soon as possible.
This is the beauty/point of this mod. It lets you log in as any customer without revealing the customers password. You're logging via the Admin and thus you are already authenticated.
There are any security issues that I know of.
-
Re: Login as Customer module
thanks for your help. I have another question if you could help me with this. when I log into various customers accounts I am getting the same cart. A potential customer left an item in her cart without either deleting it or carrying out the full transaction. I am seeing this item when I click on the cart of all customers. Why is this.
A customer has recently processed an order which is now not showing up on her account and the email I received from paypal reads only that it is a store receipt without details of the item purchased. I thought that by installing this module that I could trace this but all I am getting is the item which was left in another person's cart.
Can anyone help?