Jump to content
  • 0

[Logicboxes] Ftao: Tyson :d


Michael

Question

Tyson mate if there a way to make the logicboxes provision them without using the module.

 

At the moment it tries to get the order-ID / etc for the database but is there a way we can by-pass that feature and make it make empty rows.

 

So Service-id = whatever key= Null?

Thank you :)

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Are you adding it through the admin interface? If so, you could change the service status to pending first. But when you go to edit the service and make it active, it will fetch the order-id anyway. So I guess it depends on what you're trying to do here.

Link to comment
Share on other sites

  • 0

Are you adding it through the admin interface? If so, you could change the service status to pending first. But when you go to edit the service and make it active, it will fetch the order-id anyway. So I guess it depends on what you're trying to do here.

 

Yes we added it via the admin area and put it pending not using the module but it just spits an error out "Website not found for...." The domains itself aren't with a Logicbox provider yet but they will be transferred when they are being renewed mate. so at the moment it's making a lot of callbacks to Resellerclub every 5 minutes.

Link to comment
Share on other sites

  • 0

Well, the behavior is to fetch the order-id if it's missing, and your cron is trying to activate the service without it. And an active service should have all of the fields set.

 

Are you creating an invoice for those services? Simply not paying them would resolve the API errors--it won't attempt to activate an unpaid service.

Link to comment
Share on other sites

  • 0

Well, the behavior is to fetch the order-id if it's missing, and your cron is trying to activate the service without it. And an active service should have all of the fields set.

 

Are you creating an invoice for those services? Simply not paying them would resolve the API errors--it won't attempt to activate an unpaid service.

 

Is there a way to fall back to have empty order-id's if there isn't one on Logicboxes if the "use module" box is unticked? And there's no invoices for these as they are paid services but with GoDaddy and Wild West domains mate.

Link to comment
Share on other sites

  • 0

Is there a way to fall back to have empty order-id's if there isn't one on Logicboxes if the "use module" box is unticked? And there's no invoices for these as they are paid services but with GoDaddy and Wild West domains mate.

i remeber in a old thread , i have talked about the interest of adding order-id in database . as the logicbox API has a function to get it using the Domaine name . the same for NS entries , no need to store them in database , as we can get them via API .

Link to comment
Share on other sites

  • 0

Unfortunately, you couldn't do it without negating the changes added in CORE-611 and CORE-1262 which were to automatically set the order-id on add/edit, respectively.

 

You could, at least temporarily, update the module to not attempt to fetch an order-id.

 

I haven't tested this, but you could try to update /components/modules/logicboxes/logicboxes.php (around line 318) from

elseif ($status == "active") {
            if ($package->meta->type == "domain") {
                $api->loadCommand("logicboxes_domains");
                $domains = new LogicboxesDomains($api);
                
                $order = array_intersect_key($vars, array('domain-name' => ""));
                $response = $domains->orderid($order);
                $this->processResponse($api, $response);
                
                if ($this->Input->errors())
                    return;
                
                $order_id = null;
                if ($response->response())
                    $order_id = $response->response();
                
                return array(
                    array('key' => "domain-name", 'value' => $vars['domain-name'], 'encrypted' => 0),
                    array('key' => "order-id", 'value' => $order_id, 'encrypted' => 0)
                );
            }
        }

to

/*
elseif ($status == "active") {
            if ($package->meta->type == "domain") {
                $api->loadCommand("logicboxes_domains");
                $domains = new LogicboxesDomains($api);
                
                $order = array_intersect_key($vars, array('domain-name' => ""));
                $response = $domains->orderid($order);
                $this->processResponse($api, $response);
                
                if ($this->Input->errors())
                    return;
                
                $order_id = null;
                if ($response->response())
                    $order_id = $response->response();
                
                return array(
                    array('key' => "domain-name", 'value' => $vars['domain-name'], 'encrypted' => 0),
                    array('key' => "order-id", 'value' => $order_id, 'encrypted' => 0)
                );
            }
        }
*/

Link to comment
Share on other sites

  • 0

regarding to this thread about order-id .

 

i think blesta staff should stop working with order-id in the logicbox module . anyone has imported domains from whmcs can't manage module anymore in blesta . and can give confuse to any new client .

 

logicbox already has a option to fetch the order-id for any given domain , so this will not take a huge modification in the module . i found some thread talking about the same probleme and i ask why blesta staff has not updated the module to correct this behavior .

 

 

i have found a module by Naja that worked ; but i prefer to see in in a supported core module .

Link to comment
Share on other sites

  • 0

soon i will release a new version for this module, if blesta staff want to merge the two module , no probleme for me , i give him the full right to do it .

 

i also see usig the order-id to identify the domain is a big mistake . the domain should be identified by the domain not by a number !!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...