Jump to content
  • 0

How To Show This On Blesta Client Area? Need A Developer To Asnwer


Question

Posted

Hello,

 

Example: 

 

Client ID: <?php $this->Html->_($client->id_code);?>

 

I need:

Active Services (the number)

Opened Tickets: (the number)

Unpaid invoices (number and the amount)

 

Thanks if that possible

 

4 answers to this question

Recommended Posts

  • 0
Posted

you can do it by calling the models in the view files which is unrecommended and breaks the rules of the MVC, OR you can modify the controller to call the models and then pass the vars to the view, then modify the view files to print these info.

  • 0
Posted

I believe the client information is already available to the templates, and your example will already work in those areas, except for the Support Plugin.

 

In the Support Plugin, you will need to fetch the client information and set it to the view.

  • 0
Posted

You can create a simple plugin tvat fetch this and return the numbers .

In the view add a jquery code to call this plugin via ajax and put the returned data in the desired div .

Like the multicurrency balance .

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...