Jump to content

WHMCS Andrew

WHMCS Developer
  • Content Count

    682
  • Joined

  • Last visited

  • Days Won

    3

WHMCS Andrew last won the day on November 5 2019

WHMCS Andrew had the most liked content!

Community Reputation

17 Good

About WHMCS Andrew

  • Rank
    WHMCS Developer

Recent Profile Visitors

1552 profile views
  1. The getClientsProducts API command returns an array of 'products' with an 'id' as the first parameter. See the example on the documentation page I linked to. This would be the service id that you need for the updateClientProduct API command.
  2. Hi, You would need a module of some kind in order to automatically suspend the services. If a remote connection is not required, the auto release module can be used to perform actions like this.
  3. Could this be a customised attachments directory? Check your configuration.php file for those locations.
  4. Hi Jason, If you are logged in as an admin user, you are able to login as any client without a password, or with any password. Try the same thing again in either an incognito window, or a different browser without an admin session and you will see that a password is required. Andrew
  5. I would like to add in here that the error you are getting is a generic one. You could try following the troubleshooting steps on https://docs.whmcs.com/Email_Sending_Issues#Troubleshooting and this could provide a more detailed message for you.
  6. This charset is fine, and the _ci at the end does mean it is case insensitive. How are you clients registering for your services? As Chris said, we have been unable to replicate this ourselves.
  7. The charset of your tblclients would also be great!
  8. So the menu serviceUpgrade requires two contexts if you check the table (3rd column). Client and Service: Menu::addContext('client', $clientVariable); // either \WHMCS\User\Client or null Menu::addContext('service', $serviceVariable); // \WHMCS\Service\Service
  9. says you are passing no parameters Again, shows no parameters You state here you are passing parameters, but don't actually say what you are passing. An example is difficult to provide - this is why the table on https://docs.whmcs.com/Editing_Client_Area_Menus#Context is provided. In the third column, the context required is listed with the type of context, and the value type being expected. In this image, you see the sidebar name, the files this is used on by default, and then the context required. Here you can see, a context name in bold, and the type of context required. So, for clientView, you need to provide a "client" context that has the \WHMCS\User\Client type for the currently logged in client, or null for no client. Menu::addContext('client', $clientVariable);
  10. The documentation example has a link for you to build your contexts. http://docs.whmcs.com/Editing_Client_Area_Menus#Context If you aren't passing anything already, just remove the line "Menu::addContext()" as you don't need it. Context is used to pass data from your php script to the sidebars.
  11. Your code specifically shows that you aren't passing any variables to the Menu::addContent method call.
  12. addContext needs variables like the error states. If you aren't adding any contexts, then you don't need to use that line.
  13. You could use a hook, CartTotalAdjustment, to add output to the cart and this would also appear on the invoice generated for the order. If you wanted something to appear on every invoice, that would be different. You could use the InvoiceCreation hook to adjust the invoice as you required, before the invoice is sent to the client.
  14. Another thing to note is that the same search is being completed on the Clients profile list in the admin area (the dropdown at the top of any clientsxxx page, clientssummary.php etc) - does the dropdown work there for you correctly in full rewrite?
  15. Hi, Are you able to provide any more information with your issue? What browser are you using? I can see that @SpeedySRV is using an SSL, does your system also have an SSL @ITWolfy? What version of WHMCS do you use, what version of PHP are you running? As much information as you can provide would be helpful.
×
×
  • 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