Jump to content

TBroMEM

Member
  • Posts

    55
  • Joined

  • Last visited

Everything posted by TBroMEM

  1. I am aware there is a way to configure the system to disallow this, but it would be much easier if this was a simple General Setting to disallow out. For example, add a check box to the General Settings labeled 'disallow cron invocation from admin url (e.g. /cron/crons.php)'. Then in the crons.php code check for the value for the setting and if it is set, then don't do anything. Instead, report that this action is disallowed as defined in System Settings > General Settings.
  2. No. We need hook to trigger when an invoice is created whether or not email is sent. In our present logic, we disable the invoice email with the Order API request which includes invoice creation. I had considered the InvoiceCreationPreEmail hook which indicates that it 'Executes as an invoice is being created in the admin area before the email is being sent'. When I posed the inquiry to WHMCS support, they indicated this would not work, because we are creating the invoice w/o sending the email. WHMCS Support recommended InvoiceCreated hook, but in the documentation it indicates 'Executed when an invoice has left “Draft” status and is available to its respective client. Execution of this hook occurs after sending the Invoice Created email.' So it seems it would not work with that hook, because email is NOT being sent. InvoiceCreation hook does not seem appropriate, unless we add code to check whether status was published before taking action. What would be best course of action?
  3. We had recently updated to 8.10.1 from 8.2. The instance has a custom theme built from the 8.2 twenty-one. At first load of client portal, the My Activity Products and Services home panel card did not show the products (only a 0). We found there was a missing active-products-services-item.tpl in the templates/{theme}/includes. We added in the file found with the twenty-one template/includes and it started showing results, but not the formatting is compressed and the View Details button does not work. I am attaching what the twenty-one detault theme reflects for the home card panel. It spans the full column space. I am also attaching the result when the custom theme is enabled. Where should be look? Is it all in the clientareahome.tpl or is there another template we need to look at?
  4. We have an in-app signup that is creating orders (with initial invoice w/o email) in WHMCS via API. I had considered the InvoiceCreationPreEmail hook which indicates that it 'Executes as an invoice is being created in the admin area before the email is being sent'. When I posed the inquiry to WHMCS support, they indicated this would not work, because we are creating the invoice w/o sending the email. They recommended InvoiceCreated hook, but in the documentation, which indicates 'Executed when an invoice has left “Draft” status and is available to its respective client. Execution of this hook occurs after sending the Invoice Created email.' InvoiceCreation hook does not seem appropriate, unless we add coded to check whether status was published before taking action. What would be best course of action?
×
×
  • 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