本文整理汇总了PHP中OrderState类的典型用法代码示例。如果您正苦于以下问题:PHP OrderState类的具体用法?PHP OrderState怎么用?PHP OrderState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OrderState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _createOrderState
private function _createOrderState()
{
if (Configuration::get($this->prefix . 'ORDER_STATE_ID') && Configuration::get($this->prefix . 'ORDER_STATE_PART_ID')) {
return true;
}
// Awaiting payment
$os = new OrderState();
$os->name = array('1' => 'Awaiting ' . $this->displayName . ' payment', '2' => 'En attente du paiement par ' . $this->displayName, '3' => 'En espera de pago por ' . $this->displayName);
$os->invoice = false;
$os->color = 'lightblue';
$os->logable = true;
if ($os->save()) {
Configuration::updateValue($this->prefix . 'ORDER_STATE_ID', $os->id);
copy(_PS_MODULE_DIR_ . $this->name . '/logo.gif', _PS_IMG_DIR_ . 'os/' . $os->id . '.gif');
} else {
return false;
}
// Partially paid
$os1 = new OrderState();
$os1->name = array('1' => 'Partially paid by ' . $this->displayName, '2' => 'Payé partiellement via ' . $this->displayName, '3' => 'Pagado parcialmente con ' . $this->displayName);
$os1->invoice = false;
$os1->color = 'lightblue';
$os1->logable = true;
if ($os1->save()) {
Configuration::updateValue($this->prefix . 'ORDER_STATE_PART_ID', $os1->id);
copy(_PS_MODULE_DIR_ . $this->name . '/logo.gif', _PS_IMG_DIR_ . 'os/' . $os1->id . '.gif');
return true;
}
return false;
}
示例2: removeState
public function removeState($statename)
{
if ($id_state = Configuration::get($statename)) {
$state = new OrderState($id_state);
$state->delete();
}
}
示例3: getDevices
function getDevices()
{
$devices_obj = new DbQuery();
$devices_obj->select('
mpn.`id`,
mpn.`new_order`,
mpn.`new_customer`,
mpn.`order_statuses`,
mpn.`id_shop`,
mpn.`app_connection_id`,
mpn.`status`,
mpn.`device_unique_id`,
md.`account_email`,
md.`device_name`,
md.`last_activity`,
c.`iso_code` AS currency_iso
');
$devices_obj->from('mobassistantconnector_push_notifications', 'mpn');
$devices_obj->leftJoin('mobassistantconnector_devices', 'md', 'md.`device_unique_id` = mpn.`device_unique_id`');
$devices_obj->leftJoin('currency', 'c', 'c.`id_currency` = mpn.`currency_code`');
$devices_sql = $devices_obj->build();
$devices = Db::getInstance()->executeS($devices_sql);
if (!$devices) {
$devices = array();
}
$devices = replaceNull($devices);
$statuses_db = OrderState::getOrderStates(Configuration::get('PS_LANG_DEFAULT'));
$count_statuses = count($statuses_db);
$statuses = array();
for ($i = 0; $i < $count_statuses; $i++) {
$statuses[$statuses_db[$i]['id_order_state']] = $statuses_db[$i]['name'];
}
$devices = formDevices($devices, $statuses);
return Tools::jsonEncode($devices);
}
示例4: hookAdminStatsModules
public function hookAdminStatsModules($params)
{
$sql = 'SELECT COUNT(o.`id_order`) as total
FROM `' . _DB_PREFIX_ . 'orders` o
WHERE o.`date_add` BETWEEN ' . ModuleGraph::getDateBetween() . '
' . Shop::addSqlRestriction(Shop::SHARE_ORDER, 'o') . '
' . ((int) Tools::getValue('id_order_state') ? 'AND (SELECT oh.id_order_state FROM `' . _DB_PREFIX_ . 'order_history` oh WHERE o.id_order = oh.id_order ORDER BY oh.date_add DESC, oh.id_order_history DESC LIMIT 1) = ' . (int) Tools::getValue('id_order_state') : '');
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql);
$states = OrderState::getOrderStates($this->context->language->id);
if (Tools::getValue('export')) {
$this->csvExport(array('type' => 'pie', 'option' => Tools::getValue('id_order_state')));
}
$this->_html = '
<div class="blocStats"><h2 class="icon-' . $this->name . '"><span></span>' . $this->displayName . '</h2>
<form action="' . Tools::safeOutput($_SERVER['REQUEST_URI']) . '" method="post" style="float: right;">
<select name="id_order_state">
<option value="0"' . (!Tools::getValue('id_order_state') ? ' selected="selected"' : '') . '>' . $this->l('All') . '</option>';
foreach ($states as $state) {
$this->_html .= '<option value="' . $state['id_order_state'] . '"' . ($state['id_order_state'] == Tools::getValue('id_order_state') ? ' selected="selected"' : '') . '>' . $state['name'] . '</option>';
}
$this->_html .= '</select>
<input type="submit" name="submitState" value="' . $this->l('Filter') . '" class="button" />
</form>
<p><img src="../img/admin/down.gif" />' . $this->l('This graph represents the carrier distribution for your orders. You can also limit it to orders in one state.') . '</p>
' . ($result['total'] ? $this->engine(array('type' => 'pie', 'option' => Tools::getValue('id_order_state'))) . '<br /><br /> <a href="' . Tools::safeOutput($_SERVER['REQUEST_URI']) . '&export=1&exportType=language"><img src="../img/admin/asterisk.gif" />' . $this->l('CSV Export') . '</a>' : $this->l('No valid orders for this period.')) . '
</div>';
return $this->_html;
}
示例5: initFormByStatus
public function initFormByStatus()
{
$this->fields_form = array('legend' => array('title' => $this->l('By order status'), 'image' => '../img/admin/pdf.gif'), 'input' => array(array('type' => 'checkboxStatuses', 'label' => $this->l('Statuses:'), 'name' => 'id_order_state', 'values' => array('query' => OrderState::getOrderStates($this->context->language->id), 'id' => 'id_order_state', 'name' => 'name'), 'desc' => $this->l('You can also export orders which have not been charged yet.') . ' (<img src="../img/admin/charged_ko.gif" alt="" />).')), 'submit' => array('title' => $this->l('Generate PDF file by status.'), 'class' => 'button', 'id' => 'submitPrint2'));
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT COUNT(o.id_order) as nbOrders, (
SELECT oh.id_order_state
FROM ' . _DB_PREFIX_ . 'order_history oh
WHERE oh.id_order = oi.id_order
ORDER BY oh.date_add DESC, oh.id_order_history DESC
LIMIT 1
) id_order_state
FROM ' . _DB_PREFIX_ . 'order_invoice oi
LEFT JOIN ' . _DB_PREFIX_ . 'orders o ON (oi.id_order = o.id_order)
WHERE o.id_shop IN(' . implode(', ', Shop::getContextListShopID()) . ')
GROUP BY id_order_state
');
$status_stats = array();
foreach ($result as $row) {
$status_stats[$row['id_order_state']] = $row['nbOrders'];
}
$this->tpl_form_vars = array('statusStats' => $status_stats, 'style' => '');
$this->table = 'invoice_status';
$this->show_toolbar = false;
return parent::renderForm();
}
示例6: postProcess
public function postProcess()
{
${"GLOBALS"}["blpimnned"] = "id_order_seller";
$dbodbxes = "id_order";
${${"GLOBALS"}["qusrvgm"]} = (int) Tools::getValue("id_order");
if (!$this->context->customer->isLogged() && !Tools::getValue("secure_key")) {
Tools::redirect("index.php?controller=authentication&back=my-account");
}
${"GLOBALS"}["tvasln"] = "id_order";
$jpdhpfqcj = "id_order";
if (!(int) Configuration::get("PS_INVOICE")) {
die(Tools::displayError("Invoices are disabled in this shop."));
}
if (isset(${${"GLOBALS"}["qusrvgm"]}) && Validate::isUnsignedId(${$dbodbxes})) {
${${"GLOBALS"}["ymjzko"]} = new Order(${$jpdhpfqcj});
}
if (!isset(${${"GLOBALS"}["ymjzko"]}) || !Validate::isLoadedObject(${${"GLOBALS"}["ymjzko"]})) {
die(Tools::displayError("Invoice not found"));
}
${${"GLOBALS"}["vewtbt"]} = AgileSellerManager::getObjectOwnerID("order", ${${"GLOBALS"}["tvasln"]});
${${"GLOBALS"}["sokafjqdei"]} = AgileSellerManager::getLinkedSellerID($this->context->customer->id);
if (${${"GLOBALS"}["blpimnned"]} != ${${"GLOBALS"}["sokafjqdei"]}) {
die(Tools::displayError("You do not have permission to see this invoice"));
}
if (Tools::isSubmit("secure_key") && $order->secure_key != Tools::getValue("secure_key")) {
die(Tools::displayError("You do not have permission to see this invoice"));
}
if (!OrderState::invoiceAvailable($order->getCurrentState()) && !$order->invoice_number) {
die(Tools::displayError("No invoice available"));
}
$this->order = ${${"GLOBALS"}["ymjzko"]};
}
示例7: hookAdminStatsModules
public function hookAdminStatsModules($params)
{
global $cookie;
$result = Db::getInstance()->getRow('
SELECT COUNT(o.`id_order`) as total
FROM `' . _DB_PREFIX_ . 'orders` o
WHERE o.`date_add` BETWEEN ' . ModuleGraph::getDateBetween() . '
' . (intval(Tools::getValue('id_order_state')) ? 'AND (SELECT oh.id_order_state FROM `' . _DB_PREFIX_ . 'order_history` oh WHERE o.id_order = oh.id_order ORDER BY oh.date_add DESC, oh.id_order_history DESC LIMIT 1) = ' . intval(Tools::getValue('id_order_state')) : ''));
$states = OrderState::getOrderStates(intval($cookie->id_lang));
$this->_html = '
<fieldset class="width3"><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->displayName . '</legend>
<form action="' . $_SERVER['REQUEST_URI'] . '" method="post" style="float: right;">
<select name="id_order_state">
<option value="0"' . (!Tools::getValue('id_order_state') ? ' selected="selected"' : '') . '>' . $this->l('All') . '</option>';
foreach ($states as $state) {
$this->_html .= '<option value="' . $state['id_order_state'] . '"' . ($state['id_order_state'] == Tools::getValue('id_order_state') ? ' selected="selected"' : '') . '>' . $state['name'] . '</option>';
}
$this->_html .= '</select>
<input type="submit" name="submitState" value="' . $this->l('Filter') . '" class="button" />
</form>
<p><img src="../img/admin/down.gif" />' . $this->l('This graph represents the carrier distribution for your orders. You can also limit it to one order state.') . '</p>
' . ($result['total'] ? ModuleGraph::engine(array('type' => 'pie', 'option' => Tools::getValue('id_order_state'))) : $this->l('No valid orders for this period.')) . '
</fieldset>';
return $this->_html;
}
示例8: displaySettings
public function displaySettings($post_action)
{
$curr_order_state = new OrderState((int) $this->mondialrelay->account_shop['MR_ORDER_STATE']);
$order_state = array('id_order_state' => $this->mondialrelay->account_shop['MR_ORDER_STATE'], 'name' => $curr_order_state->name[$this->context->language->id]);
$this->context->smarty->assign(array('MR_token_admin_mondialrelay' => Tools::getAdminToken('AdminMondialRelay' . (int) Tab::getIdFromClassName('AdminMondialRelay') . (int) $this->context->employee->id), 'MR_account_set' => MondialRelay::isAccountSet(), 'MR_order_state' => $order_state, 'MR_orders_states_list' => OrderState::getOrderStates($this->context->language->id), 'MR_form_action' => $post_action, 'MR_error_list' => $this->post_errors));
echo $this->mondialrelay->fetchTemplate('/tpl/admintab/', 'settings');
}
示例9: setPaytmOrderState
public function setPaytmOrderState($var_name, $status, $color)
{
$orderState = new OrderState();
$orderState->name = array();
foreach (Language::getLanguages() as $language) {
$orderState->name[$language['id_lang']] = $status;
}
$orderState->send_email = false;
$orderState->color = $color;
$orderState->hidden = false;
$orderState->delivery = false;
$orderState->logable = true;
$orderState->invoice = true;
if ($orderState->add()) {
Configuration::updateValue($var_name, (int) $orderState->id);
}
return true;
}
示例10: getUrlToInvoice
public static function getUrlToInvoice($order, $context)
{
$url_to_invoice = '';
if ((bool) Configuration::get('PS_INVOICE') && OrderState::invoiceAvailable($order->current_state) && count($order->getInvoicesCollection())) {
$url_to_invoice = $context->link->getPageLink('pdf-invoice', true, null, 'id_order=' . $order->id);
if ($context->cookie->is_guest) {
$url_to_invoice .= '&secure_key=' . $order->secure_key;
}
}
return $url_to_invoice;
}
示例11: process
public function process()
{
parent::process();
if ($id_order = Tools::getValue('id_order') and $email = Tools::getValue('email')) {
$order = new Order((int) $id_order);
if (!Validate::isLoadedObject($order)) {
$this->errors[] = Tools::displayError('Invalid order');
} elseif (!$order->isAssociatedAtGuest($email)) {
$this->errors[] = Tools::displayError('Invalid order');
} else {
$customer = new Customer((int) $order->id_customer);
$id_order_state = (int) $order->getCurrentState();
$carrier = new Carrier((int) $order->id_carrier, (int) $order->id_lang);
$addressInvoice = new Address((int) $order->id_address_invoice);
$addressDelivery = new Address((int) $order->id_address_delivery);
$inv_adr_fields = AddressFormat::getOrderedAddressFields($addressInvoice->id_country);
$dlv_adr_fields = AddressFormat::getOrderedAddressFields($addressDelivery->id_country);
$invoiceAddressFormatedValues = AddressFormat::getFormattedAddressFieldsValues($addressInvoice, $inv_adr_fields);
$deliveryAddressFormatedValues = AddressFormat::getFormattedAddressFieldsValues($addressDelivery, $dlv_adr_fields);
if ($order->total_discounts > 0) {
self::$smarty->assign('total_old', (double) ($order->total_paid - $order->total_discounts));
}
$products = $order->getProducts();
$customizedDatas = Product::getAllCustomizedDatas((int) $order->id_cart);
Product::addCustomizationPrice($products, $customizedDatas);
$this->processAddressFormat($addressDelivery, $addressInvoice);
self::$smarty->assign(array('shop_name' => Configuration::get('PS_SHOP_NAME'), 'order' => $order, 'return_allowed' => false, 'currency' => new Currency($order->id_currency), 'order_state' => (int) $id_order_state, 'invoiceAllowed' => (int) Configuration::get('PS_INVOICE'), 'invoice' => OrderState::invoiceAvailable((int) $id_order_state) and $order->invoice_number, 'order_history' => $order->getHistory((int) self::$cookie->id_lang, false, true), 'products' => $products, 'discounts' => $order->getDiscounts(), 'carrier' => $carrier, 'address_invoice' => $addressInvoice, 'invoiceState' => (Validate::isLoadedObject($addressInvoice) and $addressInvoice->id_state) ? new State((int) $addressInvoice->id_state) : false, 'address_delivery' => $addressDelivery, 'deliveryState' => (Validate::isLoadedObject($addressDelivery) and $addressDelivery->id_state) ? new State((int) $addressDelivery->id_state) : false, 'is_guest' => true, 'group_use_tax' => Group::getPriceDisplayMethod($customer->id_default_group) == PS_TAX_INC, 'CUSTOMIZE_FILE' => _CUSTOMIZE_FILE_, 'CUSTOMIZE_TEXTFIELD' => _CUSTOMIZE_TEXTFIELD_, 'use_tax' => Configuration::get('PS_TAX'), 'customizedDatas' => $customizedDatas, 'invoiceAddressFormatedValues' => $invoiceAddressFormatedValues, 'deliveryAddressFormatedValues' => $deliveryAddressFormatedValues));
if ($carrier->url and $order->shipping_number) {
self::$smarty->assign('followup', str_replace('@', $order->shipping_number, $carrier->url));
}
self::$smarty->assign('HOOK_ORDERDETAILDISPLAYED', Module::hookExec('orderDetailDisplayed', array('order' => $order)));
Module::hookExec('OrderDetail', array('carrier' => $carrier, 'order' => $order));
if (Tools::isSubmit('submitTransformGuestToCustomer')) {
$customer = new Customer((int) $order->id_customer);
if (!Validate::isLoadedObject($customer)) {
$this->errors[] = Tools::displayError('Invalid customer');
}
if (!$customer->transformToCustomer(self::$cookie->id_lang, Tools::getValue('password'))) {
$this->errors[] = Tools::displayError('An error occurred while transforming guest to customer.');
}
if (!Tools::getValue('password')) {
$this->errors[] = Tools::displayError('Invalid password');
} else {
self::$smarty->assign('transformSuccess', true);
}
}
}
if (sizeof($this->errors)) {
/* Handle brute force attacks */
sleep(1);
}
}
self::$smarty->assign(array('action' => 'guest-tracking.php', 'errors' => $this->errors));
}
示例12: install
public function install()
{
if (version_compare(_PS_VERSION_, '1.5', '<')) {
if (!parent::install() || !$this->registerHook('payment') || !$this->registerHook('paymentReturn') || !$this->registerHook('orderDetailDisplayed') || !$this->registerHook('adminOrder') || !Configuration::updateValue('SEUR_REMCAR_TIPO_CARGO', 1) || !Configuration::updateValue('SEUR_REMCAR_CARGO_MIN', 0) || !Configuration::updateValue('SEUR_REMCAR_MIN_MOSTRAR', 100)) {
return false;
}
} else {
if (!parent::install() || !$this->registerHook('payment') || !$this->registerHook('paymentReturn') || !Configuration::updateValue('SEUR_REMCAR_TIPO_CARGO', 1) || !$this->registerHook('displayPDFInvoice') || !$this->registerHook('displayOrderDetail') || !$this->registerHook('displayAdminOrder')) {
return false;
}
}
if (!class_exists('SeurLib')) {
$this->warning = $this->l('Still has not configured their SEUR module.');
return false;
}
if (version_compare(_PS_VERSION_, "1.5", ">=") && !Configuration::get('REEMBOLSO_OS_CARGO')) {
$orderState = new OrderState();
$orderState->name = array();
foreach (Language::getLanguages() as $language) {
if (Tools::strtolower($language['iso_code']) == 'fr') {
$orderState->name[$language['id_lang']] = 'SEUR Paiement de la restitution';
} elseif (Tools::strtolower($language['iso_code']) == 'en') {
$orderState->name[$language['id_lang']] = 'SEUR Refund payment';
} else {
$orderState->name[$language['id_lang']] = 'SEUR Pago reembolso';
}
}
$orderState->send_email = false;
$orderState->color = '#7FA0D3';
$orderState->hidden = false;
$orderState->delivery = false;
$orderState->logable = true;
$orderState->invoice = true;
$orderState->paid = false;
$orderState->module_name = 'seurcashondelivery';
$orderState->unremovable = true;
$orderState->template = 'order_conf';
if ($orderState->add()) {
copy(dirname(__FILE__) . '/img/reembolsoestado.gif', _PS_ROOT_DIR_ . '/img/os/' . (int) $orderState->id . '.gif');
}
Configuration::updateValue('REEMBOLSO_OS_CARGO', (int) $orderState->id);
}
$id_modulo = Db::getInstance()->getValue('SELECT id_module FROM `' . _DB_PREFIX_ . 'module` WHERE name="' . pSQL($this->name) . '"');
Db::getInstance()->Execute('DELETE FROM `' . _DB_PREFIX_ . 'module_country` WHERE id_module =' . (int) $id_modulo);
Db::getInstance()->Execute('
INSERT INTO `' . _DB_PREFIX_ . 'module_country`
(id_module, id_country)
VALUES
(' . (int) $id_modulo . ',' . (int) Country::getByIso("ES") . '),
(' . (int) $id_modulo . ',' . (int) Country::getByIso("PT") . '),
(' . (int) $id_modulo . ',' . (int) Country::getByIso("AD") . ');
');
return true;
}
示例13: postProcess
public function postProcess()
{
global $cookie;
$this->tabAccess = Profile::getProfileAccess($cookie->profile, $this->id);
if ($this->tabAccess['add'] === '1' and Tools::isSubmit('submitAdd' . $this->table)) {
$this->deleted = false;
$_POST['invoice'] = Tools::getValue('invoice', 0);
$_POST['delivery'] = Tools::getValue('delivery', 0);
$_POST['logable'] = Tools::getValue('logable', 0);
$_POST['send_email'] = Tools::getValue('send_email', 0);
$_POST['hidden'] = Tools::getValue('hidden', 0);
if (!$_POST['send_email']) {
$languages = Language::getLanguages(false);
foreach ($languages as $language) {
$_POST['template_' . (int) $language['id_lang']] = '';
}
}
parent::postProcess();
} elseif ($this->tabAccess['delete'] === '1' and isset($_GET['delete' . $this->table])) {
$orderState = new OrderState((int) $_GET['id_order_state'], $cookie->id_lang);
if (!$orderState->isRemovable()) {
$this->_errors[] = $this->l('For security reasons, you cannot delete default order statuses.');
} else {
parent::postProcess();
}
} elseif ($this->tabAccess['delete'] === '1' and isset($_POST['submitDelorder_state'])) {
foreach ($_POST[$this->table . 'Box'] as $selection) {
$orderState = new OrderState((int) $selection, $cookie->id_lang);
if (!$orderState->isRemovable()) {
$this->_errors[] = $this->l('For security reasons, you cannot delete default order statuses.');
break;
}
}
if (empty($this->_errors)) {
parent::postProcess();
}
} else {
parent::postProcess();
}
}
示例14: installOrderState
public function installOrderState()
{
if (Configuration::get('PS_OS_MYMOD_PAYMENT') < 1) {
$order_state = new OrderState();
$order_state->send_email = true;
$order_state->module_name = $this->name;
$order_state->invoice = false;
$order_state->color = '#98c3ff';
$order_state->logable = true;
$order_state->shipped = false;
$order_state->unremovable = false;
$order_state->delivery = false;
$order_state->hidden = false;
$order_state->paid = false;
$order_state->deleted = false;
$order_state->name = array((int) Configuration::get('PS_LANG_DEFAULT') => pSQL($this->l('MyMod Payment - Awaiting confirmation')));
$order_state->template = array();
foreach (LanguageCore::getLanguages() as $l) {
$order_state->template[$l['id_lang']] = 'mymodpayment';
}
// We copy the mails templates in mail directory
foreach (LanguageCore::getLanguages() as $l) {
$module_path = dirname(__FILE__) . '/views/templates/mails/' . $l['iso_code'] . '/';
$application_path = dirname(__FILE__) . '/../../mails/' . $l['iso_code'] . '/';
if (!copy($module_path . 'mymodpayment.txt', $application_path . 'mymodpayment.txt') || !copy($module_path . 'mymodpayment.html', $application_path . 'mymodpayment.html')) {
return false;
}
}
if ($order_state->add()) {
// We save the order State ID in Configuration database
Configuration::updateValue('PS_OS_MYMOD_PAYMENT', $order_state->id);
// We copy the module logo in order state logo directory
copy(dirname(__FILE__) . '/logo.gif', dirname(__FILE__) . '/../../img/os/' . $order_state->id . '.gif');
copy(dirname(__FILE__) . '/logo.gif', dirname(__FILE__) . '/../../img/tmp/order_state_mini_' . $order_state->id . '.gif');
} else {
return false;
}
}
return true;
}
示例15: install
/**
* Prestashop install
*/
public function install()
{
$pendingStatus = Configuration::get('MTGOX_PENDING_STATE_ID');
if ($pendingStatus === false) {
$orderState = new OrderState();
$langs = Language::getLanguages();
foreach ($langs as $lang) {
$orderState->name[$lang['id_lang']] = pSQL('MtGox payment pending');
}
$orderState->invoice = false;
$orderState->send_email = false;
$orderState->logable = true;
$orderState->color = '#FFDD99';
$orderState->save();
Configuration::updateValue('MTGOX_PENDING_STATE_ID', $orderState->id);
copy(dirname(__FILE__) . '/logo.gif', dirname(__FILE__) . '/../../img/os/' . (int) $orderState->id . '.gif');
}
if (parent::install() == false or !$this->registerHook('payment') or !Configuration::updateValue('MTGOX_MERCHANT_ID', '0') or !Configuration::updateValue('MTGOX_API_KEY', '0') or !Configuration::updateValue('MTGOX_API_SECRET_KEY', '0') or !Configuration::updateValue('MTGOX_PAYMENT_DESCRIPTION', 'MtGox Payment Gateway') or !Configuration::updateValue('MTGOX_EMAIL_ON_SUCCESS', '1') or !Configuration::updateValue('MTGOX_AUTOSELL', '1') or !Configuration::updateValue('MTGOX_INSTANT_ONLY', '0')) {
return false;
}
return true;
}