At shopping-cart.tpl a custom field is created that calculates discounts, this fields is called "$discounts_percent". I want this value to be added in ps_orders table in order to know what discount is selected. I think that the insert should be added at orders.php but I'm not sure how and where. Can you plz help.