DIY sync

WooCommerce KROS Alfa+ Connector


List of action and filter hooks supported by the WooCommerce KROS Alfa+ 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_alfaplus_conn_order_sync

  • filter hook for modifying the output fields with order data from the e-shop to Alfa+
/**
 * filter hook for order sync to Alfa+
 * @param array $order_sync order request output to Alfa+
 * @param obj $order eshop order data
 * @param array $custom_company_data order company billing data
 * @return array final order request output to Alfa+
 */
add_filter('tlw_alfaplus_conn_order_sync', function($order_sync, $order, $custom_company_data) {
     return $order_sync;
}, 10, 3);

tlw_alfaplus_conn_order_sync_item_product

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

tlw_alfaplus_conn_order_sync_item_fee

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

tlw_alfaplus_conn_order_sync_item_shipping

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

tlw_alfaplus_conn_invoice_sync

  • filter hook for modifying the output fields with invoice data from the e-shop to Alfa+
/**
 * filter hook for invoice sync to Alfa+
 * @param array $invoice_sync invoice request output to Alfa+
 * @param obj $order eshop order data
 * @param array $custom_company_data order company billing data
 * @return array final invoice request output to Alfa+
 */
add_filter('tlw_alfaplus_conn_invoice_sync', function($invoice_sync, $order, $custom_company_data) {
     return $invoice_sync;
}, 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