Creating complex discounts in Zen Cart

As ridiculously overengineered powerful as my software may seem, some shopowners can’t help but take it up a notch by using complex PHP within the setup() functions I provide.  Here are some examples of complex Zen Cart discount configurations you can do by adding more logic to the setup() functions of Zen Cart Better Together, Combination Discounts and Table Discounts.