Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Log in by store name?

Log in by store name?

Views: 785

Results 1 to 5 of 5
29 Oct 2013, 2:21 PM
#1
dave_mck avatar

dave_mck

New Zenner

Join Date:
Apr 2005
Location:
London, Ont. Canada
Posts:
45
Plugin Contributions:
0

Log in by store name?

Is their any way for a customer to log in by their Company name?

The reason for asking is we have a chain store that orders from us and the manager of the chain has only one email address but needs to place orders for the different shops.

Cafe place - Ottawa
Cafe place - Toronto
Cafe place - London
Cafe place - Windsor

All use [email protected]
(yes, a made up company name and email)

29 Oct 2013, 3:01 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Log in by store name?

Not without custom coding, no. Zencart uses the email address as the unique customer identifier. It would be a lot easier for the chain to assign an ordering email address to each location.

29 Oct 2013, 3:02 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: Log in by store name?

Could the customer create 4 addresses and then choose the billing/delivery address based on the shop for which the order is being placed?

29 Oct 2013, 3:13 PM
#4
dave_mck avatar

dave_mck

New Zenner

Join Date:
Apr 2005
Location:
London, Ont. Canada
Posts:
45
Plugin Contributions:
0

Re: Log in by store name?

Lat9: no, after the order is placed, we use the MYOB export tool. It exports the company name to our accounting system, that in turns uses the company name to get the billing and shipping information.

Stevesh: ya, that was what I'm thinking of, just a couple of the chains are big box and probably won't comply with us small mom & pop shop but no harm in asking them.

29 Oct 2013, 6:10 PM
#5
dave_mck avatar

dave_mck

New Zenner

Join Date:
Apr 2005
Location:
London, Ont. Canada
Posts:
45
Plugin Contributions:
0

Re: Log in by store name?

Well, I went out into the shop and welded for 2 hrs and then it hit me. Stupid steel beam. Then I had a thought.
Change the log in db query.

includes\modules\pages\login\header_php

    // Check if email exists
    $check_customer_query = "SELECT customers_id, customers_firstname, customers_lastname, customers_password,
                                    customers_email_address, customers_default_address_id,
                                    customers_authorization, customers_referral
                           FROM " . TABLE_CUSTOMERS . "
                           WHERE customers_lastname = :emailAddress";

Changed "customers_email_address" to "customers_lastname"

It works. Now my customers can log in using their company name.
(we create the customers accounts with their company name in the last name field)

I guess I could go in and clean up the rest of the value labels from email to last name but then I gotta remember those changes for future upgrades to the core.