Order of Service?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Rachel20
Posts: 1
Joined: 16 Apr 2020, 07:56

Order of Service?

Post by Rachel20 » 16 Apr 2020, 07:57

hi all.

I have a little question, but important for me. I have created two decorators for shipping. One of them calculates price based on country and second based on order total sum. For me it is important that country decorator must be executed first and then result of second decorator will be added to first. So what is the order of execution of decorators.

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

Re: Order of Service?

Post by aimeos » 16 Apr 2020, 18:51

The order of the decorators depends on the order you are adding the decorators in the service provider field in the "Service" panel of the admin interface. The decorators are executed from right to left so

Code: Select all

Standard,Total,Country
will execute "Country", then "Total" and at last the "Standard" service provider
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply