Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

minghoo

Pioneers
  • Posts

    106
  • Joined

  • Last visited

Everything posted by minghoo

  1. After I reinstalled one page checkout, the "There was an error setting payment method" error is gone, but it still doesn;t work, it displays like this: and I narrow down below code need modifictions, function confirmation() { global $_REQUEST; // don't confirm if CreLoaded is not collecting the CC# if (!$this->quantum_gets_cc) { $x_Card_Code=$_REQUEST['quantumqgwdbe_cvv']; $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 'fields' => array( array('title' => 'CVV number', 'field' => $_REQUEST['quantumqgwdbe_cvv']), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_OWNER, 'field' => $_REQUEST['quantumqgwdbe_cc_owner']), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_NUMBER, 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_EXPIRES, 'field' => strftime('%B, %Y', mktime(0,0,0,$_REQUEST['quantumqgwdbe_cc_expires_month'], 1, '20' . $_REQUEST['quantumqgwdbe_cc_expires_year']))))); } else { $confirmation = ''; } return $confirmation; }
  2. Hi steve, Thanks for this great contribution, I use Quantum Payment gateway, but it seems need a little modifictions to work with one page checkout. it shows "There was an error setting payment method" when select quantum payment. below is the quantum payment gateway code, <?php /* $Id: quantumqgwdbe.php,v 1.40 2007/06/13 18:23:14 dgw_ Exp $ Released under the GNU General Public License quantumqgwdbe.php was developed for QuantumGateway https://www.quantumgateway.com by Jerry Brown Project Development CDGcommerce */ class quantumqgwdbe { var $code, $title, $description, $enabled; // class constructor function quantumqgwdbe () { global $order; $this->code = 'quantumqgwdbe'; $this->title = MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_TITLE; $this->description = MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_DESCRIPTION; $this->enabled = ((MODULE_PAYMENT_QUANTUMQGWDBE_STATUS == 'True') ? true : false); $this->sort_order = MODULE_PAYMENT_QUANTUMQGWDBE_SORT_ORDER; if ((int)MODULE_PAYMENT_QUANTUMQGWDBE_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_QUANTUMQGWDBE_ORDER_STATUS_ID; } ################################################# ################################################# $this->quantum_gets_cc = ((MODULE_PAYMENT_QUANTUMQGWDBE_CC == 'True') ? true : false); $this->uses_cvv = ((MODULE_PAYMENT_QUANTUMQGWDBE_USESCVV == 'Y') ? true : false); $this->logo_url = MODULE_PAYMENT_QUANTUMQGWDBE_LOGO_URL; $this->bck_color = MODULE_PAYMENT_QUANTUMQGWDBE_BCK_COLOR; $this->text_color = MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_COLOR; $this->form_action_url = 'https://secure.quantumgateway.com/cgi/qgwdbe.php'; $this->cvvtype[] = array('id' => '2', 'text' => 'CVV on card is unreadable'); $this->cvvtype[] = array('id' => '9', 'text' => 'Card does not have CVV imprint'); if (is_object($order)) $this->update_status(); } function update_status() { global $order; } // class methods function javascript_validation() { // if quatnumgateway is collecting the CC#, then CreLoaded does not // allow the user to enter CC#, therefore we do not need to validate it if (!$this->quantum_gets_cc) { $js = ' if (payment_value == "' . $this->code . '") {' . "\n" . ' var cc_owner = document.checkout_payment.quatnumgateway_cc_owner.value;' . "\n" . ' var cc_number = document.checkout_payment.quantumqgwdbe_cc_number.value;' . "\n" . ' if (cc_owner == "" || cc_owner.length < ' . CC_OWNER_MIN_LENGTH . ') {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_JS_CC_OWNER . '";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' if (cc_number == "" || cc_number.length < ' . CC_NUMBER_MIN_LENGTH . ') {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_JS_CC_NUMBER . '";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' }' . "\n"; } else { $js = ''; } return $js; } function selection() { global $order; for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } $today = getdate(); for ($i=$today['year']; $i < $today['year']+10; $i++) { $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i))); } // Depending on whether CreLoaded is collecting the CC# or not. If // CreLoaded is collecting then we must allow the user to enter it, // here we output the form fields to collect the cc# if (!$this->quantum_gets_cc) { $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array( array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_OWNER, 'field' => tep_draw_input_field('quantumqgwdbe_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('quantumqgwdbe_cc_number')), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('quantumqgwdbe_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('quantumqgwdbe_cc_expires_year', $expires_year)) )); if ($this->uses_cvv) { array_push($selection['fields'], array('title' => 'CVV number ' . ' ' .'<a href="cvv.html" target="_blank">' . '<u><i>' . '(What is it?)' . '</i></u></a>', 'field' => tep_draw_input_field('quantumqgwdbe_cvv','',"SIZE=4, MAXLENGTH=4")), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_NOT_CVV, 'field' => tep_draw_checkbox_field('quantumqgwdbe_notcvv', '1')), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_REASON_NOT_CVV, 'field' => tep_draw_pull_down_menu('quantumqgwdbe_cvvtype', $this->cvvtype, '2')) ); } } else { $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => 'Continue', 'field' => tep_draw_hidden_field('quantumqgwdbe_cc_owner', '')))); } return $selection; } function pre_confirmation_check() { global $_REQUEST; // We don't confirm if CreLoaded is not collecting the CC# if (!$this->quantum_gets_cc) { include(DIR_WS_CLASSES . 'cc_validation.php'); $cc_validation = new cc_validation(); $result = $cc_validation->validate($_REQUEST['quantumqgwdbe_cc_number'], $_REQUEST['quantumqgwdbe_cc_expires_month'], $_REQUEST['quantumqgwdbe_cc_expires_year']); $error = ''; switch ($result) { case -1: $error = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, substr($cc_validation->cc_number, 0, 4)); break; case -2: case -3: case -4: $error = TEXT_CCVAL_ERROR_INVALID_DATE; break; case false: $error = TEXT_CCVAL_ERROR_INVALID_NUMBER; $result = true; break; } if ( ($result == false) || ($result < 1) ) { $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error) . '&quantumqgwdbe_cc_owner=' . urlencode($_REQUEST['quantumqgwdbe_cc_owner']) . '&quantumqgwdbe_cc_expires_month=' . $_REQUEST['quantumqgwdbe_cc_expires_month'] . '&quantumqgwdbe_cc_expires_year=' . $_REQUEST['quantumqgwdbe_cc_expires_year']; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false)); } $this->cc_card_type = $cc_validation->cc_type; $this->cc_card_number = $cc_validation->cc_number; $this->cc_expiry_month = $cc_validation->cc_expiry_month; $this->cc_expiry_year = $cc_validation->cc_expiry_year; $x_Card_Code = $_REQUEST['quantumqgwdbe_cvv']; } } function confirmation() { global $_REQUEST; // don't confirm if CreLoaded is not collecting the CC# if (!$this->quantum_gets_cc) { $x_Card_Code=$_REQUEST['quantumqgwdbe_cvv']; $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 'fields' => array( array('title' => 'CVV number', 'field' => $_REQUEST['quantumqgwdbe_cvv']), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_OWNER, 'field' => $_REQUEST['quantumqgwdbe_cc_owner']), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_NUMBER, 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_EXPIRES, 'field' => strftime('%B, %Y', mktime(0,0,0,$_REQUEST['quantumqgwdbe_cc_expires_month'], 1, '20' . $_REQUEST['quantumqgwdbe_cc_expires_year']))))); } else { $confirmation = ''; } return $confirmation; } function process_button() { global $_REQUEST, $order, $customer_id; $process_button_string = tep_draw_hidden_field ('gwlogin', MODULE_PAYMENT_QUANTUMQGWDBE_LOGIN); //tep_draw_hidden_field ('Redirect', '0'); // if CreLoaded collected the CC# then send it on to eProc if (!$this->quantum_gets_cc) { if ($this->uses_cvv) { if ((isset($_REQUEST['quantumqgwdbe_notcvv'])) && ($_REQUEST['quantumqgwdbe_notcvv'] == "1")) { if (($_REQUEST['quantumqgwdbe_cvvtype'] != "2") && ($_REQUEST['quantumqgwdbe_cvvtype'] != "9")) { $process_button_string .= tep_draw_hidden_field('CVV2', $_REQUEST['quantumqgwdbe_cvv']) . tep_draw_hidden_field('CVVtype', '1'); } else { $process_button_string .= tep_draw_hidden_field('CVVtype', $_REQUEST['quantumqgwdbe_cvvtype']); } } else { $process_button_string .= tep_draw_hidden_field('CVVtype', '1') . tep_draw_hidden_field('CVV2', $_REQUEST['quantumqgwdbe_cvv']); } } else { $process_button_string .= tep_draw_hidden_field('CVVtype', '0'); } $process_button_string .= tep_draw_hidden_field ('ccnum', $this->cc_card_number) . tep_draw_hidden_field('ccmo', $this->cc_expiry_month). tep_draw_hidden_field('ccyr', substr($this->cc_expiry_year, -2)); } $process_button_string .= tep_draw_hidden_field('amount', number_format($order->info['total'],2,".","")) . tep_draw_hidden_field('ID', tep_session_id ()) . tep_draw_hidden_field('override_email_customer', ((MODULE_PAYMENT_QUANTUMQGWDBE_EMAIL_CUSTOMER == 'True') ? 'Y': 'N')); if (MODULE_PAYMENT_QUANTUMQGWDBE_TXNKEY2 == "Y") { $process_button_string .= tep_draw_hidden_field ('RestrictKey', MODULE_PAYMENT_QUANTUMQGWDBE_TXNKEY); } $process_button_string .= tep_draw_hidden_field('MAXMIND', ((MODULE_PAYMENT_QUANTUMQGWDBE_MAXMIND == 'Y') ? 'Y': 'N')) . tep_draw_hidden_field ('company_logo', MODULE_PAYMENT_QUANTUMQGWDBE_LOGO_URL) . tep_draw_hidden_field ('bg_color', MODULE_PAYMENT_QUANTUMQGWDBE_BCK_COLOR) . tep_draw_hidden_field ('txt_color', MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_COLOR) . tep_draw_hidden_field('FNAME', $order->billing['firstname']) . tep_draw_hidden_field('LNAME', $order->billing['lastname']) . tep_draw_hidden_field('BADDR1', $order->billing['street_address']) . tep_draw_hidden_field('BCITY', $order->billing['city']) . tep_draw_hidden_field('BSTATE', $order->billing['state']) . tep_draw_hidden_field('BZIP1', $order->billing['postcode']) . tep_draw_hidden_field('BCOUNTRY', $order->billing['country']['title']) . tep_draw_hidden_field('PHONE', $order->customer['telephone']) . tep_draw_hidden_field('BCUST_EMAIL', $order->customer['email_address']) . tep_draw_hidden_field('returning_visit', 'N') . tep_draw_hidden_field('ResponseMethod', 'GET') . tep_draw_hidden_field('post_return_url_approved', tep_href_link(FILENAME_CHECKOUT_PROCESS, '','SSL', true)) . tep_draw_hidden_field('post_return_url_declined', tep_href_link(FILENAME_CHECKOUT_PROCESS, 'payment_error=' . $this->code . '&quantumqgwdbe_cc_owner=' . urlencode($_REQUEST['quantumqgwdbe_cc_owner']), 'SSL', true)); // now take care of some cosmetic issues $process_button_string .= tep_draw_hidden_field(tep_session_name(),tep_session_id()); return $process_button_string; } function before_process() { global $messageStack, $insert_id, $_REQUEST; $auth_response = $_REQUEST['auth_response']; $id = $_REQUEST['ID']; $session_name = tep_session_name (); $approved = (($_REQUEST['trans_result'] == "APPROVED") ? "1" : "0"); if ($approved == "0") { $comments = $_REQUEST['decline_reason']; // alert to customer: $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($comments); //$messageStack->tep_session_register('checkout_payment', MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_ERROR_MESSAGE, 'caution'); tep_db_query("UPDATE " . TABLE_ORDERS_STATUS_HISTORY . " SET comments= 'Credit Card payment. " . $comments . " " . $this->cc_card_type . " AUTH: " . $_REQUEST['authCode'] . ". TransID: " . $_REQUEST['transID'] . ".', date_added=now() WHERE orders_id = '" . (int)$insert_id . "'"); tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false)); } } function after_process() { return false; } function get_error() { global $_GET; $error = array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_ERROR, 'error' => stripslashes(urldecode($_GET['error']))); return $error; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_QUANTUMQGWDBE_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 QuantumGateway Module', 'MODULE_PAYMENT_QUANTUMQGWDBE_STATUS', 'True', 'Do you want to accept QuantumGateway payments?', '6', '0', '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 ('Login Username', 'MODULE_PAYMENT_QUANTUMQGWDBE_LOGIN', 'testing', 'The login username used for the QuantumGateway service', '6', '1', now())"); 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 QuantumGateway To Collect CC#', 'MODULE_PAYMENT_QUANTUMQGWDBE_CC', 'False', 'Do you want QuantumGateway to Collect the Credit Card Number??', '6', '2', '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, set_function, date_added) values ('Customer Notifications', 'MODULE_PAYMENT_QUANTUMQGWDBE_EMAIL_CUSTOMER', 'False', 'Should Quatnumgateway e-mail a receipt to the customer?', '6', '3', '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, set_function, date_added) values ('Restrict Key', 'MODULE_PAYMENT_QUANTUMQGWDBE_TXNKEY2', 'N', 'Enable Restriction Key?', '6', '4', 'tep_cfg_select_option(array(\'Y\', \'N\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Restriction Key', 'MODULE_PAYMENT_QUANTUMQGWDBE_TXNKEY', '', 'Restriction Key used for restricting processing without key. Note: You must have this enabled in your Quantumgateway Processing Config.', '6', '5', now())"); 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 ('Maxmind Fraud Control', 'MODULE_PAYMENT_QUANTUMQGWDBE_MAXMIND', 'Y', 'Enable?', '6', '6', 'tep_cfg_select_option(array(\'Y\', \'N\'), ', now())"); 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 ('Capture CVV2', 'MODULE_PAYMENT_QUANTUMQGWDBE_USESCVV', 'Y', 'Does user must type CVV code?.', '6', '7','tep_cfg_select_option(array(\'Y\', \'N\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('URL for Store Logo', 'MODULE_PAYMENT_QUANTUMQGWDBE_LOGO_URL', '', 'The URL to a logo to be used by eProcessing to display during transactions', '6', '8', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Background Color', 'MODULE_PAYMENT_QUANTUMQGWDBE_BCK_COLOR', '#FFFFFF', 'The Background Color in Hex format:', '6', '9', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Text Color', 'MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_COLOR', '#000000', 'The Color of the Text in Hex format:', '6', '10', 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_QUANTUMQGWDBE_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_PAYMENT_QUANTUMQGWDBE_STATUS', 'MODULE_PAYMENT_QUANTUMQGWDBE_LOGIN', 'MODULE_PAYMENT_QUANTUMQGWDBE_CC', 'MODULE_PAYMENT_QUANTUMQGWDBE_TXNKEY2', 'MODULE_PAYMENT_QUANTUMQGWDBE_TXNKEY', 'MODULE_PAYMENT_QUANTUMQGWDBE_EMAIL_CUSTOMER', 'MODULE_PAYMENT_QUANTUMQGWDBE_LOGO_URL', 'MODULE_PAYMENT_QUANTUMQGWDBE_BCK_COLOR', 'MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_COLOR', 'MODULE_PAYMENT_QUANTUMQGWDBE_MAXMIND', 'MODULE_PAYMENT_QUANTUMQGWDBE_USESCVV', 'MODULE_PAYMENT_QUANTUMQGWDBE_SORT_ORDER' ); } } ?> Thanks Sean
  3. To fix set "Include Sub Categories When Displaying Featured Products value" to false nothing changed include/modules/featured.php fine this code: $catIdSql = implode(', ', $cats); } else { $catIdSql = $featured_products_category_id_list; replace with this; $catIdSql = $featured_products_category_id_list; } else { $catIdSql = $new_products_category_id; Sean
  4. i have the same problem, i think here is the code: if ( defined('FEATURED_PRODUCTS_SUB_CATEGORIES') AND FEATURED_PRODUCTS_SUB_CATEGORIES == 'true' ) { // current catID as starting value $cats[] = $new_products_category_id; // put cat-IDs of all cats nested in current branch into $cats array, // go through all subbranches for($i=0; $i<count($cats); $i++) { $categorie_query = tep_db_query('SELECT `categories_id` FROM ' . TABLE_CATEGORIES . " WHERE parent_id = '" . (int)$cats[$i] . "'"); while ($categorie = tep_db_fetch_array($categorie_query)) { $cats[] = $categorie['categories_id']; } // sort out doubles $cats = array_unique($cats); } $catIdSql = implode(', ', $cats); } else { $catIdSql = $featured_products_category_id_list; }
  5. for those who have this problem: Fatal error: Call to undefined function tep_add_base_ref() in C:\wamp\www\admin\edit_orders_ajax.php on line 1144 add below code to admin/include/function/general.php before closing tag ?> function tep_add_base_ref($string) { $i = 0; $output = ''; $n=strlen($string); for ($i=0; $i<$n; $i++) { $char = substr($string, $i, 1); $char5 = substr($string, $i, 5); if ($char5 == 'src="' ) {$output .= 'src="' . HTTP_SERVER; $i = $i+4;} else { $output .= $char; } } return $output; } sean
  6. the instruction( http://svn.oscommerc...ommerce?cs=1699 ) is no longer existed for manual installation, does anyone still have a copy want to share? Thanks a lot! sean
  7. [Contribuition] Add FCKeditor for Define Mainpage http://addons.oscommerce.com/info/6735 This is for people who already installed FCKeditor. Sean
  8. this kind of shipping contri. which i have been waiting for a while. until now, i haven't find anything like this. but i have an idea, it has 3 zones options, 1st zone for US 2rd zone for Canada 3rd zone for rest of world so all you need to file shipping zones using coutry code like US, CA and each zone have 2 shipping options: standard shipping express shipping for example, for US standard shipping via USPS $4.10, and express will be $14.00 for canada, standard will be $5.00, and express will be 17.00 for rest of world, standard wiil be 6.00, and express will be $20.00 so when customer register and choose shipping address, this shipping contr. will pick up the contry code and match the shipping option, and it shows up the shipping cost. i think that is what we need for flat rate, or we can extend a little bit by table rates. sean
  9. Hi Dave, Would you mind posting your shopping.com feed code? so we can woke on it together. Thanks sean
  10. that is great. Thanks for taking time. my another conern is shopping.com, registered already. However, haven't got chance to get a working one. sean
  11. Hi guys, i want to create a register text link and links to create_account.php, I want this text link only show up when customer is NOT login, how can i do this? i noticed the log off text link: <?php if (tep_session_is_registered('customer_id')) { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" ><?php echo HEADER_TITLE_LOGOFF; ?></a> but this text link only show up when customer is login and become invisible to guest, and what i want is opposite to this logoff text link. Thanks a lot. sean
  12. Hi, you may try install this one instead: http://www.oscommerce.com/community/contri...earch,authorize and try it again.
  13. Change http://www.mydomain.com/images/lock.gif to images/lock.gif
  14. what is CDGCommerce payment module? your mean authorize payment module? i use cdgcommerce, haven't experience any problems yet.
  15. i am looking for exact the same format, i will take a look at the code to see if i can make it. and also does anybody has experience with shopping.com, how is system works? same as froogle, ftp upload? Thanks sean
  16. Finally, add this code in product_info.php, if you want to show price only if you have retail value, otherwise it keep original price: <?php if ($product_info['products_retail_price'] !=0) { include(DIR_WS_MODULES . 'ezier_new_fields.php'); } else { echo $products_price; } ?> sean
  17. hi guys, After i installed this nice contri. i found out, the price in product_info.php page: <?php echo $products_price; ?> and <?php } include(DIR_WS_MODULES . 'ezier_new_fields.php'); ?> they are both show in product_info.php page, i do enter retail value for item, then it shows product price twice, otherwize, it shows price correctly. anybody found this small problem or just me? Is there any way use " if else" to only show <?php echo $products_price; ?> if retail price don't have value in it? Thanks sean
  18. Hi Guys, I just applied merchant account and approved. I have a questions how to setup up Address Verification correctly to accept international orders: Address information is not provided for AVS Check (B) AVS Error (E) Non US Card Issuing Bank (G) Retry, system is unavailable ® AVS is not supported by card issuing bank (S) Address information for cardholder is unavailable (U) Reject If Street Address Matches AND First 5 digits of Zip Code Match (Y) First 5 digits of ZIP Code Do NOT Match (A) Reject If Street Address Does Not Match AND 9 digits of Zip Code Match (W) First 5 digits of Zip Code Match (Z) First 5 digits of ZIP Code Do NOT Match (N) which of above should be checked in order to accept orders for both domestic and international? anyone knows or have experience with it? Thanks sean
  19. this code really works guys. BTW, since i use default setting 3 column, and i found out if the 3 items have different length of title, it causes the item has longer title take more space then the one has shorter title take less space, so it shows really unbalance. any ideas how to fix that? thanks sean
  20. If anybody has time, and know how to combined this contr. with Country-State Selector That would be wonderful! sean
  21. After i tried to comment out these line, it really works. If you using MS1 with 2checkout v2.1a, you have to comment out these lines otherwise your will get blank page. sean
  22. 20% is lucky, for me i got 80% off time blank page when using internet explorer, for people who use firefox, netscape or opera have less chances to get blank page. Anybody knows anything with it? Thanks sean
  23. Does anyone has problem with internet explorer, today i got a call from customer said when she tried order from website, at the last step, she clicked confirm order and got blank page. i tried with my internet explorer, it is true i got same blank page. However, there is no blank page for firefox, opera and netscape. Anybody has the same problem? Thanks sean
×
×
  • Create New...