CS CART user creation via custom code – Multi Vendor Version


Hi there,

Today we will take a look about the user creation via code.

create a php file what ever you wants from the root of the cs cart folder.


define('AREA', 'C');
define('AREA_NAME', 'customer');
require dirname(__FILE__) . '/prepare.php';
require dirname(__FILE__) . '/init.php';
$user_id = $notify_user = $ship_to_another = '';
$user_data = array( 'email' => 'manisanjai@gmail.com',
'password1' => '123456',
'password2' => '123456',
'birthday' => '14/01/1988',
'b_firstname' => 'Manimaran',
'b_lastname' => 'Kalimuthu',
'b_address' => '25, 2nd street',
'b_address_2' => 'test',
'b_city' => 'test',
'b_country' => 'IN',
'b_state' => 'Tamilnadu',
'b_zipcode' => '620008',
'b_phone' => '12345678',
'user_type' => 'C'
);
$_result = fn_update_user($user_id, $user_data, $auth, $ship_to_another,$notify_user);
print_r($_result); // You can get an array with profile id and user id.
}

Just copy and paste this code to your php file. Then execute the file from the browser. You can get the result as an array with user id and profile id.

That’s All.

I hope it helps some one.

Thanks.

One thought on “CS CART user creation via custom code – Multi Vendor Version

  1. What i don’t understood is actually how you are now not really a lot more smartly-appreciated than you might be right now. You’re so
    intelligent. You know thus considerably in terms of this matter, made me
    personally believe it from numerous varied angles. Its like women and men are not interested unless it’s one thing to accomplish with Lady gaga! Your individual stuffs outstanding. All the time take care of it up!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s