Admin Login As Customer v3.3
Original Author: Sid Smith
Version: 2.0 - Updated by ScriptJunkie
Zen Cart version: 1.5.1 - This version is not backward compatible with Zen Cart v1.3.9.
If you are running Zen Cart v1.3.9 and wish to use the Admin Login As Customer addon, visit the download section of the Zen Cart Forum and download Admin Login As Customer v2.2
Questions?: Hit the support thread
Acknowledgements & Credits
- All credit goes to the original mod author, Sid Smith. All subsequent versions are updates based on his original mod.
- Admin Login As Customer v3.0 based entirely on Admin Login As Customer v2.2 for Zen Cart v1.3.9, updated by That Software Guy
- Admin Login As Customer v3.0 updated by ScriptJunkie
- Admin Login As Customer v3.1 based entirely on Admin Login As Customer v3.0 for Zen Cart v1.5.0, updated by Ares
- Admin Login As Customer v3.2 based entirely on Admin Login As Customer v3.1 for Zen Cart v1.5.1, updated by Numinix
- Admin Login As Customer v3.3 based entirely on Admin Login As Customer v3.2 for Zen Cart v1.5.3, updated by Numinix
License
This contribution is distributed under the terms of the Gnu General Public License (GPL) Version 2. A copy of this license can be found in LICENSE.txt as part of this contribution.
Purpose & Aim
Admin Login As Customer v3.2 is designed to allow you log in to your store as a customer through the admin in order to process phone or mail orders.
Zip File Contents
The zip file contains two versions of this addon, both for Zen Cart 1.5.1. Make sure to select the version that is correct for your Zen Cart installation.
- Without Master Password (For those who already have the Master Password module installed).
- With Master Password (For those who do not already have the Master Password module installed).
- In order for the Admin Login as Customer module to function, you must also have the Master Password module installed.
- If you don't yet have the Master Password module installed, you must install this second version. See installation instructions below
.
Files List
Some of the files in the Admin Login As Customer v3.2 addon are new files and some are Zen Cart Core files. Additionally, installing the version "with Master Password" makes changes to your database.
New Files Added
- YOUR_ADMIN/includes/languages/english/images/buttons/button_placeorder.gif
- includes/modules/pages/login_as_customer/header_php.php
- includes/templates/YOUR_CUSTOM_TEMPLATE/templates/tpl_login_as_customer_default.php
Core Files Modified
- YOUR_ADMIN/customers.php
- includes/functions/password_funcs.php (only in 02_admin_login_as_customer_with_master_password)
SQL Files Included
- SQL/install_master_password.sql - (only in 02_admin_login_as_customer_with_master_password)
Installation Instructions for the version without Master Password Module
Only install this version if you already have the Master Password module installed. Otherwise, install the 2nd version. See instructions below
- BACK UP YOUR STORE FILES AND DATABASE BEFORE GETTING STARTED!!
- Extract the contents of the zip file to your PC, leaving the folder/file structure intact
- Open the 01_admin_login_as_customer folder
- Rename the YOUR_ADMIN folder to match the name of your admin folder
- Rename the includes/templates/YOUR_CUSTOM_TEMPLATE folder to match the name of your template folder.
- Copy the entire contents of the admin folder to your store's admin folder.
- Copy the entire contents of the includes folder to your store's includes folder.
Installation Instructions for the version with Master Password Module
Only install this version if you haven't yet installed the Master Password module. Otherwise install the 1st version. See instructions above.
- BACK UP YOUR STORE FILES AND DATABASE BEFORE GETTING STARTED!!
- Extract the contents of the zip file to your PC, leaving the folder/file structure intact
- Open the 02_admin_login_as_customer_with_master_password folder
- Rename the YOUR_ADMIN folder to match the name of your admin folder
- Rename the includes/templates/YOUR_CUSTOM_TEMPLATE folder to match the name of your template folder.
- Copy the entire contents of the admin folder to your store's admin folder.
- Copy the entire contents of the includes folder to your store's includes folder.
- Install the Master Password module into your database:
- Using Notepad or some other text editor, open 02_admin_login_as_customer_with_master_password/SQL/install_master_password.sql
- Copy the data in the file
- Log in to your store's admin
- Navigate to Admin > Tools > Install SQL Patches
- Paste the contents of the SQL file into the box & click "Send"
- Navigate to Admin > Configuration > My Store > Master Password & click "Edit" to enter your chosen Master Password.
- This completes your installation of the Admin Login As Customer module. To use this feature:
- Navigate to Admin > Customers and click on any customer. You will see that a "Place Order" button has been added.
- Click the button and your storefront will open in a new window asking you if you're sure you want to log in as that customer.
- Click the "Place Order" button on that page and you will be logged in to that customer's account, as the customer
Uninstall Instructions
- BACK UP YOUR STORE FILES AND DATABASE BEFORE UNINSTALLING!!
- Delete the following files from your server:
- YOUR_ADMIN/customers.php
- *****THIS IS A CORE ZEN CART FILE*****
- BEFORE YOU DELETE THIS FILE - Check to see if any changes have been made to it by you or another addon since installing Admin Login As Customer v3.2.
- If yes, you need to make note of those changes before you delete the file.
- If no, just go ahead and delete the file
- AFTER YOU DELETE THIS FILE - It must be replaced with the admin/customers.php from the Zen Cart v1.5.0 fileset
- If your or another mod made any changes to this file since installing Admin Login As Customer v3.2, you will need to incorporate those changes into the admin/customers.php file from the Zen Cart v1.5.0 fileset and then upload the file to your server.
- YOUR_ADMIN/includes/languages/english/images/buttons/button_placeorder.gif
- includes/modules/pages/login_as_customer/header_php.php
- includes/templates/YOUR_CUSTOM_TEMPLATE/templates/tpl_login_as_customer_default.php
- Optional: Uninstall the Master Password module from your store - Skip this step if you wish to keep the Master Password module installed
- Delete this file from your server: includes/functions/password_funcs.php
- *****THIS IS A CORE ZEN CART FILE*****
- BEFORE YOU DELETE THIS FILE - Check to see if any changes have been made to it by you or another addon since installing Admin Login As Customer v3.0.
- If yes, you need to make note of those changes before you delete the file.
- If no, just go ahead and delete the file
- AFTER YOU DELETE THIS FILE - It must be replaced with the includes/functions/password_funcs.php from the Zen Cart v1.5.1 fileset
- If your or another mod made any changes to this file since installing Admin Login As Customer v3.0, you will need to incorporate those changes into the includes/functions/password_funcs.php file from the Zen Cart v1.5.1 fileset and then upload the file to your server.
v3.3 Changelog
- Updated for compatibility with Zen Cart v1.5.3.
v3.2 Changelog
- Automatically log active user out when the login_as_customer page is loaded
v3.1 Changelog
- Replaced the password_funcs.php file in 02_admin_login_as_customer_with_master_password/includes/functions folder
- Renamed folders to represent new version number 3.1
v3.0 Changelog
- Replaced the customers.php file in 01_admin_login_as_customer_v3.0/YOUR_ADMIN folder
- Replaced the customers.php file in 02_admin_login_as_customer_v3.0_with_master_password/YOUR_ADMIN folder
- Cleaned up & organized the folders in the zip file
- Updated the README file
- Removed links from the original file that currently link to sites which browers identify as being unsafe/untrustworthy.
- Clarified installation instructions
- Added information to the README that was previously missing
- Zip File Contents
- Uninstall Instructions
- Acknowledgments & Credits
- Changelog
- Files List