DIY sync

WooCommerce OBERON Connector


List of action and filter hooks supported by the WooCommerce OBERON 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_oberon_conn_sync_order

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

tlw_wc_oberon_conn_sync_order_product

  • filter hook for modifying the output fields with product item data in the order from the e-shop to OBERON
/**
 * filter hook for order product item sync to OBERON
 * @param array $order_item order product item request output to OBERON
 * @param obj $item eshop order item data
 * @param obj $order eshop order data
 * @param bool $foreign_currency whethear eshop order is in foreign currency
 * @param str $currency_rate currency rate of foreign currency
 * @return array final order product item request to OBERON
 */
add_filter('tlw_wc_oberon_conn_sync_order_product', function($order_item, $item, $order, $foreign_currency, $currency_rate) {
     return $order_item;
}, 10, 5);

tlw_wc_oberon_conn_sync_order_item_quantity

  • filter hook for modifying the item quantity in the order from the e-shop to OBERON
/**
 * filter hook for item quantity to sync order product to OBERON
 * @param str $item_quantity order product item quantity to OBERON
 * @param obj $item eshop order item data
 * @return str final order product item quantity to OBERON
 */
add_filter('tlw_wc_oberon_conn_sync_order_item_quantity', function($item_quantity, $item) {
     return $item_quantity;
}, 10, 2);

tlw_wc_oberon_conn_sync_order_fee

  • filter hook for modifying the output fields with extra fee item data in the order from the e-shop to OBERON
/**
 * filter hook for order fee item sync to OBERON
 * @param array $order_item order fee item request output to OBERON
 * @param obj $item eshop order item data
 * @param obj $order eshop order data
 * @param bool $foreign_currency whethear eshop order is in foreign currency
 * @param str $currency_rate currency rate of foreign currency
 * @return array final order fee item request to OBERON
 */
add_filter('tlw_wc_oberon_conn_sync_order_fee', function($order_item, $item, $order, $foreign_currency, $currency_rate) {
     return $order_item;
}, 10, 5);

tlw_wc_oberon_conn_sync_order_shipping

  • filter hook for modifying the output fields with shipping item data in the order from the e-shop to OBERON
/**
 * filter hook for order shipping item sync to OBERON
 * @param array $order_item order shipping item request output to OBERON
 * @param obj $order eshop order data
 * @param bool $foreign_currency whethear eshop order is in foreign currency
 * @param str $currency_rate currency rate of foreign currency
 * @return array final order shipping item request to OBERON
 */
add_filter('tlw_wc_oberon_conn_sync_order_shipping', function($order_item, $order, $foreign_currency, $currency_rate) {
     return $order_item;
}, 10, 4);

tlw_wc_oberon_conn_sync_product

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

tlw_wc_oberon_conn_sync_product_variation

  • filter hook for modifying the input fields with product variation data from OBERON to the e-shop
/**
 * filter hook for product variation sync from OBERON to eshop
 * @param array $product_variation_eshop product variation request output to eshop
 * @param array $variation prepared product variation from OBERON product data
 * @param obj $product_oberon OBERON product data
 * @param array $oberon_images OBERON product images
 * @return array final product variation request to eshop
 */
add_filter('tlw_wc_oberon_conn_sync_product_variation', function($product_variation_eshop, $variation, $product_oberon, $oberon_images) {
     return $product_variation_eshop;
}, 10, 4);

tlw_wc_oberon_conn_sync_product_image

  • filter hook for modifying the input fields with product image data from OBERON to the e-shop
/**
 * filter hook for product image sync from OBERON to eshop
 * @param array $image_eshop product image request output to eshop
 * @param array $image_oberon OBERON product image data
 * @return array final product image request to eshop
 */
add_filter('tlw_wc_oberon_conn_sync_product_image', function($image_eshop, $image_oberon) {
     return $image_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