CS CART Vendor 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', 'A');
define('AREA_NAME', 'admin');
define('ACCOUNT_TYPE', 'admin');
require dirname(__FILE__) . '/prepare.php';
require dirname(__FILE__) . '/init.php';
$user_data['company'] = "Test";
$user_data['status'] = "D";
$user_data['company'] = "Test";
$user_data['lang_code'] = "EN";
$user_data['commission'] = "";
$user_data['commission_type'] = "";
$user_data['email'] = "manisanjai@gmail.com";
$user_data['phone'] = "9944509663";
$user_data['url'] = "";
$user_data['fax'] = "";
$user_data['address'] = "test, Test street";
$user_data['country'] = "IN";
$user_data['state'] = "Tamilnadu";
$user_data['zipcode'] = "6000028";
$user_data['company_description'] = "Test Company";
$user_data['categories'] = "";
$user_data['shippings'] = '';
$result = fn_update_company($user_data);
echo $result; // You can get the results.

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.


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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s