Jump to content

Jono

Blesta Developers
  • Content Count

    167
  • Joined

  • Last visited

  • Days Won

    13

Jono last won the day on September 17

Jono had the most liked content!

About Jono

  • Rank
    Staff

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1,227 profile views
  1. Another option is to use the field in the same way that VPS.net does, watching for a field to change and then submitting the form via JS with this field set to 'true'.
  2. Not a perfect solution, but a while ago we added the option to include a refresh_fields field which would allow you to submit and refresh the fields without receiving errors. Could look something like this: $label = $module_fields->label('Refresh Fields', 'refresh_fields'); $refresh_fields = $module_fields->fieldCheckbox( 'refresh_fields', 'true', (isset($vars->refresh_fields) ? $vars->refresh_fields : 'false') == 'true', ['id' => 'refresh_fields'] ); $label->attach($refresh_fields); $module_fields->setField($label);
  3. Jono

    mulitple Company Feature

    Here is the doc page for adding companies https://docs.blesta.com/display/user/Creating+Companies
  4. This is a bug in 4.7.0. See CORE-3275. We hope to release 4.7.1 early this week.
  5. Thanks for the feedback and the fix! Presumably the +1 is meant to be included. This looks like an issue with the order of operations. The dot operator is executed before the plus operator so that the expression is nsi + 1 (where i is the value of $i), which causes the error. I would suggest wrapping $i+1 in parens instead ($i+1). I've create CORE-3282 to update this.
  6. Your looking for the language files under plugins/order/language. Language files are named after the controller or model they are used in. Some appear in the main language directory, while language that is specific the modules, gateways, and plugins will appear under their specific directories: plugins/your_plugin/language, components/modules/your_module/language, and components/gateways/merchant//your_gateway/language. In the view files you will see something like $this->_('Order.main.domain'); And in the language file you will see a matching row like: $lang['Order.main.domain'] = 'Domain';
  7. Chances are that it is on a non-active service and was overlooked because of it. The pricing id can be found be going to the package edit page, right clicking on the term test box and opening your browsers inspector. Right above the term field you will see a hidden field called pricing_id. You can take this pricing_id and search your "services" table for it. That should be the one you are looking for.
  8. It has come to our attention that under some circumstances in Blesta 4.7.0 (e.g. when a client is adding an addon service through the client interface) users can receive a fatal error "Undefined property: Services::$Clients on line 5159 in path_to_your_blesta\app\models\services.php". This is a bug that will be resolved in 4.7.1 (CORE-3271). You can fix this issue by changing app/models/services.php lines 5112-5114 from if (!isset($this->Packages)) { Loader::loadModels($this, ['Packages', 'Clients', 'ClientGroups']); } to Loader::loadModels($this, ['Packages', 'Clients', 'ClientGroups']) Or you can override app/modelsservices.php with the attached services.php file services.php
  9. Probably want to create a new thread for that or post in the discord channel.
  10. Pretty sure the problem with the coupon is that it is only set for the NAD currency
  11. Hmm, you can update line 256-260 of gocardless.php from: if ($this->ifSet($_GET['pay_type'], $_POST['pay_type']) == 'subscribe') { $pay_type = 'subscribe'; } elseif ($this->ifSet($_GET['pay_type'], $_POST['pay_type']) == 'onetime') { $pay_type = 'onetime'; } To: if ($this->ifSet($_GET['pay_type'], $this->ifSet($_POST['pay_type'])) == 'subscribe') { $pay_type = 'subscribe'; } elseif ($this->ifSet($_GET['pay_type'], $this->ifSet($_POST['pay_type'])) == 'onetime') { $pay_type = 'onetime'; } I'll create an issue on the GitHub repository for this
  12. Jono

    Blesta TCAdmin problem

    Would you mind updating components/modules/tcadmin/api/tcadminapi.php line 68 from: if ($host_name_output != false) { to if ($host_name_output != "<?xml version='1.0'?><document></document>") { The visit the page again and post the log. It looks like the module has an bug with logging errors properly, I've created a task on github to fix this.
  13. The docs should probably be more clear. It says that vars "may include following". The client_id is not guaranteed to exist (the validation rule uses an if_set on edit), so if no client_id was submitted to Services::edit() then none will be available to the event. That being said, you can always fall back in the old_service client ID if one does not exist in vars.
  14. Jono

    Blesta TCAdmin problem

    Hi there, A couple quick questions. What version of Blesta and the TCAdmin module are you using? Have you checked the module logs under Tools > Logs > Module to look for errors? If there are any errors in those logs can you share them here?
×
×
  • Create New...