- Sidebar-Menü „Bestellungen" in „Versand" umbenannt (layout-sidenav), sonst nur Blade-Formatierung. - Entwicklungspläne in ISO-Datumsformat umbenannt (entwicklungsplan-aktualisiert-*). - dev/dhl-for-woocommerce/ (DHL-Plugin) + dev/partnercenter-api.zip + PastedGraphic hinzugefügt. - .claude/ bewusst NICHT eingecheckt (lokale Claude-Code-Konfiguration). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
50 lines
2 KiB
PHP
50 lines
2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* PR_DHL_WC_Product_Editor_Deutsche_Post class file.
|
|
* Adds Deutsche Post product fields.
|
|
*/
|
|
if (! defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
|
|
if (! class_exists('PR_DHL_WC_Product_Editor_Deutsche_Post')) {
|
|
/**
|
|
* PR_DHL_WC_Product_Editor_Deutsche_Post class.
|
|
*/
|
|
class PR_DHL_WC_Product_Editor_Deutsche_Post extends PR_DHL_WC_Product_Editor
|
|
{
|
|
/**
|
|
* Class constructor.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->manufacture_tooltip = esc_html__('Country of origin of goods. Mandatory for all non-EU shipments. Appears on CN22 (Deutsche Post International).', 'dhl-for-woocommerce');
|
|
$this->manufacture_country_label = esc_html__('Country of origin (Deutsche Post International)', 'dhl-for-woocommerce');
|
|
$this->hs_code_label = esc_html__('Harmonized Tariff code (Deutsche Post International)', 'dhl-for-woocommerce');
|
|
$this->hs_code_description = esc_html__('Optional information for non-EU shipments. Appears on CN22 (Deutsche Post International).', 'dhl-for-woocommerce');
|
|
}
|
|
|
|
/**
|
|
* Add additional product fields.
|
|
*/
|
|
public function additional_product_fields($parent): void
|
|
{
|
|
// Add shipment info on the order page Checkbox Block.
|
|
$parent->add_block(
|
|
[
|
|
'id' => '_dhl_export_description',
|
|
'blockName' => 'woocommerce/product-text-area-field',
|
|
'attributes' => [
|
|
'label' => __('Content description (Deutsche Post International)', 'dhl-for-woocommerce'),
|
|
'property' => 'meta_data._dhl_export_description',
|
|
'tooltip' => __('Description of goods (max 33 characters). Mandatory for all non-EU shipments. Appears on CN22 (Deutsche Post International).', 'dhl-for-woocommerce'),
|
|
],
|
|
]
|
|
);
|
|
}
|
|
}
|
|
|
|
}
|