Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/16/2019 in all areas

  1. 1 point
    If domain reminders are being sent and the domain falls within the invoicing settings (but hasn't been invoiced yet), this suggests that "Disable Auto Renew" is enabled on the domain. Disabling it will allow WHMCS to generate a renewal invoice during the next daily cron tasks run. Alternatively, an invoice can be generated immediately using the "Invoice Selected Items" function on the Client Summary page for the client in the admin area.
  2. 1 point
    can you try it using a tweaked sql query either in the {php} tags or as an action hook... {php} tags... {php} $smartyvars = $template->getTemplateVars(); $userid = $smartyvars['clientsdetails']['id']; $query = mysql_query("SELECT tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid = $userid AND tblhosting.packageid = tblproducts.id AND tblhosting.domainstatus = 'Active' AND tblproducts.servertype = 'cpanel'"); $result = mysql_fetch_array($query); $services = $result["serviceid"]; $template->assign('serviceid', $services); {/php} or as a hook, you could use... <?php function jackrabbit_serviceid_hook($vars) { $userid = $_SESSION['uid']; $query = mysql_query("SELECT tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid = $userid AND tblhosting.packageid = tblproducts.id AND tblhosting.domainstatus = 'Active' AND tblproducts.servertype = 'cpanel'"); $result = mysql_fetch_array($query); $services = $result["serviceid"]; $return = array("serviceid" => $services); return $return; } add_hook('ClientAreaPageHome', 1, 'jackrabbit_serviceid_hook'); ?> as it stands, $serviceid will contain one value, e.g the first cpanel product ID it finds in the query - i'm assuming your clients only have one cpanel hosting product and so this won't matter... if they had multiple cpanel products, it would be simple enough to change the hook to generate an array of values instead of just one, which you could then output via a {foreach} in the template - but let's not describe how to do that in detail unless we need to! i'm also assuming you only want to offer the cpanel quicklinks to cpanel products...
×

Important Information

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