Answer the question
In order to leave comments, you need to log in
How to implement registration on two sites at the same time?
There are two sites on CMS Wordpress and CMS Opencart.
The idea is that a person who registered on the website of the online store (CMS OPENCART) could enter the forum site (CMS Wordpress) using the login and password entered during registration in the online store.
Here is such a task)
How to implement it correctly?
Answer the question
In order to leave comments, you need to log in
1. https
: //nikita-sp.com.ua/2015/12/sistema-sobyitiy-...
Next, the handler
public function on_customer_add($customer_id) {
$this->load->model('account/customer');
$customer_info = $this->model_account_customer->getCustomer($customer_id);
$admin_mail = $this->config->get('config_email');
// тут curlом отправляешь запрос на ВП
}
if(isset($_POST['new_register']))
register_new_user( $user_login, $user_email );
If you want to "implement it more correctly" then you are in the direction of OAuth. Both WP and OpenCart have the necessary plugins.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question