After create account redirect to homepage

after create account redirect to homepage

How to redirect???

Thank you

Dear,



For that, you need to edit



cs-cart/controllers/common/profiles.post.php



Find

```php

if ($res = fn_update_user(0, $_REQUEST[‘user_data’], $_auth, !empty($_REQUEST[‘ship_to_another’]), (AREA == ‘A’ ? !empty($_REQUEST[‘notify_customer’]) : true))) {

$suffix = ‘update’;

list($user_id, $profile_id) = $res;

if(isset($cUser_data) && $cUser_data[‘user_type’]==‘S’){

fn_attach_image_pairs(‘designer_image’, ‘designer’, $user_id);



}

// Cleanup user info stored in cart

if (!empty($_SESSION[‘cart’]) && !empty($_SESSION[‘cart’][‘user_data’]) && AREA != ‘A’) {

unset($_SESSION[‘cart’][‘user_data’]);

}



if (Registry::get(‘settings.General.user_multiple_profiles’) == ‘Y’) {

$suffix .= “&profile_id=$profile_id”;

}



if (AREA == ‘A’) {

$suffix .= “&user_id=$user_id”;

}



// Delete anonymous authentication

if (AREA != ‘A’) {

if ($cu_id = fn_get_cookie(‘cu_id’) && !empty($auth[‘user_id’])) {

fn_delete_cookies(‘cu_id’);

}

}

} else {

$suffix = ‘add’;

}



return array(CONTROLLER_STATUS_OK, “$index_script?dispatch=profiles.” . $suffix);

```

Replace it with

```php

if ($res = fn_update_user(0, $_REQUEST[‘user_data’], $_auth, !empty($_REQUEST[‘ship_to_another’]), (AREA == ‘A’ ? !empty($_REQUEST[‘notify_customer’]) : true))) {

$suffix = ‘update’;

list($user_id, $profile_id) = $res;

if(isset($cUser_data) && $cUser_data[‘user_type’]==‘S’){

fn_attach_image_pairs(‘designer_image’, ‘designer’, $user_id);



}

// Cleanup user info stored in cart

if (!empty($_SESSION[‘cart’]) && !empty($_SESSION[‘cart’][‘user_data’]) && AREA != ‘A’) {

unset($_SESSION[‘cart’][‘user_data’]);

}



if (Registry::get(‘settings.General.user_multiple_profiles’) == ‘Y’) {

$suffix .= “&profile_id=$profile_id”;

}



if (AREA == ‘A’) {

$suffix .= “&user_id=$user_id”;

}



// Delete anonymous authentication

if (AREA != ‘A’) {

if ($cu_id = fn_get_cookie(‘cu_id’) && !empty($auth[‘user_id’])) {

fn_delete_cookies(‘cu_id’);

}

}



return array(CONTROLLER_STATUS_OK, “$index_script”);

} else {

$suffix = ‘add’;



return array(CONTROLLER_STATUS_OK, “$index_script?dispatch=profiles.” . $suffix);

}



```





Enjoy

Please help

[quote name=‘andreycosmin’]Please help[/QUOTE]



Did the solution that Perochak provided not work?

Greate works thnak you

[quote name=‘andreycosmin’]Greate works thnak you[/QUOTE]



You are welcome