Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

darp

Pioneers
  • Posts

    58
  • Joined

  • Last visited

Profile Information

  • Real Name
    Dan

darp's Achievements

  1. With the error displaying Canada Post is not available to select, so I can not get any feedback from them. I have tried it with both the development and the production keys. Could it be that I am on localhost and it is a port issue?
  2. Thanks Jim. It was the admin/modules.php file. I thought the new file was up to the job and forgot I had left it there. However, now I get the typical "unknown error from Canada Post Grub 'n' Gear via Email." message at /catalog/checkout_shipping.php. Another bit of strangeness is, the Canada Post option only shows up (with the error) if I have other certain options, like Flat Rate option available to the customer. If I do not have an alternative choice I get, " Shipping is currently not available for the selected shipping address. Please select or create a new shipping address to use with your purchase." Any suggestions?
  3. The bit of code that the error is coming from is: function get_multioption_canadapost_xml($values) { if (tep_not_null($values)) { $values_array = explode(',', $values); foreach ($values_array as $key => $_method) { if ($_method == '--none--') { $method = $_method; } else { $method = constant('CANADA_POST_' .get_canada_post_service_code($_method)); } $readable_values_array[] = $method; } $readable_values = implode(', ', $readable_values_array); return $readable_values; } else { return ''; } } There is another place where 'CANADA_POST_' is called. In the same file the Canada Post related constants are stored on the db here: 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 Canada Post Shipping Service(REST)', 'MODULE_SHIPPING_CANADA_POST_STATUS', 'True', 'Do you want to offer Canada Post shipping?', '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 ('Canada Post Customer Number', 'MODULE_SHIPPING_CANADA_POST_CUSTOMER_NUMBER', '', 'Enter the Your Canada Post Customer Number.', '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 ('Canada Post API Username', 'MODULE_SHIPPING_CANADA_POST_USERNAME', '', 'Enter your Canada Post (API Keys) username.', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Canada Post API Password', 'MODULE_SHIPPING_CANADA_POST_PASSWORD', '', 'Enter your Canada Post (API Keys) password.', '6', '3', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Canada Post Contract ID', 'MODULE_SHIPPING_CANADA_POST_CONTRACT_ID', '', 'Enter your Canada Post contract id (for commercial/contracted rates only).', '6', '4', 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 ('Canada Post Quote Type', 'MODULE_SHIPPING_CANADA_POST_QUOTE_TYPE', 'commercial', 'Either commercial (for the contract holder) or counter (regular price for consumers)', '6', '5', 'tep_cfg_select_option(array(\'commercial\', \'counter\'), ', 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 Insurance', 'MODULE_SHIPPING_CANADA_POST_INSURE', 'True', 'Do you want to insure packages shipped by Canada Post?', '6', '6', '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 ('Origin City', 'MODULE_SHIPPING_CANADA_POST_CITY', '', 'Enter the name of the origin city.', '6', '7', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Origin State/Province', 'MODULE_SHIPPING_CANADA_POST_STATEPROV', '', 'Enter the two-letter code for your origin state/province.', '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 ('Origin Country', 'MODULE_SHIPPING_CANADA_POST_COUNTRY', '', 'Enter the two-letter code for your origin country.', '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 ('Origin Zip/Postal Code', 'MODULE_SHIPPING_CANADA_POST_POSTALCODE', '', 'Enter your origin zip/postalcode (from which the parcel will be sent).', '6', '10', 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 ('Test or Production Mode', 'MODULE_SHIPPING_CANADA_POST_MODE', 'Test', 'Use this module in Test or Production mode? <br /><br />Your API Keys username and password are different in Test and Production mode', '6', '11', 'tep_cfg_select_option(array(\'Test\', \'Production\'), ', 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 ('Disallowed Shipping Methods', 'MODULE_SHIPPING_CANADA_POST_TYPES', '', 'Select the Canada Post services <span style=\'color: red; font-weight: bold\'>not</span> to be offered.', '6', '12', 'get_multioption_canadapost_xml', 'canadapost_cfg_select_multioption(array(\'D.RP\',\'D.EP\',\'D.XP\',\'D.XP.CERT\',\'D.PC\',\'D.LIB\',\'U.EP\',\'U.PW.ENV\',\'U.PW.PAK\',\'U.PW.PARCEL\',\'U.SP.AIR\',\'U.SP.SURF\',\'U.XP\',\'I.XP\',\'I.IP.AIR\',\'I.IP.SURF\',\'I.PW.ENV\', \'I.PW.PAK\',\'I.PW.PARCEL\',\'I.SP.AIR\',\'I.SP.SURF\'),', 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 ('Handling Type', 'MODULE_SHIPPING_CANADA_POST_HANDLING_TYPE', 'Flat Fee', 'Handling type for this shipping method.', '6', '13', 'tep_cfg_select_option(array(\'Flat Fee\', \'Percentage\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Handling Fee', 'MODULE_SHIPPING_CANADA_POST_HANDLING', '0', 'Handling fee for this shipping method.', '6', '14', 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 ('Tax Class', 'MODULE_SHIPPING_CANADA_POST_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '15', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', 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_SHIPPING_CANADA_POST_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '16', now())"); // add key for enabling email error messages 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 ('Email Canada Post errors', 'MODULE_SHIPPING_CANADA_POST_EMAIL_ERRORS', 'Yes', 'Do you want to receive Canada Post errors by email?', '6', '17', 'tep_cfg_select_option(array(\'Yes\', \'No\'), ', now())"); } And they are placed in an array here: function keys() { return array('MODULE_SHIPPING_CANADA_POST_STATUS','MODULE_SHIPPING_CANADA_POST_CUSTOMER_NUMBER','MODULE_SHIPPING_CANADA_POST_USERNAME', 'MODULE_SHIPPING_CANADA_POST_PASSWORD','MODULE_SHIPPING_CANADA_POST_CONTRACT_ID','MODULE_SHIPPING_CANADA_POST_QUOTE_TYPE', 'MODULE_SHIPPING_CANADA_POST_INSURE','MODULE_SHIPPING_CANADA_POST_CITY','MODULE_SHIPPING_CANADA_POST_STATEPROV','MODULE_SHIPPING_CANADA_POST_COUNTRY', 'MODULE_SHIPPING_CANADA_POST_POSTALCODE','MODULE_SHIPPING_CANADA_POST_MODE','MODULE_SHIPPING_CANADA_POST_TYPES','MODULE_SHIPPING_CANADA_POST_HANDLING_TYPE', 'MODULE_SHIPPING_CANADA_POST_HANDLING','MODULE_SHIPPING_CANADA_POST_TAX_CLASS','MODULE_SHIPPING_CANADA_POST_SORT_ORDER','MODULE_SHIPPING_CANADA_POST_EMAIL_ERRORS'); } But nowhere is CANADA_POST_ defined. What am I missing?
  4. I am running version: 2.3.3.4. on localhost. I'm trying to install the canada.post.rest.rate.service.oscommerce.V2.3 module and I get this error: Warning: constant() [function.constant]: Couldn't find constant CANADA_POST_Array in /srv/www/htdocs/catalogtest/includes/modules/shipping/canadapost.php on line 444 I can not find where the CANADA_POST_ constant is defined in any of the code. How can I fix this? Also, is there are better better Canada post module? I tried the Canada Post Sell Online v1.0 module http://addons.oscommerce.com/info/7900, but it is not a true 2.3 add on. A fresh 2.3 version if template based and that module is not. Print labels is not a big feature for me. However, I would like to add dimensional support. Thanks.
  5. Has anyone figured this one out? I am getting the same error message. Warning: Wrong parameter count for substr() in.../.../includes/modules/payment/psigate_xml.php on line 188
  6. Krugeros' paypal express shipping module mod ( http://addons.oscommerce.com/info/7333 ) seems to break the code. Does it mean I am to replace all the original code that is quoted with the snippet that he wrote? That doesn’t seem to work. There are closing brackets in the first part of the original code and the code is broken if that portion is deleted. Could someone please clarify. Here it is. 1) If Paypal overrides your shipping method you should try this solution: in catalog\ext\modules\payment\paypal\express.php find : // select cheapest shipping method $shipping = $shipping_modules->cheapest(); $shipping = $shipping['id']; } } if (strpos($shipping, '_')) { list($module, $method) = explode('_', $shipping); if ( is_object($$module) || ($shipping == 'free_free') ) { if ($shipping == 'free_free') { $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE; $quote[0]['methods'][0]['cost'] = '0'; } else { $quote = $shipping_modules->quote($method, $module); } if (isset($quote['error'])) { tep_session_unregister('shipping'); tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } else { if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) { $shipping = array('id' => $shipping, 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'), 'cost' => $quote[0]['methods'][0]['cost']); } } } } and replace with this : // load the selected shipping module require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping($shipping); require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total;
  7. In your paypal express shipping module mod contribution, do you mean I am to replace all the original code that you quot with the snippet that you wrote? That doesn’t seem to work. There are closing bracket in the first part and the code is broken if the portion you quot is deleted. Could you please clarify.

  8. darp

    Reb Bar

    Thanks for the reply. That clears up question number two. As for the first question, I have used a valid credit card. It is the same credit card that I use when doing a Paypal Express credit card option transaction.
  9. darp

    Reb Bar

    I am playing in the sandbox. I have installed Paypal Payments Pro on my local host test store. If I us the Paypal Express button on the shopping_cart page and select to pay with a credit card on the Paypal site, everything is OK. 1) First problem -> If I us the OSC check out button and select credit card as the payment method, upon submitting my info, I get bounced back to the shopping_cart page and a red bar appears that says, 'This transaction cannot be processed.' 2) Second Problem -> If I select the OSC check out button and select Paypal as the payment method I am taken to the Paypal site. I thought that with Payments Pro the customer stayed on your site. Have I done something wrong?
  10. Actually I got it working. I had created all the tax zones but not opened the folders and configured them. They were all set to the default "All Countries", "All Zones". Thanks for offering the help.
  11. What am I doing wrong? When I set up my Canadian taxes like the above example this is what I get in the order confirmation. Products (Edit) Tax Total 1 x Almond Chicken 0.0% $7.53 1 x Alpen 101.0% $4.99 Sub-Total: $12.52 Flat Rate (Best Way): $5.00 Manitoba GST 5% + Nunavut GST 5% + NWT GST 5% + P.E.I. GST 5% + Quebec GST 5% + SASK GST 5% + Yukon GST 5% + B.C. HST 12% + N.B. HST 13% + NFL HST 13% + Nova Scotia HST 15% + Ontario HST 13%: $5.04 Total: $22.5 So all the taxes are added up and come out to 101% My address is in Ontario.
  12. Anybody have any ideas? It is not that there are too many images in the box. Even if I select to have just one item in the box the Featured Items box is too wide only in IE7.
  13. In IE7 the Featured Products box in the center column of the index page is too wide. I have the store set in a center column and everything fits nicely except the Featured Products box which spills over into the boxes ( Currencies, Languages, Reviews, etc ) on the right hand side, and pushes everything beyond the boundaries of the store into the right margin. I'm sure this is the css IE box model bug because there is too much space between the images. Is there are hack to fixing this? I looks great in all other browsers. Thanks
  14. I am looking for the same lines of code. Can anybody help us out here?
  15. Does this mod work if phpBB is already integrated with Gallery 2? I will be setting up a store for action and adventure products. I want my customers to log journals about their adventures, trade advice and post pictures. It would be nice if there was one log in.
×
×
  • Create New...