Custom Text: This is some additional information for the order.
'; } ); ``` -------------------------------- ### oss_woocommerce_enable_logging Filter Source: https://vendidero.de/doc/woocommerce-germanized/oss-hooks Enables logging for WooCommerce. ```php add_filter( "oss_woocommerce_enable_logging", function( $param ) { // Do something return $param; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_small_business_notice Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/10 Filters the (global) small business notice. ```php add_filter( "woocommerce_gzd_small_business_notice", function( $html ) { // Do something return $html; }, 10, 1 ); ``` -------------------------------- ### Shortcode für Nachrichtenanzeige Source: https://vendidero.de/doc/woocommerce-germanized/retouren-konfigurieren-und-verwalten Fügen Sie diesen Shortcode vor dem Retourenformular-Shortcode ein, um Nachrichten (z.B. Erfolgs- oder Fehlermeldungen) auf der Seite anzuzeigen. ```html [shop_messages] ``` -------------------------------- ### woocommerce_gzd_small_business_product_notice Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/9 Filter to adjust the small business product notice. ```php add_filter( "woocommerce_gzd_small_business_product_notice", function( $html ) { // Do something return $html; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_before_add_order_item_meta Action Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/6 Fires before Germanized adds order item meta. ```php add_action( "woocommerce_gzd_before_add_order_item_meta", function( $item, $order, $gzd_item ) { // Do something }, 10, 3 ); ``` -------------------------------- ### woocommerce_gzd_enable_b2b_market_unit_price_compatibility Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/6 Filter to enable B2B market unit price compatibility. ```php add_filter( "woocommerce_gzd_enable_b2b_market_unit_price_compatibility", function( $param ) { // Do something return $param; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_order_defect_descriptions Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/11 Returns a list of defect descriptions on a per product base for orders. ```php add_filter( "woocommerce_gzd_order_defect_descriptions", function( $descriptions, $items ) { // Do something return $descriptions; }, 10, 2 ); ``` -------------------------------- ### woocommerce_gzd_before_get_unit_price_html Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/8 Action hook that fires before the HTML output for the unit price is generated. ```php add_action( "woocommerce_gzd_before_get_unit_price_html", function( $this ) { // Do something }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_product_is_doing_price_html_action Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/8 Filter for product is doing price html action. ```php add_filter( "woocommerce_gzd_product_is_doing_price_html_action", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 ); ``` -------------------------------- ### woocommerce_gzd_is_loadable Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/10 Filter for loadable status. ```php add_filter( "woocommerce_gzd_is_loadable", function( $param ) { // Do something return $param; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_customer_opt_in_finished Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/4 Action hook that fires after a customer's opt-in process is finished, meaning they have been marked as opted-in and received the confirmation email. The customer may already be authenticated at this point. ```php add_action( "woocommerce_gzd_customer_opt_in_finished", function( $user ) { // Do something }, 10, 1 ); ``` -------------------------------- ### wc_gzd_force_pay_order_params Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/11 Filters parameters for forcing order payment. ```php add_filter( "wc_gzd_force_pay_order_params", function( $param ) { // Do something return $param; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_product_virtual_vat_exception Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/8 Filter that allows marking a product as virtual vat exception. ```php add_filter( "woocommerce_gzd_product_virtual_vat_exception", function( $is_exception, $product ) { // Do something return $is_exception; }, 10, 2 ); ``` -------------------------------- ### woocommerce_germanized_loaded Action Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/11 Fires right after all relevant files for Germanized have been loaded. ```php add_action( "woocommerce_germanized_loaded", function( ) { // Do something }, 10 ); ``` -------------------------------- ### woocommerce_gzd_product_safety_instructions_heading Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks Filter to modify the heading for product safety instructions. ```php add_filter( "woocommerce_gzd_product_safety_instructions_heading", function( $param ) { // Do something return $param; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_small_business_show_total_vat_notice Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/9 Filter to show total VAT notice for small businesses. ```php add_filter( "woocommerce_gzd_small_business_show_total_vat_notice", function( $param ) { // Do something return $param; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_show_taxes_before_total Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/10 Determines whether to show taxes before the total. ```php add_filter( "woocommerce_gzd_show_taxes_before_total", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 ); ``` -------------------------------- ### Tausch von Bestellübersicht mit Zahlungsarten Source: https://vendidero.de/doc/woocommerce-germanized/umsetzung-der-button-loesung-im-woocommerce-checkout Der Standard WooCommerce One-Page-Checkout fügt die Auswahl der Zahlungsarten direkt oberhalb des Kaufen-Buttons ein. Das ist u.a. lt. Auffassung des Händlerbundes nicht zulässig. Stattdessen tauscht Germanized diesen beiden Bereich aus und sorgt dafür, dass die Bestellübersicht (Auflistung der Produkte, Produktmerkmale, Gesamtbetrag usw.) direkt vor dem Kaufen-Button platziert wird. Technisch wird dieser Tausch, wie in WooCommerce vorgesehen, per `remove_action` vorgenommen, indem die Standard-Prioritäten getauscht werden. Zusätzlich dazu fügt Germanized die Überschrift _Zahlungsart auswählen_ für die separate Kennzeichnung des gleichnamigen Bereiches ein und bewegt die Überschrift _Deine Bestellung_ nach unten zur Bestellübersicht. ```php remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 ); remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_order_review', 10 ); add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_order_review', 20 ); add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 10 ); ``` -------------------------------- ### woocommerce_gzd_edit_product_food_panel Action Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks No description ```php add_action( "woocommerce_gzd_edit_product_food_panel", function( ) { // Do something }, 10 ); ``` -------------------------------- ### woocommerce_gzd_allow_b2b_photovoltaic_system_vat_exemption Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/11 Allows or disallows B2B photovoltaic system VAT exemption. ```php add_filter( "woocommerce_gzd_allow_b2b_photovoltaic_system_vat_exemption", function( $param ) { // Do something return $param; }, 10, 1 ); ``` -------------------------------- ### woocommerce_gzd_customer_applies_for_photovoltaic_system_vat_exemption Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/11 Filters whether the customer applies for photovoltaic system VAT exemption. ```php add_filter( "woocommerce_gzd_customer_applies_for_photovoltaic_system_vat_exemption", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 ); ``` -------------------------------- ### woocommerce_gzd_customer_account_activation_query Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/4 Filter hook for modifying the query related to customer account activation. ```php add_filter( "woocommerce_gzd_customer_account_activation_query", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 ); ``` -------------------------------- ### woocommerce_gzd_get_product_nutrients Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/7 Filter to adjust product nutrients. ```php add_filter( "woocommerce_gzd_get_product_nutrients", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 ); ``` -------------------------------- ### wc_gzd_frontend_hook_priority Filter Source: https://vendidero.de/doc/woocommerce-germanized/germanized-core-hooks/2 Filters frontend hook priority. ```php add_filter( "wc_gzd_frontend_hook_priority", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 ); ```