L
L
LastGeneral2021-04-30 09:38:31
Bitrix24
LastGeneral, 2021-04-30 09:38:31

How to integrate Bitrix24 into Wordpress?

Tell me a good plugin or how can I do such an integration?
Website on woocommerce, the goal is to collect a customer base

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Paimurzin, 2021-05-04
@rusellsystems

I think that the best option is the Bitrix24 Rest API plus a custom Wordpress API (you can make your own paths and API handlers there) and your own code if a box or no-code services like Integromat https://www.integromat.com/?pc=xx6668
609074ea64727155260740.png
or like Zapier with a less-code approach (in Zapier you can insert your code in JavaScript (NodeJs) or Python directly in the processes https://zapier.com/apps/code/integrations )
It's very easy to create your own function and a new path for the Wordpress API , such as declaring a new API path to start with:

add_action( 'rest_api_init', function () {
  register_rest_route( 'wp/v2', '/<b>findNumOrdsProcessingOnly</b>/(?P[a-zA-Z0-9\-]+)', array(
    'methods' => 'GET',
    'callback' => 'my_awesome_func',
  ) );
} );

Thus, the new API function after installing your own plugin in Wordpress will look something like this:
https://yoursiteURL/wp-json/wp/v2/ findNumOrdsProcessingOnly /21E-1495
and the following function will be executed when called (here you can change it to your own function , here, for example, I pull out data filtering by orders from Woocommerce):
function my_awesome_func( $data ) {
  global $wpdb;
  $posts = $wpdb->get_results("SELECT id as post_id FROM $wpdb->posts WHERE post_status='wc-processing' AND id=(SELECT post_id FROM $wpdb->postmeta WHERE (meta_key='_wcson_order_number' AND meta_value='".$data['id']."') LIMIT 1)");
  if ( empty( $posts ) ) {
    return null;
  }
  return $posts;

}

Then pack everything in zip and install it as a plugin in your Wordpress.
As a result, you can use it in Integromat (or any other tool), it will look something like this:
60907a5587610951615333.png
Download the template from the address on our educational portal and use it for your tasks of expanding functionality and finer integrations between Wordpress and external systems, absolutely free:
https: //sell.systems/course/view.php?id=3§ion=4
60907dccd573f448684304.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question