Re: Encrypted Master Password support
Quote:
Originally Posted by
hubert
OK, OK, I just understood, so it was just "install 1.6 instead of 2.1". LOL
Thanks a lot for your patience.
It works, it's great. I just noticed something.
Choose customer X, click Place Order, you get a new tab acting as X.
Don't close your tab, just go back to the customer list tab.
Choose customer Y, click Place Order, you get a new tab acting as X.
If you do not logout X I can't act as Y.
Just curiosity, would it be possible to have a customer by tab, acting as X in a tab and at the same time as Y in another tab ?
That's not going to be possible, since the session-cookie is stored once-per-site in the browser. If you have multiple browsers, you could have Customer X in Firefox, Customer Y in Chrome, ...
Quote:
Originally Posted by
hubert
Next step...
As I'm planning to give a restricted access to the one who is going to take orders on the phone using EMP... I just noticed that I have no way to give access to the Place Order button in an Admin Profile.
I've setup a "Cashier" admin account, given access to the customers page, but when I log as the Cashier the Place Order button disappears...
How can I add the option in the admin profiles settings ?
You've discovered that the multiple admin-profiles settings were introduced post EMP v1.6. The change that you posted brings your Customers->Customers handling up to the current EMP version.
Re: Encrypted Master Password support
I've uploaded v2.2.0 of EMP to the Zen Cart Plugins for review. This version adds support for Zen Cart v1.5.5 and drops support for Zen Cart versions prior to v1.5.3, with the following changes:
- Update to use Zen Cart 1.5.5 release (03-29-2016) for the core-file changes
- Add Dutch language constants
- Use new Customers->Customers notifier
- Remove support for Zen Cart versions prior to 1.5.3
- Restructure the plugin's distribution zip-file
- Remove OSH-updated-by code; it can be installed separately if the functionality is desired.
Note: If you're still using a version of Zen Cart prior to v1.5.3 for your store, please use an earlier version of EMP.
Re: Encrypted Master Password support
v2.2.0 is now available for download.
Re: Encrypted Master Password support
Not sure what I did but my attempts to log in as a customer using my store admin password are no longer working:
https://www.exilemachine.net/shop/in...action=process
WARNING: An Error occurred, please refresh the page and try again.
If I put in a nonsense password it gives me the correct red banner password error:
Error: Sorry, there is no match for that email address and/or password.
I'm on ZC 1.5.4 and I can not determine the version of the EMP that I'm using. Is there a file that shows which version EMP is in use?
-Mark
Re: Encrypted Master Password support
Quote:
Originally Posted by
Exile Machine
WARNING: An Error occurred, please refresh the page and try again.
See: http://www.zen-cart.com/content.php?...-and-try-again
Re: Encrypted Master Password support
If you'll post the first 25 lines in the file /includes/classes/observers/class.emp_order_observer.php, I might be able to identify the EMP version you're using.
Re: Encrypted Master Password support
as the link that DrByte posted states, you need to look at the debug log files. if you can track those log files and post them, perhaps someone could give you more help. alternatively, the log files might indicate how you could solve the problem on your own.
good luck!
Re: Encrypted Master Password support
Quote:
Originally Posted by
lat9
If you'll post the first 25 lines in the file /includes/classes/observers/class.emp_order_observer.php, I might be able to identify the EMP version you're using.
Here you go:
Quote:
<?php
// -----
// Part of the Encrypted Master Password plugin, provided by
[email protected]
//
// Copyright (C) 2013-2014 Vinos de Frutas Tropicales
//
// @license
http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
//
// -----
// When entered via the "Place Order" button from the admin, the customer's email address is posted but somehow (on PHP 5.4)
// doesn't get recorded in the $GLOBALS array (which is where the default input field values are gathered.
//
if (isset ($_POST['email_address'])) {
$GLOBALS['email_address'] = $_POST['email_address'];
}
class emp_order_observer extends base {
function emp_order_observer() {
$this->attach ($this, array ('NOTIFY_ORDER_DURING_CREATE_ADDED_ORDER_COMMENT', 'NOTIFY_PROCESS_3RD_PARTY_LOGINS'));
}
// -----
Referencing DrByte's suggestion above, I did find a logfile with this error in it:
PHP Fatal error: 1364:Field 'logmessage' doesn't have a default value :: INSERT INTO
admin_activity_log (access_date, admin_id, page_accessed,
page_parameters, ip_address, gzpost, flagged, attention) VALUES (now(),
'1', 'login.php', '', 'xx.xxx.xxx.xxx',
'[binary data]', '0', '') ==> (as called by)
/shop/includes/functions/functions_general.php
on line 965 <== in
/shop/includes/classes/db/mysql/query_factory.
php on line 155
Re: Encrypted Master Password support
:censored: That's a bug; I'll post back in the morning when I've got a solution.
Re: Encrypted Master Password support
Quote:
Originally Posted by
lat9
:censored: That's a bug; I'll post back in the morning when I've got a solution.
I've uploaded v2.2.1 of EMP to correct this issue; it'll be available for download once reviewed.
There was one file changed (/includes/classes/observers/class.emp_order_observer.php); you can download the updated file from its GitHub repo here for use with your v2.2.0 EMP install.