Page 1 of 1
Different delivery notes?
Posted: 16 Apr 2023, 19:55
by rbuelund
Is it possible to create different delivery note templates which are tied to eg a product category?
Re: Different delivery notes?
Posted: 17 Apr 2023, 16:57
by Jan
Hi, there is no such option. But delivery note is rendered in ouput which can be overriden by template. So such can be edited in template override (e.g. add some new if clauses for different categories, etc. etc.)
Jan
Re: Different delivery notes?
Posted: 17 Apr 2023, 17:01
by rbuelund
Would be a nice option instead of having to hardcode it into an override.
Re: Different delivery notes?
Posted: 17 Apr 2023, 17:12
by Jan
The problem with options, featuers and new parameters is, their using is limited. Because to not overload the system, all options, features or parameters need to be reviewed when adding them to system - reviewed if there is no better way. So e.g. when you have some parameter which manages some design part, it is better to add it to CSS instead of creating a parameter for it (as with growing parameters the system is slower). And the same is with template overrides. They are here to save performance - so not everything is added to core with help of different if conditions and then the loading is much faster.
Another problem which occurs by such large extensions is that if there are a lot of if conditions and a lot of different output options, then it is very hard to maintain it and mostly in produces bugs (as there is no time to check each specific ouput each time when updating so it can be then obsolete, etc. etc.)
So yes, it would be nice but it can bring problems into system
Sometimes it is really better to customize own override rather than being dependent on some conditions that will never cover the needs anyway.
Jan