DIY sync

WooCommerce KROS Omega Connector


List of action and filter hooks supported by the WooCommerce KROS Omega 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_omega_conn_order_sync

  • filter hook for modifying the output fields with order or invoice data from the e-shop to Omega
/**
 * filter hook for order or invoice sync to Omega
 * @param array $order_sync order or invoice request output to Omega
 * @param obj $order eshop order data
 * @return array final order or invoice request output to Omega
 */
add_filter('tlw_omega_conn_order_sync', function($order_sync, $order) {
     return $order_sync;
}, 10, 2);

tlw_omega_conn_order_sync_item_product

  • filter hook for modifying the output fields with product item data in an order or invoice from the e-shop to Omega
/**
 * filter hook for order or invoice product item sync to Omega
 * @param array $order_item order or invoice product item request output to Omega
 * @param obj $item eshop order item data
 * @param obj $product eshop product data
 * @return array final order product item request to Omega
 */
add_filter('tlw_omega_conn_order_sync_item_product', function($order_item, $item, $product) {
     return $order_item;
}, 10, 3);

tlw_omega_conn_order_sync_item_fee

  • filter hook for modifying the output fields with extra fee item data in an order or invoice from the e-shop to Omega
/**
 * filter hook for order or invoice fee item sync to Omega
 * @param array $order_item order or invoice fee item request output to Omega
 * @param obj $item eshop order item data
 * @return array final fee order item request to Omega
 */
add_filter('tlw_omega_conn_order_sync_item_fee', function($order_item, $item) {
     return $order_item;
}, 10, 2);

tlw_omega_conn_order_sync_item_shipping

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

tlw_omega_conn_product_sync

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

tlw_omega_conn_product_variation_sync

  • filter hook for modifying the input fields with product variant data from Omega to the e-shop
/**
 * filter hook for sync product variation request to eshop
 * @param arr $variation_eshop eshop product variation data
 * @param obj $product_omega Omega product data
 * @return arr eshop product variation data request
 */
add_filter('tlw_omega_conn_product_variation_sync', function($variation_eshop, $product_omega) {
    return $variation_eshop;
}, 10, 2);
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