Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/17/2015 in all areas

  1. as the title say , allow navigation links to support the external url . that was possible in the previous version, now something has broken the feature .
    2 points
  2. Tyson

    Login As Client

    I think there should be a way for admins to view a client in the client's language, but we can't require this to be the default behavior, as we can't know whether the staff is able to read that language. There would have to be a way for staff to choose a language to use. We could use a language selector as I mentioned above, and indicate in the selector which language the client uses by default, e.g. ("English", "Espanol (default)", "Deutsch"). Or we could have a link at the top of the page, similar to the "Return to Staff Portal" link, that toggles between the staff language and the client's default language when you click on it.
    2 points
  3. normally it should coming from the file client_accounts.php in controller folder .
    1 point
  4. hadzo

    Merge Invoices

    Sometimes you have multiple invoices for a client that are regarding the same task and are still pending/not paid and it would be good to pay them all at once - merge the into one invoice and the client get's an email notification about the invoices being merged.
    1 point
  5. Order id? Didn't knew Blesta understood the concept of orders. Only thing that gets passed to payment gateways is an array of invoices. Serializing that, and passing that to a gateway is asking for trouble, because many gateways impose a character limit (especially European gateways, because they tend to include the transaction ID on customer's bank statement) It may work fine during your testing while paying single invoices, but you risk that if a customer has a longer list of overdue invoices that he finally wants to pay, it will fail. I proposed introducing a common database table for storing payment transaction information for this earlier, but the team didn't feel anything for that. So yes, anyone wanting to properly implement a non-merchant payment gateway module will need to create their own... Can use functions like this: protected $gwname = "My gateway"; function install() { $r = new Record(); $r->setField("id", array('type' => "varchar", 'size' => 255)) ->setField("gateway", array('type' => "varchar", 'size' => 255)) ->setField("expire", array('type' => "datetime")) ->setField("value", array('type' => "text", 'is_null' => true)) ->setKey(array("id","gateway"), "primary") ->create("gateway_sessions", true); } protected function getSession($id) { $r = new Record(); $row = $r->select("value")->from("gateway_sessions") ->where("id", "=", $id) ->where("gateway", "=", $this->gwname)->fetch(PDO::FETCH_ASSOC); if ($row) return unserialize($row["value"]); else return false; } protected function putSession($id, $data) { $r = new Record(); $r->where("id", "=", $id) ->where("gateway", "=", $this->gwname) ->update("gateway_sessions", array("value" => serialize($data))); } protected function createSessionID() { $r = new Record(); $expires = date("Y-m-d H:i:s", time() + 86400 * 14); for ($try = 0; $try < 10; $try++) { try { $key = $this->_generateSessionKey(); $r->insert("gateway_sessions", array('id' => $key, 'gateway' => $this->gwname, 'expire' => $expires)); return $key; } catch (PDOException $e) { } } throw new Exception("Error creating session"); } protected function _generateSessionKey() { return dechex(time()).dechex(crypt_random()).dechex(crypt_random()); } (Using an ID based on time, rather than an auto-increment, so that the number is unique, and doesn't start at 1 again if you reinstall Blesta, or if you use the same gateway with other software)
    1 point
  6. +1. Custom CSS and HTML in the header.
    1 point
  7. if i don't know Arabic or Spanish or either one of my staff don't know it , i will not offer this languages as options for my clients . normally LOGIN AS CLIENT should be the same as it meaning , login as client , so simple . admin has it own interface to edit and show client profile , in it they use preferred language . So to avoid this opinions, a option in admin setting to allow staf use the client language when they login as client , is preferred .
    1 point
  8. EDIT i got it working . the pagination has a option results_per_page , by default it 20 , adding this setting to the config array , fixed the issue . // Overwrite default pagination settings $settings = array_merge(Configure::get("Blesta.pagination_client"), array( 'total_results' => $total_results, 'uri'=> $this->base_uri . "plugin/tarata/main/index/[p]/" , 'results_per_page'=> 4 , 'params'=>array('sort'=>'id','order'=>'DESC') ) );
    1 point
  9. With magic haha
    1 point
×
×
  • Create New...