Change footer based off product selected

I am using the docker version of v5.
My company sells different services to education clients. We are required to include a service description for each service being sold, and each service often contains 3 or 4 different sub-services.

We are finding adding that info to the product description muddles things up, and so I changed the footer to appear on a second page, and have hard-coded descriptions across different invoicing templates. If we want to add other descriptions, we can update the footer section when making a new invoice.

However, I’d like the ability to dynamically change the footer based off the product selected.
For instance, productA has a productAShortDescription. Then in the footer it would “unlock” or unhide the productALongDescription.

How can I do this?


I’m not sure if this is possible.

@david may have a suggestion.

@david Did you have a chance to look at this?