Different delivery notes?
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Different delivery notes?
Is it possible to create different delivery note templates which are tied to eg a product category?
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Different delivery notes?
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Different delivery notes?
Would be a nice option instead of having to hardcode it into an override.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Different delivery notes?
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
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
If you find Phoca extensions useful, please support the project