Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/02/2017 in all areas

  1. Abdy

    H2o Template if tag

    {% if id == 1 %} This will print out if $id = 1 {% endif %} https://github.com/speedmax/h2o-php/wiki/Built-in-tags
    2 points
  2. Should be ready soon just importing the db and then move back to the blestacms 1.1.2 ready to try the improved one after Abdy has tested it first haha ;). If needed you can PM me here and I can re-issue it for you.
    2 points
  3. Hello, We literally just finished our development of the Cerb helpdesk plugin that would allow Blesta clients to use Cerb instead of the default helpdesk with Blesta. Now we noticed that v4 is out (congratulations). Is there a write up somewhere, for developers, on what changed when creating a custom plugin? What functions depreciated? New features added? etc. We have not tried our new plugin on a v4 system yet, but I suspect we will start that process soon. Thanks, -Adam P.S. For those wondering, we plan on releasing the Cerb plugin, free of charge, to the rest of the Blesta community. No ETA yet.
    1 point
  4. Michael

    Order Form Setup

    On the order form select Domain and Other: How to sell Domains?
    1 point
  5. mlsto

    Secure Ftp Backup Failing

    Will have to bypass for now. Thanks Michael
    1 point
  6. Thanks Adam, of course product_id is not null, the output is changing the same line via phpmyadmin is working . i confirm the same code work in v3.6 PDOStatement Object ( [queryString] => UPDATE `nh_store_products` SET `category_id`=?, `date_added`=? WHERE `id`=? )
    1 point
  7. http://source-docs.blesta.com/class-Record.html#_update Pretty sure you can remove the third parameter on update as $data is a key/value value Since update returns a PDOStatement, save the value to a variable and print it out. You should see some more information as to what is going on. Also, you checked the basics: $product_id is not null? Enable debugging, etc. $data = []; $data['category_id'] = '3'; $data['date_added'] = date('c'); $tmp = $this->Record->where('id', '=', $product_id)->update('nh_store_products', $data); echo "<pre>"; print_r($tmp); echo "</pre>"; -Adam
    1 point
  8. after some investigation , the $this->Record->lastInsertId(); return 0 . hope he can come soon
    1 point
  9. Ahh I see, thank you very much for your prompt reply regarding this. Glad it shouldn't be long before it comes online again. As I was worried that I would not be able to reissue my Blesta license tomorrow as we are undergoing a migration to get better servicing in the end (at least that the goal).
    1 point
  10. this point is the only point we have based on it to identify the creator of invoice , we haven't found any issue at the moment with a custom plugin . to achieve the gaol, you need to make a loop for each line in the invoice, and check if service_id is null , sample code $invoice_system = false; foreach ($invoice_lines as $line) { if ($line->service_id != null) { $invoice_system = true; } } if ($invoice_system) { // invoice was created by the system, so do this } else { // invoice was created manually, so do this } Hope it help you .
    1 point
  11. Hey @Paul the Blesta logo is broken on the marketplace link that you made.
    1 point
×
×
  • Create New...