DIY sync

WooCommerce Pohoda Exporter


List of action and filter hooks supported by the WooCommerce Pohoda Exporter 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_pohoda_exporter_invoice

  • filter hook for modifying the ouput fields with invoice data
/**
 * filter hook for invoice XML to Pohoda
 * @param array $invoice invoice request output to Pohoda
 * @param obj $invoice_setting plugin setting of generating invoices
 * @return array final invoice XML request to Pohoda
 */
add_filter('tlw_wc_pohoda_exporter_invoice', function($invoice, $invoice_setting) {
     return $invoice;
}, 10, 2);

tlw_wc_pohoda_exporter_invoice_product

  • filter hook for modifying the output fields with product item data in generated invoice
/**
 * filter hook for invoice product item in XML to Pohoda
 * @param array $invoice_item product item request output to Pohoda
 * @param obj $item eshop order item data
 * @param obj $order eshop order data
 * @param bool $foreign_country flag of foreign country
 * @param bool $foreign_currency flag of foreign currency
 * @return array final invoice product item XML request to Pohoda
 */
add_filter('tlw_wc_pohoda_exporter_invoice_product', function($invoice_item, $item, $order, $foreign_country, $foreign_currency) {
     return $invoice_item;
}, 10, 5);

tlw_wc_pohoda_exporter_invoice_fee

  • filter hook for modifying the output fields with fee item data in generated invoice
/**
 * filter hook for invoice fee item in XML to Pohoda
 * @param array $invoice_item fee item request output to Pohoda
 * @param obj $item eshop order item data
 * @param obj $order eshop order data
 * @param bool $foreign_country flag of foreign country
 * @param bool $foreign_currency flag of foreign currency
 * @return array final fee item XML request to Pohoda
 */
add_filter('tlw_wc_pohoda_exporter_invoice_fee', function($invoice_item, $item, $order, $foreign_country, $foreign_currency) {
     return $invoice_item;
}, 10, 5);

tlw_wc_pohoda_exporter_invoice_shipping

  • filter hook for modifying the output fields with shipping item data in generated invoice
/**
 * filter hook for invoice shipping item in XML to Pohoda
 * @param array $invoice_item shipping item request output to Pohoda
 * @param obj $order eshop order data
 * @param bool $foreign_country flag of foreign country
 * @param bool $foreign_currency flag of foreign currency
 * @return array final shipping item XML request to Pohoda
 */
add_filter('tlw_wc_pohoda_exporter_invoice_shipping', function($invoice_item, $order, $foreign_country, $foreign_currency) {
     return $invoice_item;
}, 10, 4);

tlw_wc_pohoda_exporter_check_allow_oss

  • filter hook for modifying the detection of the application of the OSS mode
/**
 * filter hook for detection OSS mode
 * @param bool $result allowed or not allowed OSS mode in order
 * @param obj $order eshop order data
 * @param array $company_billing_data company billing data in eshop order
 * @return bool
 */
add_filter('tlw_wc_pohoda_exporter_check_allow_oss', function($result, $order, $company_billing_data) {
     return $result;
}, 10, 3);

tlw_wc_pohoda_exporter_reg_vat_eu

  • filter hook for modifying the assignment of a merchant’s VAT registration in another EU country
/**
 * filter hook for modifying registration EU VAT in other EU country to Pohoda
 * @param str $eu_vat EU VAT registrated in other EU country
 * @param obj $order eshop order data
 * @param array $company_billing_data company billing data in eshop order
 * @return str EU VAT
 */
add_filter('tlw_wc_pohoda_exporter_reg_vat_eu', function($eu_vat, $order, $company_billing_data) {
     return $eu_vat;
}, 10, 3);