Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Módulo de Depositos Bancarios - Bank deposit Module


Recommended Posts

Posted

Hace tiempo tenia mi tienda instalada con un modulo de deposito bancario. Pero se daño mi servidor y tuve que reinstalar, ahora que vuelvo a buscar este modulo que de hecho lo había en español no lo encuentro, alguien sabe si todavía existe o donde lo puedo encontrar?

 

Tengo solo el archivo deposito.php gracias al respaldo que tenia de archivos, pero no tenia de la base de datos asi que ya no lo puedo hacer funcionar si el modulo completo. Gracias.

 

 

For a long time tapeworm my store installed with I have been modulating of I deposit banking. But damage my servant and I had myself to reinstalar, now that I return to look for this I modulate that in fact encounter was in Spanish not it, somebody knows if still it exists or where I can find it?

 

I have single the file deposito.php thanks to the endorsement that tapeworm of archives, but nontapeworm of the data base asi that no longer I can make it work if I modulate complete.

 

THANKS

 

 

<?php

/*

$Id: deposito.php,v 1.0 2003/08/25 21:00:00 Israel Cabrera Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

Copyright © 2003 Mayan Open Source Enterprises

 

Released under the GNU General Public License

*/

 

class deposito {

var $code, $title, $description, $enabled;

 

// class constructor

function deposito() {

global $order;

 

$this->code = 'deposito';

$this->title = MODULE_PAYMENT_DEPOSITO_TEXT_TITLE;

$this->description = MODULE_PAYMENT_DEPOSITO_TEXT_RESUMEN;

$this->sort_order = MODULE_PAYMENT_DEPOSITO_SORT_ORDER;

$this->enabled = ((MODULE_PAYMENT_DEPOSITO_STATUS == 'True') ? true : false);

 

if ((int)MODULE_PAYMENT_DEPOSITO_ORDER_STATUS_ID > 0) {

$this->order_status = MODULE_PAYMENT_DEPOSITO_ORDER_STATUS_ID;

}

 

if (is_object($order)) $this->update_status();

}

 

// class methods

function update_status() {

global $order;

 

if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_DEPOSITO_ZONE > 0) ) {

$check_flag = false;

$check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DEPOSITO_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");

while ($check = tep_db_fetch_array($check_query)) {

if ($check['zone_id'] < 1) {

$check_flag = true;

break;

} elseif ($check['zone_id'] == $order->billing['zone_id']) {

$check_flag = true;

break;

}

}

 

if ($check_flag == false) {

$this->enabled = false;

}

}

}

 

function javascript_validation() {

return false;

}

 

function selection() {

return array('id' => $this->code,

'module' => $this->title);

}

 

function pre_confirmation_check() {

return false;

}

 

function confirmation() {

return array('title' => MODULE_PAYMENT_DEPOSITO_TEXT_TITLE2 . MODULE_PAYMENT_DEPOSITO_TEXT_DESCRIPTION . MODULE_PAYMENT_DEPOSITO_TEXT_BANK . MODULE_PAYMENT_DEPOSITO_TEXT_ACCOUNT_NUMBER . MODULE_PAYMENT_DEPOSITO_TEXT_REFERENCIA . MODULE_PAYMENT_DEPOSITO_TEXT_FAXNO . MODULE_PAYMENT_DEPOSITO_TEXT_ACLARATEL . MODULE_PAYMENT_DEPOSITO_TEXT_FOOTER);

}

 

function process_button() {

return false;

}

 

function before_process() {

return false;

}

 

function after_process() {

return false;

}

 

function get_error() {

return false;

}

 

function check() {

if (!isset($this->_check)) {

$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_DEPOSITO_STATUS'");

$this->_check = tep_db_num_rows($check_query);

}

return $this->_check;

}

 

function install() {

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Habilitar modulo de DEPOSITO BANCARIO', 'MODULE_PAYMENT_DEPOSITO_STATUS', 'True', '¿Desea aceptar Depositos Bancarios?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now());");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Pagar a:', 'MODULE_PAYMENT_DEPOSITO_PAYTO', 'Ricardo Castillón Flores', 'Nombre del cuentahabiente donde se haran los depositos ', '6', '1', now());");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banco:', 'MODULE_PAYMENT_DEPOSITO_BANK', 'Banorte', 'Nombre del Banco ', '6', '1', now());");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Numero de Cuenta:', 'MODULE_PAYMENT_DEPOSITO_ACCOUNT_NUMBER', '5555-5555-5555-5555', 'Numero de cuenta a depositar ', '6', '1', now());");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Referencia', 'MODULE_PAYMENT_DEPOSITO_REFERENCIA', 'sin referencia', 'Numero de referencia si es que existe ', '6', '1', now());");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Numero de Fax', 'MODULE_PAYMENT_DEPOSITO_FAXNO', '55-54-5555', 'Fax a donde mandar fichas de deposito ', '6', '1', now());");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Numero de Telefono', 'MODULE_PAYMENT_DEPOSITO_ACLARATEL', '55-54-4444', 'Numero de telefono para aclaraciones ', '6', '1', now());");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_DEPOSITO_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_DEPOSITO_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_DEPOSITO_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");

}

 

function remove() {

tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");

}

 

function keys() {

return array('MODULE_PAYMENT_DEPOSITO_STATUS', 'MODULE_PAYMENT_DEPOSITO_ZONE', 'MODULE_PAYMENT_DEPOSITO_ORDER_STATUS_ID', 'MODULE_PAYMENT_DEPOSITO_SORT_ORDER', 'MODULE_PAYMENT_DEPOSITO_PAYTO', 'MODULE_PAYMENT_DEPOSITO_BANK', 'MODULE_PAYMENT_DEPOSITO_ACCOUNT_NUMBER', 'MODULE_PAYMENT_DEPOSITO_REFERENCIA', 'MODULE_PAYMENT_DEPOSITO_FAXNO', 'MODULE_PAYMENT_DEPOSITO_ACLARATEL');

}

}

?>

Posted

Cualquier modulo de pago que seleccione para instalar, cuando lo edito tampoco guarda los cambios que le realizo. Alguien sabe como corregir este problema?

 

Nobody I modulate of payment that it selects to install, when I do not publish it either keeps the changes that I make to him. Somebody knows like correcting this problem?

 

 

Thanks

  • 7 months later...
Posted

amigo, pudiste activar pagos en méxico ya?

Espero que si y puedas compartir la información por favor, porque llevo mucho tiempo buscandola.. tu al menos pudiste hacerlo antes jejeje espero que lo hayas logrado ya.

Saludos

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...