add_action('woocommerce_store_api_checkout_update_order_from_request', function ($order, $request) { $extensions = $request->get_param('extensions'); if ( isset($extensions['bluelevel']['customer_type']) && !empty($extensions['bluelevel']['customer_type']) ) { $order->update_meta_data( '_bl_customer_type', sanitize_text_field($extensions['bluelevel']['customer_type']) ); } }, 10, 2); add_action('woocommerce_admin_order_data_after_billing_address', function ($order) { $customer_type = $order->get_meta('_bl_customer_type'); if ($customer_type) { $labels = [ 'private' => 'Privat', 'company' => 'Unternehmen', 'public' => 'Öffentliche Einrichtung', ]; echo '

Kundentyp: ' . esc_html($labels[$customer_type] ?? $customer_type) . '

'; } }); https://shop-ch.webrakete.ch/page-sitemap.xml 2026-04-02T16:55:25+00:00 https://shop-ch.webrakete.ch/attachment-sitemap.xml 2026-04-08T11:28:18+00:00 https://shop-ch.webrakete.ch/attachment-sitemap2.xml 2026-04-08T11:28:18+00:00 https://shop-ch.webrakete.ch/product-sitemap.xml 2026-04-10T12:39:17+00:00 https://shop-ch.webrakete.ch/product_cat-sitemap.xml 2026-04-10T12:39:17+00:00