public function removeState($statename)
 {
     if ($id_state = Configuration::get($statename)) {
         $state = new OrderState($id_state);
         $state->delete();
     }
 }
 public function uninstall()
 {
     // Removing the order status Neteven
     $order_state = new OrderState((int) Gateway::getConfig('ID_ORDER_STATE_NETEVEN'));
     if (!$order_state->delete()) {
         return false;
     }
     // Uninstalling the module
     if (!Configuration::deleteByName('neteven_date_export_product') || !$this->uninstallDB() || !parent::uninstall()) {
         return false;
     }
     return true;
 }
Example #3
0
 /**
  * @brief Uninstall function
  *
  * @return Success or failure
  */
 public function uninstall()
 {
     // Uninstall parent and unregister Configuration
     Db::getInstance()->Execute('DROP TABLE IF EXISTS `' . _DB_PREFIX_ . 'payu_token`');
     $orderState = new OrderState((int) Configuration::get('PAYU_WAITING_PAYMENT'));
     $orderState->delete();
     Configuration::deleteByName('PAYU_WAITING_PAYMENT');
     if (!parent::uninstall()) {
         return false;
     }
     return true;
 }
Example #4
0
 public static function deleteOrderState()
 {
     $tab_os = array();
     $tab_os[] = 'PS_OS_SYSPAY_AUTHORIZED';
     $tab_os[] = 'PS_OS_SYSPAY_CB';
     $tab_os[] = 'PS_OS_SYSPAY_CB_DELIVERED';
     $tab_os[] = 'PS_OS_SYSPAY_CB_PIP';
     $tab_os[] = 'PS_OS_SYSPAY_CB_SHIPPED';
     $tab_os[] = 'PS_OS_SYSPAY_REFUND_DELIVERED';
     $tab_os[] = 'PS_OS_SYSPAY_REFUND_PIP';
     $tab_os[] = 'PS_OS_SYSPAY_REFUND_SHIPPED';
     foreach ($tab_os as $key) {
         $id = Configuration::get($key);
         if ($id) {
             Configuration::deleteByName($key);
             $os = new OrderState($id);
             $os->delete();
         }
     }
 }
Example #5
0
 public function uninstall()
 {
     $orderState = new OrderState((int) Configuration::get('SAC_ID_FRAUD'), Configuration::get('PS_LANG_DEFAULT'));
     if (!$orderState->delete()) {
         return false;
     }
     $orderState = new OrderState((int) Configuration::get('SAC_ID_WAITING'), Configuration::get('PS_LANG_DEFAULT'));
     if (!$orderState->delete()) {
         return false;
     }
     return parent::uninstall();
 }
 public function uninstall()
 {
     $id = Configuration::get('YA_POKUPKI_CUSTOMER');
     $customer = new Customer($id);
     $customer->id = $id;
     $customer->delete();
     Db::getInstance()->execute('DROP TABLE IF EXISTS ' . _DB_PREFIX_ . 'pokupki_orders');
     foreach ($this->status as $s) {
         $os = new OrderState((int) $s);
         $os->id = $s;
         $os->delete();
     }
     return parent::uninstall();
 }
 private function deleteStates()
 {
     for ($index = 0; $index <= 7; $index++) {
         $order_state = new OrderState(Configuration::get('MERCADOPAGO_STATUS_' . $index));
         if (!$order_state->delete()) {
             return false;
         }
     }
     return true;
 }
 private function removeOrderStatus()
 {
     $orderState = new OrderState(Configuration::get('PAYMENTWALL_ORDER_AWAITING'));
     $orderState->delete();
 }
 private function deleteBcashOrderStatus()
 {
     foreach (BcashStatusHelper::getCustomOrderStatusBcash() as $key => $statusBcash) {
         $order_state = new OrderState(Configuration::get('PS_OS_BCASH_' . $key));
         if (!$order_state->delete()) {
             return false;
         }
     }
     return true;
 }