ZeroGravity Posted June 24, 2015 Share Posted June 24, 2015 Is it possible to show the domain addon pricing on an invoice. By default the invoice just shows "+ID Protection." Is there a setting or a way to customize the invoice so it show "+ID Protection ($4.00)." Where is picks up the addon pricing set in the domain pricing settings. Many Thanks! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 24, 2015 Share Posted June 24, 2015 (edited) if you were using only one currency, a quick way would be to use Language Overrides to modify the admin text for "ID Protection" and create a new entry with the "($4.00)" added. <?php $_ADMINLANG['domains']['idprotection'] = "ID Protection ($4.00)"; although simpler, the potential downside to going down the language overrides path would be if you updated the IDP price, and then looked (or the customer did) at an old invoice online, it could show the wrong IDP price - because it would be using the latest language entry for IDP. if you want the addon price to be pulled from the database, there isn't an admin setting that will do this for you - you would need to write an action hook to get the IDP price from the database and modify the invoice description accordingly. Edited June 24, 2015 by brian! 0 Quote Link to comment Share on other sites More sharing options...
ZeroGravity Posted June 26, 2015 Author Share Posted June 26, 2015 Thanks Brian! I may use that as a stop gap for the moment. Would the InvoiceCreationPreEmail action hook be the one to use when I get around to it? I found this thread and it looks like it could be something I can modify (http://forum.whmcs.com/showthread.php?32657-Product-Group-in-Invoice-Item-Description) 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.