Magento E-commerce Platform Q/ A

How to Add a Discount to the Total in Magento?

Quite frequently there is a requirement by the shop owners to add a discount to the checkout totals. You should add a custom total to existing (default) totals collection. The first step is to add this code to the config.xml file: