“Order shipped” template from Germanized
-
I recently discovered the Decorator plugin and I see that it is partially compatible with the “Germanized for WooCommerce” plugin, some of its templates are supported. However, the “Order shipped” template from Germanized is not supported (yet?). So I tried adding this template via the provided filters:
add_filter( 'wt_decorator_supported_email_classes', function ($classes) { return array_merge($classes, [ 'customer_shipment' => 'WC_GZD_Email_Customer_Shipment', ]); }); add_filter( 'wt_decorator_email_template_types', function ($types) { return array_merge($types, [ 'customer_shipment' => _x( 'Order shipped', 'shipments', 'woocommerce-germanized' ), ]); });
This way the “Order shipped” template appears in the dropdown list. The only problem is that the template needs the $shipment object which Decorator doesn’t provide, so the preview with the mockup data doesn’t really work. Could you please tell if there’s an easy way to provide that $shipment object?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘“Order shipped” template from Germanized’ is closed to new replies.