This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'storeabill_invoice_get_template', function( $template, $invoice ) { | |
| if ( $invoice->get_company() ) { | |
| $template_id = 323; // the post id of the the template, see the URL when editing a template | |
| if ( $template = sab_get_document_template( $template_id ) ) { | |
| return $template; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_shiptastic_allow_customer_return_empty_return_reason', '__return_false' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_gzd_enable_force_pay_order', '__return_false' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'storeabill_invoice_hide_zero_taxes', '__return_false' ); | |
| add_filter( 'storeabill_invoice_cancellation_hide_zero_taxes', '__return_false' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'storeabill_invoice_einvoice_meta_buyer_reference_default', function( $default, $e_invoice, $invoice ) { | |
| $customer = $invoice->get_customer(); | |
| $order = $invoice->get_order(); | |
| // adjust default value.. | |
| return $default; | |
| }, 10, 3 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_gzdp_vat_address_type_by_countries', function() { | |
| return 'billing'; | |
| } ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'bulk_actions-edit-shop_order', 'my_child_register_bulk_actions' ); | |
| add_filter( 'bulk_actions-woocommerce_page_wc-orders', 'my_child_register_bulk_actions' ); | |
| add_filter( 'handle_bulk_actions-woocommerce_page_wc-orders', 'my_child_handle_bulk_action', 10, 3 ); | |
| add_filter( 'handle_bulk_actions-edit-shop_order', 'my_child_handle_bulk_action', 10, 3 ); | |
| function my_child_handle_bulk_action( $redirect_to, $action, $ids ) { | |
| $ids = apply_filters( 'woocommerce_bulk_action_ids', array_reverse( array_map( 'absint', $ids ) ), $action, 'order' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'storeabill_base_country_supports_einvoices', '__return_true' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_gzdp_vat_validator', '__return_false' ); | |
| add_filter( 'woocommerce_gzdp_vat_id_missing_validator_is_valid', function( $result, $country, $number ) { | |
| return array( | |
| 'valid' => true, | |
| 'vat_id' => $country . $number | |
| ); | |
| }, 10, 3 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_gzd_shipment_order_supports_email_transmission', '__return_true' ); |