Jump to content

Late fee translation


Patty

Recommended Posts

I just noticed that the late fee added to the invoice doesn't have a string on the language file:

 

Late Fee (Added 06/01/2008 )

 

How can that be translated? Would it be possible to add that string to the language file or have that translated in the admin?

 

TIA

Link to comment
Share on other sites

  • 3 weeks later...

The following as a standalone file in your WHMCS root directory should work if you call it as a cron, say.. 2 minutes after your WHMCS cron?

 

Change "Late fee" and "Added" at the top to what you'd like them to be changed to in your language.

 

<?PHP

$latefee = "Late fee";
$added = "Added";

include("dbconnect.php");
include("includes/functions.php");

$datearray = explode("-", date("Y-m-d"));
$search = array("YYYY", "MM", "DD");
$today = str_replace($search, $datearray, $CONFIG['DateFormat']);

$q_search = "Late Fee (Added " . $today . ")";
$q_replace = $latefee . " (" . $added . " " . $today . ")";

mysql_query("UPDATE `tblinvoiceitems` SET `description` = '" . mysql_real_escape_string($q_replace) . "' WHERE `description` = '" . mysql_real_escape_string($q_search) . "';");

?>

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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