DIY sync

WooCommerce FLOWii Connector


List of action and filter hooks supported by the WooCommerce FLOWii Connector plugin. You can use this hooks in your e-shop templates by adding them to the functions.php file or by using the plugin for snippet hooks.

tlw_wc_flowii_conn_sync_order

  • filter hook for modifying the output fields with order data from the e-shop to FLOWii
/**
 * filter hook for order sync to FLOWii
 * @param array $order_flowii order request output to FLOWii
 * @param obj $order eshop order data
 * @param str $flowii_customer_id FLOWii partner ID
 * @param str $flowii_contract_id FLOWii contract ID
 * @return array final order request to FLOWii
 */
add_filter('tlw_wc_flowii_conn_sync_order', function($order_flowii, $order, $flowii_customer_id, $flowii_contract_id) {
     return $order_flowii;
}, 10, 4);

tlw_wc_flowii_conn_sync_order_item

  • filter hook for modifying the output fields with item data in the order from the e-shop to FLOWii
/**
 * filter hook for order item sync to FLOWii
 * @param array $order_item_flowii order item request output to FLOWii
 * @param obj $item eshop order item
 * @return array final order item request to FLOWii
 */
add_filter('tlw_wc_flowii_conn_sync_order_item', function($order_item_flowii, $item) {
     return $order_item_flowii;
}, 10, 2);

tlw_wc_flowii_conn_sync_contract

  • filter hook for modifying the output fields with deal data from the e-shop to FLOWii
/**
 * filter hook for contract sync to FLOWii
 * @param array $contract_flowii contract request output to FLOWii
 * @param obj $order eshop order data
 * @param str $flowii_customer_id FLOWii partner ID
 * @return array final contract request to FLOWii
 */
add_filter('tlw_wc_flowii_conn_sync_contract', function($contract_flowii, $order, $flowii_customer_id) {
     return $contract_flowii;
}, 10, 3);

tlw_wc_flowii_conn_sync_product

  • filter hook for modifying the input fields with simple or variable product data from FLOWii to the e-shop
/**
 * filter hook for product sync from FLOWii to eshop
 * @param array $product_eshop product request output to eshop
 * @param obj $product_flowii FLOWii product data
 * @return array final product request to eshop
 */
add_filter('tlw_wc_flowii_conn_sync_product', function($product_eshop, $product_flowii) {
     return $product_eshop;
}, 10, 2);

tlw_wc_flowii_conn_sync_partner

  • filter hook for modifying the output fields with customer data from the e-shop to FLOWii
/**
 * filter hook for customer sync to FLOWii
 * @param array $customer customer request output to FLOWii
 * @param obj $order eshop order data
 * @param obj $flowii_customer FLOWii partner data
 * @return array final customer request to FLOWii
 */
add_filter('tlw_wc_flowii_conn_sync_partner', function($customer, $order, $flowii_customer) {
     return $customer;
}, 10, 3);
Cookie settings
WooConn.sk logo

This website uses cookies so that we can provide you with the best possible experience with the use of our website. We store the information in cookies stored in your browser and thanks to them we know what interests you the most and thanks to that we can create such content that you may be interested in.

Necessary cookies

these cookies are used to ensure the operation of this website

Statistical cookies

these cookies are used to anonymously obtain information about traffic to this website