Results 1 to 10 of 241

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    98
    Plugin Contributions
    1

    Default Re: Login as Customer module

    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".

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Login as Customer module

    Quote Originally Posted by neekfenwick View Post
    - 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.

  3. #3
    Join Date
    Feb 2009
    Posts
    98
    Plugin Contributions
    1

    Default Re: Login as Customer module

    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 :)

  4. #4
    Join Date
    Jul 2010
    Location
    L'Aquila
    Posts
    113
    Plugin Contributions
    1

    Default Re: Login as Customer module

    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
    www.erboristeriabio.com

 

 

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