Answer the question
In order to leave comments, you need to log in
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
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
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',
) );
} );
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;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question