Jump to content

Ways to use the user's emailaddress rather than name on backend admin pages?


Recommended Posts

When an order is placed, we only take the user's email address, password, and security answer. So the firstname, lastname, companyname, city, etc. is all not required and not included on the checkout form (viewcart.tpl).


This all works great, but on some admin pages like the "Manage Orders" page, there is therefore no active link to go into the user's account because the name is missing.


Is there a workaround that will allow me to use the emailaddress in place of the name if the name is not present? And I do not want the emailaddress ot open into a "mailto" link either -- I just want to open the user's account page.


Any ideas?

Link to comment
Share on other sites

The back-end area is pretty much locked down with very limited template access. You might be able to save the email address in the Company field in the tblclients table. It seems that it uses Company first, and if that doesn't exist, then First/Last name for orders.


Not sure if you can easily save email to Company (save it in the email spot also) or if you'll have to write a quick hook to do this. The hook should be fairly minor to add.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated