Jump to content

Show domain addon pricing on invoice


Recommended Posts

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!

Link to comment
Share on other sites

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 by brian!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated