Jump to content

tdphong

Members
  • Posts

    31
  • Joined

  • Last visited

Recent Profile Visitors

906 profile views

tdphong's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi all, Currently, I'm developing a payment gateway and this gateway want not support from pay past due. So, I want to disable my gateway when client use pay past due. How do I can that? Please help me. You can see images as attached. Thanks, Phong
  2. Hi all, Do the blesta have support old versions? Thanks,
  3. Hi all, I develop a plugin use admin_manage_plugin.php file. Now, i want to use ajax for this file to pagination. I don't use admin_main.php file So, how can i do that? Thanks,
  4. Hi all, Currently, I use a method in plugin to call capture method in gateway. In capture method, i want to use $this->meta to call settings of gateway. But when i use it, it's not work, it return null value. So, how can i do that? Thanks,
  5. Thanks all, I use action "widget_staff_billing" to add my plugin in Billing navigate but it's not show. It just show on widget. Please help me at here. Thanks,
  6. Hi naja7host, Here is my code : class AdminManagePlugin extends AppController { /** * Performs necessary initialization */ private function init() { // Require login $this->parent->requireLogin(); Language::loadLang("myGateway_manage_plugin", null, PLUGINDIR . "myGateway" . DS . "language" . DS); $this->uses(array("myGateway.myGatewayOrder", "Transactions", "Services", "Packages")); // Use the parent data helper, it's already configured properly $this->Date = $this->parent->Date; $this->plugin_id = isset($this->get[0]) ? $this->get[0] : null; // Set the page title $this->parent->structure->set("page_title", Language::_("myGatewayManagePlugin." . Loader::fromCamelCase($this->action ? $this->action : "index") . ".page_title", true)); return $this->renderAjaxWidgetIfAsync(isset($this->get['sort']) ? true : (isset($this->get[1]) || isset($this->get[0]) ? false : null)); } /** * Returns the view to be rendered when managing this plugin */ public function index() { $this->init(); $status = (isset($this->get['status']) ? $this->get['status'] : "pending"); $page = (isset($this->get[1]) ? (int) $this->get[1] : 1); $sort = (isset($this->get['sort']) ? $this->get['sort'] : "date_added"); $order_sort = (isset($this->get['order']) ? $this->get['order'] : "desc"); //print_r($status);exit; if (isset($this->get[0])) $status = $this->get[0]; // If no page set, fetch counts if (!isset($this->get[1])) { $status_count = array( 'pending' => $this->myGatewayOrder->getListCount("pending"), 'accepted' => $this->myGatewayOrder->getListCount("accepted"), 'fraud' => $this->myGatewayOrder->getListCount("fraud"), 'canceled' => $this->myGatewayOrder->getListCount("canceled"), ); } $statuses = $this->myGatewayOrder->getStatuses(); unset($statuses[$status]); $order = array(); $total_results = $this->myGatewayOrder->getListCount(null); $order['order'] = $this->myGatewayOrder->getList(null, $page, array($sort => $order_sort)); $feeds = $this->myGatewayOrder->getDefaultFeeds(Configure::get("Blesta.company_id")); // Overwrite default pagination settings $settings = array_merge(Configure::get("Blesta.pagination"), array( 'total_results' => $total_results, 'uri' => $this->base_uri . "settings/company/plugins/manage/" . $this->plugin_id . "/[p]/", 'params' => array('sort' => $sort, 'order' => $order_sort), ) ); //$this->uses(array("Transactions", "Services", "Packages")); // print_r($this->Transactions->getApplied(null, $order['order'][0]->id));exit; $vars = array( 'feeds' => $feeds, 'plugin_id' => $this->plugin_id, 'status_count' => $status_count, 'orders' => $order['order'], //'transaction_types' => $this->Transactions->transactionTypeNames() ); $this->helpers(array("Pagination" => array($this->get, $settings))); $this->Pagination->setSettings(Configure::get("Blesta.pagination_ajax")); // Set the view to render for all actions under this controller $this->view->setView(null, "myGateway.default"); return $this->partial("admin_manage_plugin", $vars); } } Please help me! Thanks,
  7. Thanks Tyson, I done that! URL is correct but when i click on pagination, it's not load page, in here ajax is not work. I must refresh page that it work. Can you help me about this? You can see images below. Thanks, http://uphinhnhanh.com/view-4893058_4.png http://uphinhnhanh.com/view-6513771_5.png http://uphinhnhanh.com/view-4631710_6.png
  8. Hi all, Currently, i develop a new plugin but now, i want to integrate this plugin or create a new button on navigate menu as image below that I'm not change core. How can i do that? Thanks,
  9. Hi all, I'm using ajax to pagination for my plugin. But when i use it, it's not working. Please view my code as image below and feedback for me. Thanks,
  10. Currently, i develop a plugin in plugins folder. Now, i want to call values of gateway(non-merchant) in component to this plugin. So, how can i do that? Thanks,
  11. Hi Tyson, So, how can i create a plugin to integrate both capture and refund button in a order? Can you help me create a example plugin to i can follow it? Thanks, Phong
  12. Hi all, Currently, I want to create a capture or refund button in transaction but not change core. So, how can i do that? Thanks,
×
×
  • Create New...