Jump to content

Jono

Blesta Developers
  • Posts

    376
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by Jono

  1. Well, the return is a php object referencing a php class, so I don't think there is a way to make that work. That being said, try ServiceChanges::getItems(). I know it's deprecated but I believe it will get the results you want in a way that can be sent to node.
  2. Is that a problem? Are you working in something other than PHP? I can spend some time looking into why the encoding is failing
  3. Seems that this kind of object can't be json encoded for some reason. Instead of calling getPresenter.json call getPresenter.php and that should work for you.
  4. Well the good news is that I get the same response as you. Now I'm looking into why that is. Hoping to give you an update before the end of the day. Thanks for your patience.
  5. Alright, I'll try actually making the API call and see if I can replicate the issue.
  6. I see, I'll try to do some testing and see if I can replicate this and find a cause.
  7. I've seen no other reason this should return an empty response. I'm taking another look
  8. Sorry, I had a typo in my last answer. I meant to say that you don't want "| escape}" in the text version. Is that the case?
  9. Keep in mind that you only want to add "| escape}" in the HTML and not the Text version. Is that the case?
  10. Is the service_id submitted valid? The only time you should get an empty response is when it is not.
  11. Since 4.9 https://dev.blesta.com/browse/CORE-2872
  12. Yea, sorry about the learning curve there. As documented, all config options should be submitted. It is intended behavior that all others will be deleted. The lack of invoice is also intended behavior. A good place to reference is app/controllers/admin_clients.php. Particularly lines 5590-5689
  13. Do you really mean to use a ServiceChange? Would Services::edit do what you want instead? Service changes are processed automatically via cron after their invoice is paid. An edit would happen immediately. use_module tells Blesta whether to invoke the module when making the edit, so yes it will work with or without it. That being said, I'm not sure of your question at this point. Are you asking what parameters should be submitted to getPresenter?
  14. Jono

    Order flow

    I mentioned this in discord, but it is worth having it here as well. Order form settings control whether to require manual approval on orders. If manual approval is not required by the order form and "Automatically Provision Paid Pending Services" is check at /admin/settings/company/billing/invoices/ then it should provision automatically.
  15. It's not a bcc notice. The staff order notification is it's own email template. See admin/settings/company/emails/templates/
  16. Jono

    Multiple services Plesk

    Unfortunately this is not currently supported, though there is a task for it here https://dev.blesta.com/browse/CORE-1533
  17. Maybe something like this? Or with input-sm
  18. Hey Stu, you may get more interaction on this if you post in our discord server https://discord.gg/UNs26C. If you feel like being an especially nice person you could even post back on here some of the answers you get
  19. I'm happy to be able to say, this is actually the main focus of v4.11.0 https://dev.blesta.com/browse/CORE-3356
  20. Yup, so two things. First, those requests happen when you save the module row details, just to make sure the credentials are valid. Second, it unfortunately seems the regular availability checks are not being logged. To add logging to that method you can add the following line at line 2280 of app/components/module/namesilo.php: $this->processResponse($api, $result);
  21. Thanks for your hard work I appreciate the extra touch with the installation and configuration guides.
  22. If I'm understanding this right, you are saying that it does not make clear what tools are commonly used and available to the module? Do any of my above suggestions address the need you are expressing?
  23. Hi there, sorry to hear your experience has been difficult. Thanks for your feed back on the other post, we really appreciate it. That being said, I don't think there are any module currently doing this. Here are two ways that should work to go about this. 1. Load the Record component ( Loader::loadComponents($this, ['Record']); ) and manually change the database. $this->Record->where('module_row_meta.module_row_id', '=', $module_row_id)->update('module_row_meta', ['api_key' => 'new_api_key']); 2. Use the ModuleManager model (Loader::loadModels($this, ['ModuleManager'])). The method you would use is ::editRow(). $this->ModuleManager->editRow($module_row_id, ['api_key' => 'new_api_key']); One thing to keep in mind is that this method replaces all the meta data for that row so you might want to load the current meta data, update it, then submit it. $meta_data = $this->ModuleManager->getRowMeta($module_row_id); $vars = []; foreach ($meta_data as $meta) { $vars[$meta->key] = ($meta->key == 'api_key' ? 'new_api_key' : $meta->value); } $this->ModuleManager->editRow($module_row_id, $vars); Hopefully that is helpful. Regards, Jonathan
  24. Yes. It's not ideal, which is why I created the task. But it does at last allow you to show categories in each language, and after they select the language category things will look pretty much the same as if it did support multi language.
×
×
  • Create New...