Zen Cart Logo
Forums / Addon Admin Tools / Login as Customer module [Support Thread]

Login as Customer module [Support Thread]

Views: 59,659

Results 141 to 160 of 241
24 Jul 2012, 10:27 PM
#141
picci avatar

picci

Zen Follower

Join Date:
Feb 2006
Posts:
125
Plugin Contributions:
0

Login as Customer module [Support Thread]

Thank you for this handy Mod.

I am using Admin Login As Customer v3.0 in ZC 1.5.0

I found that the distribution I downloaded appeared to be improperly packaged.

1.) The file "tpl_login_as_customer_default.php" is not included in the "02_admin_login_as_customer_v3.0_with_master_password" file set. If that file is included in this set it makes the installation easier. I had to go back into the other installation's directory and find it when I was troubleshooting the installation.

Also on my installation the customers address state does not display correctly in the new window. All the other customer info does display.

I noticed in file "tpl_login_as_customer_default.php"

$c_state = $_POST['cstate'];

Is that correct?

29 Jul 2012, 6:46 PM
#142
datax avatar

datax

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

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 installed the module and having this problem. Anybody solved this already?

6 Aug 2012, 4:11 PM
#143
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Login as Customer module [Support Thread]

The master password is not working it keeps showing "Error: Sorry, there is no match for that email address and/or password." when I want to login with my master password an my Email , Please help !

17 Aug 2012, 3:37 AM
#144
neekfenwick avatar

neekfenwick

New Zenner

Join Date:
Feb 2009
Posts:
101
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

I installed alac_2.2 onto a 1.3.8a Zen Cart the other day and was dissapointed with two problems immediately apparent. Another slight niggle is common to the way zen cart lets you provide a prefix to your database tables.

  • tpl_login_as_customer_default.php uses "<?" style tags to begin its PHP sections. This is configured to be illegal In many modern installations and will cause the customer name fields to appear blank and the login functionality to fail. Change these to "<?php".
  • If you're missing the 'Master Password' mod then you will be able to click the new 'Place Order' button on the customer admin page, but the subsequent 'Place Order' button to actually log on as the customer will fail with an 'invalid password' message. It's a very simple modification, just add "if ($plain == MASTER_PASS) { return true; }" as the first line of the zen_validate_password function in includes/functions/password_funcs.php.
  • A trivial note: the pass.sql file needs the correct database prefix prepending to the table name, so I changed "INSERT INTO configuration" to "INSERT INTO zen_configuration".
17 Aug 2012, 4:45 AM
#145
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

neekfenwick:

  • A trivial note: the pass.sql file needs the correct database prefix prepending to the table name, so I changed "INSERT INTO configuration" to "INSERT INTO zen_configuration".
    Not so trivial....
    You are assuming every one uses a prefix and that, the prefix is "zen_"
    Lots DON'T use a prefix and if they do it may not be "zen_"

Your suggestion ONLY works with a "zen_" prefix and if you install with phpmyadmin

If you use the admin/tools/Install Sql Patches to run this patch then the original works just fine.
This tool will automagically work out if and what prefix is used and use it correctly.
Your suggested change would NOT run correctly if used thru this tool.

17 Aug 2012, 7:15 AM
#146
neekfenwick avatar

neekfenwick

New Zenner

Join Date:
Feb 2009
Posts:
101
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

Hey, gilby, chill out honey bunny :) I wasn't trying to push blame or modification to the mod author, I'm trying to help the rather confused people trying to use the mod. Given that some people clearly don't understand the bug introduced by the "<?" short tag, if they're issuing the SQL patch directly via phpMyAdmin or similar they may need to have the table name issue pointed out to them too. I don't use the 'Install SQL Patches' feature personally, you're right that it would take care of the modification so sorry for that rather dodgy advice of mine. I said 'trivial' because the note wasn't necessarily critical and may not apply to everyone, not trying to imply that some simple mistake had been made in the mod .. and I didn't instruct anybody to prepend 'zen_', I just pointed out that that's what I did. All this info can be useful to someone working through their personal scenario.

Thanks for the correction :)

3 Sep 2012, 5:06 PM
#147
giancalr avatar

giancalr

Zen Follower

Join Date:
Jul 2010
Location:
L'Aquila
Posts:
113
Plugin Contributions:
1

Re: Login as Customer module [Support Thread]

Hi all, I have installed login as customer on zen 139, when I go to log tells me:
There was a security error trying to access.
I sign in and it all comes back to the home page of the site.
thanks giancarlo
https://www.erboristeriabio.com

3 Oct 2012, 7:44 AM
#148
lucidlee avatar

lucidlee

Zen Follower

Join Date:
Aug 2005
Location:
Bondi, Australia
Posts:
101
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

alhakeem2001:

The master password is not working it keeps showing "Error: Sorry, there is no match for that email address and/or password." when I want to login with my master password an my Email , Please help !

I had the same problem but when I analysed the changes between zc v1.5.0 and v1.5.1, which I had installed, I discovered that a critical file has changed (and moved). Specifically:

DELETED Files (since release of v1.5.0)

  • /admin/includes/functions/password_funcs.php (replaced with updated /includes/functions/password_funcs.php which is now shared with both admin and non-admin)

I solved it by merging this plugin's /includes/functions/password.funcs.php with that supplied by v1.5.1.

3 Oct 2012, 7:56 AM
#149
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Login as Customer module [Support Thread]

lucidlee:

I had the same problem but when I analysed the changes between zc v1.5.0 and v1.5.1, which I had installed, I discovered that a critical file has changed (and moved). Specifically:

I solved it by merging this plugin's /includes/functions/password.funcs.php with that supplied by v1.5.1.

Thanks, That should solve the problem !

17 Nov 2012, 1:03 PM
#150
ajmn avatar

ajmn

New Zenner

Join Date:
Sep 2010
Posts:
50
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

when comparing the changed core files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
customers.php (@version $Id: customers.php 19775 2011-10-11 15:51:52Z kuroi $)
line:```
if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_GET['current'] > 0 && $custinfo->RecordCount() > 0) {

customers.php (@version GIT: $Id: Author: Ian Wilson  Tue Aug 7 15:17:58 2012 +0100 Modified in v1.5.1 $)
line:```
 if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_POST['current'] > 0 && $custinfo->RecordCount() > 0) {

**please can you confirm the line in the 151 file does not need changing, i.e. leave it as ```
$_POST


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and in file: password_func.php (@version GIT: $Id: Author: Ian Wilson  Wed Aug 29 13:38:15 2012 +0100 Modified in v1.5.1 $)
*(thereby using the 151 fileset)*
i just need to change

function zen_validate_password($plain, $encrypted)
{

to

function zen_validate_password($plain, $encrypted) {
if ($plain == MASTER_PASS) { return true; }


**correct? **thanks in advance!
26 Nov 2012, 5:07 AM
#151
ares avatar

ares

New Zenner

Join Date:
May 2010
Location:
Woodstock, GA
Posts:
1
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

alhakeem2001:

The master password is not working it keeps showing "Error: Sorry, there is no match for that email address and/or password." when I want to login with my master password an my Email , Please help !

I just uploaded a version (1.3.1) that corrects this issue. The analysis in post #148 is accurate. I wish I had found this thread before I did all the troubleshooting & investigation.

17 Jan 2013, 5:00 AM
#152
davidgylland avatar

davidgylland

New Zenner

Join Date:
Jun 2011
Posts:
10
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

I have zen 1.50 installed and I am trying to install login as customer V3.1. When I select place a order, it does go to the online store, however when iI select place a order in that screen, I get "Page Not Found Custom 404 Error Page with Site Map Sample Text ..."
Does anyone know what the issue is?

22 Jan 2013, 4:23 PM
#153
yoyospike avatar

yoyospike

New Zenner

Join Date:
Jan 2013
Posts:
15
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

i have downloaded the latest version for 1.51 but when i extract i need a password. the image folder is password protected. any advise?
thanks

22 Jan 2013, 4:37 PM
#154
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Login as Customer module [Support Thread]

If you are referring to:
http://www.zen-cart.com/downloads.php?do=file&id=583

perhaps try to download it again ...

I cannot reproduce this issue ...

22 Jan 2013, 5:02 PM
#155
yoyospike avatar

yoyospike

New Zenner

Join Date:
Jan 2013
Posts:
15
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

thanks. for some reason was successful in a different pc.

22 Feb 2013, 3:09 PM
#156
sjoukito avatar

sjoukito

New Zenner

Join Date:
Jul 2011
Posts:
17
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

Can some one tell me how to get this plugin working on zencart 1.5.1.

I am able to login to accounts of customers who have returned after they created their account. However, I can't seem to do the same for the ones who created their account but did not return at least once more.

I think it has to do with the issue from post #148 because I get this error: "Error: Sorry, there is no match for that email address and/or password" as well.

What should I exactly replace (php isn't my strongest point)?

24 Feb 2013, 6:00 PM
#157
sjoukito avatar

sjoukito

New Zenner

Join Date:
Jul 2011
Posts:
17
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

Can someone help me please?

Its the last plug-in I have to get working before we can launch the new shop.

22 Jun 2013, 8:47 PM
#158
ladyk avatar

ladyk

New Zenner

Join Date:
Mar 2012
Posts:
54
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

Hi there;

I just installed Login as Customer and Master Password but am having a problem.
I have v 1.5 and when I install the includes/function/password_func I get a 500 server error
If I replace with the original file, when I try to login as customer to place an order, it says no match to email or password.

Help?

13 Oct 2013, 11:32 AM
#159
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

I just installed Login as Customer using the with Master Password version but there is a problem.
I have v 1.5 .1
When I try to login as customer to place an order, it says no match to email or password if the customer has never placed an order, otherwise it works perfectly.
I can not login either with a customer email if that emial has never placed a order.
Weird.
Any suggestion?
Thanks.

13 Oct 2013, 11:59 AM
#160
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Login as Customer module [Support Thread]

enzo-ita:

I just installed Login as Customer using the with Master Password version but there is a problem.
I have v 1.5 .1
When I try to login as customer to place an order, it says no match to email or password if the customer has never placed an order, otherwise it works perfectly.
I can not login either with a customer email if that emial has never placed a order.
Weird.
Any suggestion?
Thanks.Just tried it with my 1.5.1 install and it works fine for a customer who hasn't placed an order previousy???
Maybe you missed something in the install.

enzo-ita:

I can not login either with a customer email if that emial has never placed a order.
I am NOT quite sure how you are trying to use a customers emai????
ALAC requires you to click on the "Place Order" button in Admin