• Resolved azlewa

    (@azlewa)


    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)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @azlewa,

    Greetings from WebToffee Support!

    Thank you for reaching out to us regarding the compatibility issues you have experienced with the Decorator – WooCommerce Email Customizer plugin and Germanized for WooCommerce plugin. We would like to inform you that the Decorator – WooCommerce Email Customizer plugin provides compatibility with the Germanized for WooCommerce plugin. However, the issue you have experienced, where some of the templates provided by the Germanized for WooCommerce plugin are not available for customization within the Decorator – WooCommerce Email Customizer plugin, is caused by the latest updates in both plugins. We have acknowledged this issue and taken necessary steps to address it. A solution for this will be provided in the upcoming release of the Decorator – WooCommerce Email Customizer plugin.

    Additionally, we would like to inform you that although the snippet you have shared will add the ‘Order Shipped’ template to the email types dropdown, it will not provide the provision to edit the template since the $shipment object is not available within the plugin. In order to achieve the provision to customize the template, the $shipment object should be available. Unfortunately, this cannot be achieved with a custom solution, and necessary modifications should be provided in the plugin to achieve this. We apologize for any inconvenience this may cause.

    As mentioned, we are currently in the process of providing full compatibility with the latest version of the Germanized for WooCommerce plugin, which will be available in the next release of the Decorator WooCommerce Email Customizer plugin. Once the update is released, you’ll be able to customize the ‘Order Shipped’ template seamlessly.

    Thank you for your patience and understanding as we work to resolve these issues. If you have any further questions or concerns, please don’t hesitate to reach out.

    Thread Starter azlewa

    (@azlewa)

    Thank you very much, I’ll wait for the upcoming release then.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Order shipped” template from Germanized’ is closed to new replies.