Jump to content

dmwspyder

Members
  • Content count

    9
  • Joined

  • Last visited

  1. hi, everything else works fine, i guess. by everything i meant: - i can create discount coupon in my admin - i can assign coupon to my customers - when they put in the coupon during checkout, the discounts are being done correctly but after the confirmation of payment (using Internet Transfer contribute), the coupon can be reused for the next purchase. even after limiting its usage. i also discover a problem when i give a 100% discount (i.e. free purchase)... if the customer selected PayPal and use the 100% discount coupon, they are still redirected to PayPal and given the error because it's $0 payment. if possible you have a fix for this as well? i am not sure how... it's the same problem as the Points and Rewards contribute. unfortunately i do not have a test site, its a live shop. but do let me know what file i need to pull out for you to inspect if need be. will it help if you visit my live shop and register? i can probably create a dummy account for you and a coupon for you to try. thank you so much for you help!!
  2. dmwspyder

    ### POINTS AND REWARDS MODULE V1.00 ###

    i have exactly the same problem! i've installed v2.0d, everything went alright until when i tested to purchase $18 item and redeem it with $20 points. a warning message appeared on top saying i do not have enough point to redeem and need to select a payment method. please help us. thank you.
  3. if i may ask for your help to edit the transfer.php file for me (from the Internet Transfer / Direct Bank Deposit contribute) where should i make the amendment so that the coupon will not be reused? <?php /* $Id: TRANSFER.php,v 1.10 2003/01/29 19:57:14 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ class transfer{ var $code, $title, $description, $enabled; // class constructor function transfer() { global $order; $this->code = 'transfer'; $this->title = MODULE_PAYMENT_TRANSFER_TEXT_TITLE; $this->description = MODULE_PAYMENT_TRANSFER_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_TRANSFER_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_TRANSFER_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_TRANSFER_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_TRANSFER_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->email_footer = MODULE_PAYMENT_TRANSFER_TEXT_EMAIL_FOOTER; } // class methods function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_TRANSFER_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_TRANSFER_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_TRANSFER_TEXT_DESCRIPTION); } 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_TRANSFER_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 ('Enable Bank Transfer Module', 'MODULE_PAYMENT_TRANSFER_STATUS', 'True', 'Do you want to accept Bank Transfer or Deposits?', '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 ('Account Holder:', 'MODULE_PAYMENT_TRANSFER_PAYTO', '', 'Who is the bank account owner?', '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 ('Account Number:', 'MODULE_PAYMENT_TRANSFER_ACCOUNT', '', 'What is the account number to deposit to?', '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 ('Bank:', 'MODULE_PAYMENT_TRANSFER_BANK', '', 'Name of the bank', '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 ('Branch Name:', 'MODULE_PAYMENT_TRANSFER_BRANCH_NAME', '', 'Branch name', '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 ('Account Type:', 'MODULE_PAYMENT_TRANSFER_ACCOUNT_TYPE', '', 'Account Type', '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 ('Branch Code:', 'MODULE_PAYMENT_TRANSFER_BRANCH', '', 'Branch code', '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_TRANSFER_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_TRANSFER_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_TRANSFER_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_TRANSFER_PAYTO', 'MODULE_PAYMENT_TRANSFER_ACCOUNT', 'MODULE_PAYMENT_TRANSFER_BANK', 'MODULE_PAYMENT_TRANSFER_BRANCH_NAME', 'MODULE_PAYMENT_TRANSFER_ACCOUNT_TYPE','MODULE_PAYMENT_TRANSFER_BRANCH', 'MODULE_PAYMENT_TRANSFER_STATUS', 'MODULE_PAYMENT_TRANSFER_ZONE', 'MODULE_PAYMENT_TRANSFER_ORDER_STATUS_ID', 'MODULE_PAYMENT_TRANSFER_SORT_ORDER'); } } ?> thank you again for your help.
  4. hi kgt. thank you for answering my query. i have ensured the changes are made for checkout_process.php file, because it was a clean install. there are no other problem in creation of the coupon. but apparently the same coupon can used again and again. i used the Internet Transfer payment method (from Internet Transfer / Direct Bank Deposit contribute). and it seems the coupon was not restricted after the max number of use. do i have to make modification in that payment mode too? if so, is it the same logic as the one use for Paypal IPN? please pardon me, i know nuts about scripting.... thank you again for your help.
  5. Hi, i've applied version 3.3. i still noticed that eventhough i set my coupon Max Use to 1, i can actually use it over and over again. hmm, it supposedly fixed right? i follow the installation steps for clean install. can anyone help me? thank you.
  6. dmwspyder

    Bank Transfer Payment Method

    sorry... i found a contribute for this... thank you.
  7. dmwspyder

    Bank Transfer Payment Method

    Hi I want to give my clients the flexibility of using Bank Transfer payment method. How do I write a .php file for this method? I am totally new to script writing. Basically I just want to let clients have alternative option besides COD. Once they have chosen Bank Transfer method, I will then contact them by email to tell them which account to transfer to. Thank you for your help!!
×