Jump to content

Blesta Addons

Alpha Developers
  • Posts

    4,868
  • Joined

  • Last visited

  • Days Won

    390

Everything posted by Blesta Addons

  1. models/count_tickets_model.php <?php class CountTicketsModel extends AppModel { /** * Constructor */ public function __construct() { parent::__construct(); // You Can Load Language here } /** * Retrieves ticket count * * @return string */ public function getCountTickets( $client_ticket_id, $status_opened ) { $ticket_numbers = $this->Record->select()-> from("support_tickets")-> where('client_id', $client_ticket_id)-> where('status', $status_opened)-> fetch(); return count($ticket_numbers); } }
  2. count_tickets_controller.php <?php class MyTestController extends AppController { public function preAction() { $this->structure->setDefaultView(APPDIR); parent::preAction(); // Override default view directory $this->view->view = "default"; $this->orig_structure_view = $this->structure->view; $this->structure->view = "default"; } } count_tickets_model.php <?php class CountTicketsModel extends AppModel { } Next is coming
  3. @Licensecart relax, take a pen and paper . cup of coffee ... i will teach you in 5 min !!!!!. create the fallowing directory files structure . count_tickets Lــــــــــ count_tickets_controller.php Lــــــــــ count_tickets_model.php Lــــــــــ controllers Lــــــــــ main.php Lــــــــــ models Lــــــــــ count_tickets.php next step is the content of each file .
  4. calling any plugin url that not exist return a error , something like http://xxxxxx.com/blesta/plugins/dsdsd Fatal error: Call to undefined method Plugins::preAction() in /home/xxxxxx/public_html/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php on line 134 Undefined variable: e
  5. If you want help in coding it i'm ready ....
  6. yesterday i have noticed that the cron has error, when i have checked it was Close Tickets cron . i have Clear Task Lock , but it return to lock again . in my support manager i see that all ticket that need to be closed has the last reply by system 'closing notice reply' , but all them still open !!! where i should look to see the cause ?
  7. No, if i get time i will test it in morre .
  8. have you tested or even read about PHP Mylist ? i can't enter to debate now until i test it in a real production . but allow sending 5000 or more in one shoot is a killer function .
  9. The simple way is to create a simple plugin that fetch the request and show the result as json, then in your template just add a blestarequest ajax to fetch the data and show it in DIV . something like the balance credit of client in his profile .
  10. Hi Tyson, in my post there are two issue , 1 - FIRST ISSUE first is simple i think , just dates display . so a simple example . Service Created in : 29-9-2016 for 1 year term . SO renew date is 29-9-2017 , Invoice Creation set to 7 days before . The client show the fallowing in any date before the invoice is generated for renew. Creation date 29-9-2016 , Renew date 29-9-2017 . after the invoice is created he will see Creation date 29-9-2016 , Renew date 29-9-2018 . that is confusing for him and us, normally the renew date should be updated (at least in the view) when invoice is paid . 2 - SECOND ISSUE this one is a bit complicated , the next invoice should be generated in 22-9-2017 , because 29/9 - 7 days = 22/9 . the invoice is generated in 23/9 . more sample in this thread This problem has appeared only when we have moved from v2 .
  11. This is the only reason that let me comment this post .... @timnboys is still a friend and a Project for great developer . and he is still young , and cases like this one will tech from it . complete the work and i will complete the 25$ for you . just to note i'm not using the DO module, and i courage others that using the DO module to donate for Mr @timnboys after the complete fix .
  12. is php 5.6 the them was added and i see it in the themes .
  13. is thier any thing changed to database to see if it has been changed or altered ?
  14. not added , i have tested several time, but i think the problem is that upgrade was not completed .
  15. it has not been in a long time, is has maybe 2 second and it show i blank, page ... i have not see the logs .. i have repeated the upgrade process 4 or 5 times, with the same blank page, then i have go to tha admin dashboard , and i begin working in v4
  16. For me not OK . taking other code,and making some tweaks ,and release it in PAID mode !!! it was a generosity from you to release it free . also if i remember Paul has promise to send you 50$ for the fix ... can you tell me what feature have you added to the module?
  17. i have sent a pull request to add patch command to the API file .
  18. i don't see how i can suspend the license by the API . the suspend command is done via PUT or POST ? $this->api->post('/product/'. $license->product_id .'/licence/'. $license->licence_id .'/suspend', []); return a error 405 Method Not Allowed . the class hasn't the put command ?
  19. That ID is another story for the Dates Episodes
  20. but in the end, the two request is nice, and 1+ for gateway discount and +1 for gateway fees .
  21. i know it already talked this subject somewhere , i sorry to reopen the subject again, but is something that we are forced to talk in it . blesta when generate invoice for renewal, the renew date of service change to +1term , so if the service is expired in 5-10-2016 , it show 5-10-2017, and this is confusing for our customers, some of them didn't pay the invoice just because they say their service will be expire next year!!!! so this need some care, dates are essential for relation between the client and their services, date renew is not the date where the next invoicing date, so Next Invoice date si not the renew date . the same with suspended date, i can't imagine the service will expire 9-10-2016 and is suspended two days later when we set Suspend Services Days After Due to 1 day . this already talked in a long thread with Mr Tyson. and this is cause of how blesta calculating dates , for me and for the all world the next day begin in 00;00 , for blesta the next day depend in time who the services was created, a simple case Service Created in 10-9-2016 14:00 . Renew date are 10-9-2017 14:00 Suspend date are 10-9-2017 14:00 + (Suspend Services Days After Due) let say 1 Day , this service will be suspended in 12-9-2017 when cronjob run . normally blesta should take the calender date is begin in 00:00 nd not in time when the service created . this behavior is affecting also invoices and reminders , but those is not trivial for us as the Suspension date and the Renew date .
  22. or maybe it was gateway fees rather than gateway discount !!!!
  23. you are right , already requested .
  24. From free/open source module to paid one !!!!
  25. The Real debugger for blesta has born
×
×
  • Create New...