Yes, you can configure our Billomat WooCommerce plugin individually according to your needs so that it works optimally with your online shop. Use the following filters for this purpose.
Transfer of the WooCommerce customer data to the Billomat API: woocommerce_billomat_customer_export_data
Description: Used for the transfer of the WooCommerce customer data to the Billomat API (customer) (export)
add_filter( 'woocommerce_billomat_customer_export_data', 'filter_function_name', 10, 2 );
function filter_function_name( $data, $user_meta ) {
// Process Billomat client data here
return $data;
}
Transfer of the Billomat customer data to WooCommerce: woocommerce_billomat_customer_import_data
Description: Used for the transfer of the Billomat customer data to WooCommerce (import)
add_filter( 'woocommerce_billomat_customer_import_data', 'filter_function_name', 10, 2 );
function filter_function_name( $user_meta, $api_data ) {
// Process user meta here
return $user_meta;
}
Transfer of the WooCommerce product data to the Billomat API: woocommerce_billomat_invoice_data
Description: Used for the transfer of the WooCommerce purchase data to the Billomat API (invoice) (export)
add_filter( 'woocommerce_billomat_invoice_data', 'filter_function_name', 10, 2 );
function filter_function_name( $data, $order ) {
// Process Billomat invoice data here
return $data;
}
Transfer of the Billomat article data to WooCommerce: woocommerce_billomat_product_import_data
Description: Used for the transfer of the Billomat article data to WooCommerce (import)
add_filter( 'woocommerce_billomat_product_import_data', 'filter_function_name', 10, 2 );
function filter_function_name( $product_data, $api_data ) {
// Process product data here
return $product_data;
}
Transfer of the WooCommerce purchase data to the Billomat API: woocommerce_billomat_invoice_data
Description: Used for the transfer of the WooCommerce purchase data to the Billomat API (invoice) (export)
add_filter( 'woocommerce_billomat_invoice_data', 'filter_function_name', 10, 2 );
function filter_function_name( $data, $order ) {
// Process Billomat invoice data here
return $data;
}
Generation of the customer address for the transfer to the Billomat API: woocommerce_billomat_invoice_address_data
Description: Used for the generation of the customer address of a purchase order for the transfer to the Billomat API (invoice) (export)
add_filter( 'woocommerce_billomat_invoice_address_data', 'filter_function_name', 10, 2 );
function filter_function_name( $address_data, $customer_id ) {
// Process adress data here
return $address_data;
}
Generation of a WooCommerce purchase item for the transfer to the Billomat API: woocommerce_billomat_invoice_item_data
Description: Used for the Generation of a WooCommerce purchase item for the transfer to the Billomat API (invoice item) (export)
add_filter( 'woocommerce_billomat_invoice_item_data', 'filter_function_name', 10, 2 );
function filter_function_name( $invoice_item_data, $order_item ) {
// Process invoice item data here
return $invoice_item_data;
}
Addition of a WooCommerce order action for the display of an invoice button in the order overview: woocommerce_billomat_invoice_button_action
Description: Used for the addition of a WooCommerce order action for the display of an invoice button in the order overview.
add_filter( 'woocommerce_billomat_invoice_button_action', 'filter_function_name', 10, 2 );
function filter_function_name( $invoice_button_action ) {
// Modify button action
return $invoice_button_action;
}
You can find a summary of all the available filters in the Plugin manual.