Jump to content

Syleron

Members
  • Posts

    19
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Syleron

  1. I'm attempting to access support tickets via the API but no matter the request I keep getting the following error:

    
    object(BlestaResponse)#7 (2) {
    
    ["raw":"BlestaResponse":private]=>
    
    string(68) "{"message":"The requested resource does not exist.","response":null}"
    
    ["response_code":"BlestaResponse":private]=>
    
    int(404)
    
    }
     

    Example Request:

     

        function getTicket($id) {
            $data = [
                'ticket_id' => $id,
                'get_replies' => true,
                'reply_types' => null,
                'staff_id' => null
            ];
            
            $response = $this->api->get("support_manager.support_manager_tickets", "get", $data);
            
            var_dump($response);
            
            return $response;
        }

    Can someone please advise?

     

    Cheers

  2. If you can share the custom change withe the community , so others can see the response to your request .

     

    This is hardly the best way of doing it but it works. (Don't judge me :P)

     

    In /app/views/client/bootstrap/javascript/jquery-client-3.2.0.js method blestaLoadWidget find:

    var temp = $(data.content);
    

    after it put the following:

    // Append the widget to the page
    if (data.content.indexOf("services") >= 0)
        $(container).prepend(temp);
    else
        $(container).append(temp);
    

    That's it!

     

    edit: forgot to mention which method to change lol

  3. I think what they mean by 'not possible' is that it is currently not an available behavior in Blesta. And the code that handles this happens to be in an encoded file. But if you're familiar with jquery, you can take a look at /app/views/client/bootstrap/javascript/jquery-client-3.2.0.js, and update blestaLoadWidgets to update the interface to display the widgets in your custom order.

     

    I have done exactly that.

     

    Thank you!

×
×
  • Create New...