X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Importing customer accounts (https://forum.x-cart.com/showthread.php?t=38545)

toolexperts 03-24-2008 02:59 AM

Importing customer accounts
 
I am moving over from another program and am uploading my customer accounts, the only main issue I have is that X-cart uses the username and login, and I want it to be only email address....how can I fix this?

Thank you

toolexperts 03-24-2008 02:59 AM

Re: Importing customer accounts
 
et me clarify, all I want the customers to have to use is their email address

balinor 03-24-2008 03:17 AM

Re: Importing customer accounts
 
That requires quite a bit of modification, as you would need to replace the username fields everywhere with an e-mail address, give the customer a way to change their username (not currently an option) and then make sure the e-mail address is unique, which will prevent anon checkout customers from buying from you more than once. All in all, a pretty big headache.

toolexperts 03-24-2008 03:47 AM

Re: Importing customer accounts
 
I figured as much. I was told by our reseller that it wouldn't be hard, my bosses have listed it as a high priority, and I have no clue where to start

balinor 03-24-2008 03:53 AM

Re: Importing customer accounts
 
You can start here:

http://forum.x-cart.com/showthread.php?t=8809

toolexperts 03-24-2008 04:54 AM

Re: Importing customer accounts
 
Balinor,

which method do you recommend for 4.1.8

balinor 03-24-2008 04:58 AM

Re: Importing customer accounts
 
You'll need to read that thread...I don't recommend this method at all because of the issues I mentioned above.

toolexperts 03-24-2008 05:16 AM

Re: Importing customer accounts
 
yeah i tried the method listed in that thread and now my site is down...it keeps telling me i have an error in line 201.... Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/httpd/vhosts/toolexperts.com/httpdocs/register.php on line 201....Here is my code.....


$fillerror = (!empty($error) || empty($passwd1) || empty($passwd2) || ($passwd1 != $passwd2)); || strlen($passwd1) > 64 || strlen($passwd2) > 64);

toolexperts 03-24-2008 05:34 AM

Re: Importing customer accounts
 
correction only the register.php is hosed

balinor 03-24-2008 05:40 AM

Re: Importing customer accounts
 
I trust you made a backup before you started monkeying with the file?

toolexperts 03-24-2008 05:48 AM

Re: Importing customer accounts
 
yes but it didn't restore the register.php

balinor 03-24-2008 05:50 AM

Re: Importing customer accounts
 
That's what I mean, you didn't make a backup of register.php?

toolexperts 03-24-2008 06:27 AM

Re: Importing customer accounts
 
ok, phew ok, forgot i could ctrl z in dreamweaver lol

balinor 03-24-2008 06:31 AM

Re: Importing customer accounts
 
Ok, here's a piece of advice....forget DW, that will only mess up your code. Use FTP to make backups of EVERYTHING before you start editing, and get yourself a good text editor like Ultraedit. NEVER edit a PHP file or a template without making a backup first, no matter how small the edit, as a code error can shut down your site.

toolexperts 03-24-2008 10:47 AM

Re: Importing customer accounts
 
ok hrm...got a backup of the resister.php sent to me by my host...still getting a message that there is an unexpected = in line 201....and this also occurs when attempting to checkout...

}
$fillerror (!empty($error) || empty($passwd1) || empty($passwd2) || $passwd1 ! $passwd2 || strlen($passwd1) > 64 || strlen($passwd2) > 64);

if (!$fillerror) {
if ($default_fields['b_country']['avail'] != 'Y') {
$b_country = $config['General']['default_country'];
if ($default_fields['s_country']['avail'] != 'Y')
$s_country = $config['General']['default_country'];
}

toolexperts 03-24-2008 10:48 AM

Re: Importing customer accounts
 
i feel like having a mental breakdown

balinor 03-24-2008 11:08 AM

Re: Importing customer accounts
 
Again, you'll need to use that thread...post any issues you have there and people who have implemented that can help you. It is not an easy mod to implement.

toolexperts 03-24-2008 11:16 AM

Re: Importing customer accounts
 
that's just it there shouldn't be any mods anymore...it's supposed to be the virgin file

balinor 03-24-2008 11:29 AM

Re: Importing customer accounts
 
It probably has the old file cached...close your browser, clear your history and try it again. Also try running the 'force cache regeneration' tool in Summary/Tools

toolexperts 05-06-2008 09:02 AM

Re: Importing customer accounts
 
yup...this was fixed long ago


All times are GMT -8. The time now is 11:22 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.