Email Decorators in 20.7.2

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
boettner
Advanced
Posts: 136
Joined: 09 Feb 2015, 17:49

Email Decorators in 20.7.2

Post by boettner » 16 Sep 2020, 13:40

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.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Email Decorators in 20.7.2

Post by aimeos » 16 Sep 2020, 20:35

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

boettner
Advanced
Posts: 136
Joined: 09 Feb 2015, 17:49

Re: Email Decorators in 20.7.2

Post by boettner » 17 Sep 2020, 08:34

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
                            }
                        }
                    }
                }
            }
        }
    }
}

Post Reply