Page 1 of 1

Email Decorators in 20.7.2

Posted: 16 Sep 2020, 13:40
by boettner
Hi all,

how do I have to configure my Decorators in the email client. My 18.10 configuration seems not to work anymore:

Code: Select all

plugin.tx_aimeos {
    settings {
        client {
            html {
                email {
                    ...
                    payment {
                        standard {
                            subparts {
                                0 = html
                                1 = text
                            }
                        }
                        html {
                            summary {
                                decorators {
                                    global {
                                        0 = Decorator01
                                        1 = Decorator02
                                    }
                                }
                            }
                        }

                        text {
                            summary {
                                decorators {
                                    global {
                                        0 = Decorator01
                                        1 = Decorator02
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
Thanks
Robert.

Re: Email Decorators in 20.7.2

Posted: 16 Sep 2020, 20:35
by aimeos
There is no summary sub-part any more and it has been flattend so you have to add your decorator to the e-mail payment HTML sub-part directly.

Re: Email Decorators in 20.7.2

Posted: 17 Sep 2020, 08:34
by boettner
Thanks for the hint!

I solved it this way to include it globally in the email job

Code: Select all

plugin.tx_aimeos {
    settings {
        client {
            html {
                common {
                    decorators {
                        default {
                            0 = TheDecorator
                        }
                    }
                }
                email {
                    payment {
                    ...
                    }
                }
            }
        }
    }
}
While your suggestion of course works too:

Code: Select all

plugin.tx_aimeos {
    settings {
        client {
            html {
                email {
                    ...
                    payment {
                        decorators {
                            default {
                                0 = TheDecorator
                            }
                        }
                    }
                }
            }
        }
    }
}