Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FrancineNJ

Archived
  • Posts

    102
  • Joined

  • Last visited

About FrancineNJ

  • Birthday 08/03/1957

Profile Information

  • Real Name
    Francine Rudden
  • Gender
    Female
  • Website

FrancineNJ's Achievements

  1. These are my errors upon checking out. :'( Warning: Division by zero in /hsphere/local/home/francine/foreveratpeace.com/includes/classes/shipping.php on line 101 Warning: Division by zero in /hsphere/local/home/francine/foreveratpeace.com/includes/classes/shipping.php on line 102 Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/francine/foreveratpeace.com/includes/classes/shipping.php:101) in /hsphere/local/home/francine/foreveratpeace.com/includes/functions/general.php on line 59 Can someone please help. I've searched about Warning: Division by zero and came up with nothing. And if I did....noone answered the person who posted about it. I understand the last two have to do with white spaces. My question about that is: does the white spaces have to be before the begining or after to cause this error? Or will white spaces anywhere in the file cause this error? Thank you for your help.
  2. I'm getting this error on my shipping.php with this contribution: Parse error: parse error, unexpected $ in /hsphere/local/home/francine/mysite.com/includes/classes/shipping.php on line 196 Line 195 is this: ?> Line 196 is a blank line. This is line 180 - 196 $cheapest = false; for ($i=0, $n=sizeof($rates); $i<$n; $i++) { if (is_array($cheapest)) { if ($rates[$i]['cost'] < $cheapest['cost']) { $cheapest = $rates[$i]; } } else { $cheapest = $rates[$i]; } } return $cheapest; } } } ?> Can anyone help? Thanks :)
  3. Hi, I'm trying to install Individual Product Shipping Prices, I installed the very 1st one of course but after that can someone tell me what other update do I need to install without having to install all the updates. I'm intrested in only the Individual Product Shipping Prices. Thank you, Francine
  4. I found my error. Just wanted to let those who may have this problem that they should make sure they have the right "currencies" file in the right directories. It easy to mix them up specially if your working on the site way into the wee hours of the morning. Found out that the get_decimal_places() error comes from the currencies file. This was the problem for me...luckly I had downloaded all the files at an earlier time so I just replaced all the Currencies files in the correct directories from the earlier back up. Hope that made sense.
  5. Yes, I came across your post while searching for the error. I know what you are talking about....I seen that pop up box when I tested PayPal before I went live. I figured that was a simply change....I'd wait until I can fix the error code then I will fix that. :D Thanks for that post. Francine
  6. FrancineNJ

    PayPal error

    I am using the PayPal module that came with osCommerce. Have not added any contributions to it. It was working fine when I wasn't live. Now, that I am...... I get this error - Fatal error: Call to undefined function: get_decimal_places() in /home/simplypi/public_html/includes/modules/payment/paypal.php on line 89 I checked my paypal.php and even compared it to others....and nothing looks wrong. Does any one have any ideas? Thanks for your help <?php /* $Id: paypal.php,v 1.39 2003/01/29 19:57:15 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class paypal { var $code, $title, $description, $enabled; // class constructor function paypal() { global $order; $this->code = 'paypal'; $this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE; $this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr'; } // class methods function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_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_PAYPAL_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 false; } function process_button() { global $order, $currencies, $currency; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $currency; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { $my_currency = 'USD'; } $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); return $process_button_string; } function before_process() { return false; } function after_process() { return false; } function output_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_PAYPAL_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 PayPal Module', 'MODULE_PAYMENT_PAYPAL_STATUS', 'True', 'Do you want to accept PayPal payments?', '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, date_added) values ('E-Mail Address', 'MODULE_PAYMENT_PAYPAL_ID', '[email protected]', 'The e-mail address to use for the PayPal service', '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 ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', 'The currency to use for credit card transactions', '6', '6', 'tep_cfg_select_option(array(\'Selected Currency\',\'Only USD\',\'Only CAD\',\'Only EUR\',\'Only GBP\',\'Only JPY\'), ', 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_PAYPAL_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_PAYPAL_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_PAYPAL_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_PAYPAL_STATUS', 'MODULE_PAYMENT_PAYPAL_ID', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'MODULE_PAYMENT_PAYPAL_ZONE', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER'); } } ?> My Currencies in Admin looks like this ------ Title: US dollar Code: USD Symbol Left: $ Symbol Right: Decimal Point: . Thousands Point: , Decimal Places: 2 Value: 1.00000000
  7. I sell VHS & DVD's. The weight of a VHS alone is 7.5 oz's and the DVD is 3.9 oz's. USPS comes up with this: United States Postal Service (1 x 3.9lbs) Priority (2 - 3 Days) $5.30 I know Priority mail will cost 3.85 to ship it.... so that's wrong. How do I enter the weight into Oscommerce for these products so that USPS comes back with the right amount? Also, is it absolutely necessary to enter the Maximum Package Weight I'll ship, Package Tar Weight and Larger Packages???? Thanks for your help.
  8. Ok, I happen to click on Customers....which shows the account I created for myself..... Under my Country........it was set to Canada.....instead of United States I then went back and placed an order.... Delivery Information Page now shows : This is currently the only shipping method available to use on this order. United States Postal Service (1 x 0.56lbs) Priority (2 - 3 Days) $4.85 It has 1.00 handling fee with the shipping price. So, its working. I'm such a duh. :wacko:
  9. Thanks for the help Stuart. I have turned zones rates off. In Admin->Configuration->My Store: Country is set to United States Zone is set to New Jersey (btw - my webhosting company set this up for me) In Admin->Locations/Taxes->Countries - I have Canada & United States only. It reads : Country ISO Codes Canada CA CAN United States US USA ...however I don't understand what purpose the address format is for- giving you numbers 1-5 . In Admin->Configuration->Shipping/Packaging : Country of Origin United States Postal Code 07740 Maximum Package weight 5 Tare weight 0 Larger Packages 0 In Admin->Modules->Shipping Im set up in USPS module and on the production server. I found (late last night) it works if I change my shipping address to say in place of New Jersey -> 223 (the country's code) Then, USPS shows : United States Postal Service (1 x 0.56lbs) Priority (2 - 3 Days) $3.85 But when I change my shipping address back to New Jersey I get the -2147219080 - Missing value for Country I'm baffled.
  10. Thanks for the info on the weights...just changed all my weights. As for the store location....I do have that setup right. What I don't think I have right is the Zones. The Zone Rates that are under the shipping module. Should I have that set to true if I want to use USPS module or is it one or the other? And with the Zones that are under Locations / Taxes. I have Canada with its regions..... the United States was not there..which I don't know why so I started entering all the States. I only want to ship to the US & Canada...I had set them up as zone 1 and zone 2 in the USPS module . Am I doing any of this wrong? I'm about at the end of my wits. Any more help would be much appreciated.
  11. Sorry I don't have an aswer for you because I'm having some problems with USPS shipping module also. Can you answer a few of my questions..perhaps I can narrow down my problem. I sell DVD's and VHS. I have weights for them .... but their in ounces...3.80 & 8.90. Do you see a problem with entering the weight like this with the USPS module? Also, I get this kind of error : Please select the preferred shipping method to use on this order. Please Select United States Postal Service -2147219080 - Missing value for Country. Zone Rates The shipping rate cannot be determined at this time $0.00 :'( I also have a User ID and Password with USPS. Any thoughts or suggestions would be greatly appreciated :D
  12. :huh: For those that have the same problem...can you explain what you did to fix it in details? Thanks :)
×
×
  • Create New...