DIY sync

WooCommerce Pharmacy HITT Connector


List of action and filter hooks supported by the plugin WooCommerce Pharmacy HITT Connector. 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_pharmacy_hitt_conn_order_sync

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

tlw_pharmacy_hitt_conn_order_product

  • filter hook for modifying the output fields with product item data in an order from the e-shop to Pharmacy HITT
/**
 * filter hook for order product item sync to Pharmacy HITT
 * @param arr $order_item order product item request output to Pharmacy HITT
 * @param obj $item eshop order item data
 * @return arr final order product item request to Pharmacy HITT
 */
add_filter('tlw_pharmacy_hitt_conn_order_product', function($order_item, $item) {
     return $order_item;
}, 10, 2);

tlw_pharmacy_hitt_conn_order_fee

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

tlw_pharmacy_hitt_conn_order_shippping

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

tlw_pharmacy_hitt_conn_sync_product

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

tlw_pharmacy_hitt_conn_sync_product_variation

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