Jump to content

enviromantic

Members
  • Content count

    13
  • Joined

  • Last visited

Profile Information

  • Real Name
    anthony smith
  1. enviromantic

    One Page Checkout Support

    Yes IE8, Message: 'document.getElementById(...)' is null or not an object Line: 358 Char: 2 Code: 0 Any javascript gurus out there?
  2. enviromantic

    One Page Checkout Support

    In IE i get a message pop up 'There was an error refreshing the final product listing, please inform ShedsForLessDirect about this error'. Seems to be working ok in Firefox. Can anyone shed any light on this?
  3. enviromantic

    Seperate Pricing Per Customer v3.5

    Thanks Jan, :blush: Sleep deprivation, myself and basic oscommerce configuration don't mix.
  4. enviromantic

    Seperate Pricing Per Customer v3.5

    I have SPPC + QPBPP. I am completly lost at sea here. If i have quantity block set to 1 and say price breaks at 100, 500 & 1000 I add to 100, 500 or 1000 items to the cart, the cart always shows 99 items. If I set to quantity blocks of 50 i cannot add anymore items. Why cant i add more than 100 items? ... please help
  5. enviromantic

    "Dynamenu" for osCommerce

    Yes, that's what I have in my stylesheet. Ive tried adjusting the $menu_layer_offset = array (0,4,4); but it breaks if I minimise the browser window or view on a different screen resolution.
  6. enviromantic

    "Dynamenu" for osCommerce

    I'm willing to pay someone a small fee to solve this ...any takers?
  7. enviromantic

    "Dynamenu" for osCommerce

    I am having the same issue..did you manage to solve the problem?
  8. enviromantic

    Trouble with Auspost AIR

    YOU BEAUTY!! Problem solved. I guess I shouldve tried that earlier. Anywho, thanx a million Cheers :D
  9. enviromantic

    Trouble with Auspost AIR

    ok thanx for your help what version do you use? I just really need to get this working ASAP.
  10. enviromantic

    Trouble with Auspost AIR

    line 83 says 'foreach($myfile as $vals)' below is my auspostair.php file <?php /* $Id: auspostair.php,v 2.0.2 2003/10/15 Based on the above contribution but Auspost Insurance added and will recognise if address if for Aus or OS and not dispaly for Aus. Also will not display for packages that exceed maximum weight osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class auspostair { var $code, $title, $description, $icon, $enabled; // class constructor function auspostair() { global $order; $this->code = 'auspostair'; $this->title = MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE; $this->description = MODULE_SHIPPING_AUSPOSTAIR_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_AUSPOSTAIR_SORT_ORDER; $this->icon = DIR_WS_ICONS . 'auspost_air.gif'; $this->tax_class = MODULE_SHIPPING_AUSPOSTAIR_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_AUSPOSTAIR_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_AUSPOSTAIR_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_AUSPOSTAIR_ZONE . "' and zone_country_id = '" . $order->delivery['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->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order, $cart, $shipping_weight, $shipping_num_boxes, $total_weight; $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; $error = false; // ONLY Other countries AUS HIDE if ($order->delivery['country']['iso_code_2'] <> 'AU') { // ONLY SHOWN IF LESS OR EQUAL TO MAX WEIGHT if ($shipping_weight <= MODULE_SHIPPING_AUSPOSTAIR_MAX_WEIGHT ) { $frompcode = MODULE_SHIPPING_AUSPOSTAIR_SPCODE; $topcode = $order->delivery['postcode']; $dest_country=$order->delivery['country']['iso_code_2']; $sweight = $shipping_weight*1000; $swidth = MODULE_SHIPPING_AUSPOSTAIR_SWIDTH; $sheight = MODULE_SHIPPING_AUSPOSTAIR_SHEIGHT; $slength = MODULE_SHIPPING_AUSPOSTAIR_SDEPTH; $error = false; // If Insurance option selected - calculate insurance cost if (MODULE_SHIPPING_AUSPOSTAIR_INS_STATUS == 'True') { // Start with Base Cost $insurance = MODULE_SHIPPING_AUSPOSTAIR_INS_BASE ; if ($order->info['subtotal'] > MODULE_SHIPPING_AUSPOSTAIR_INS_UNIT) { $how_often = ceil((($order->info['subtotal'] - MODULE_SHIPPING_AUSPOSTAIR_INS_UNIT)/MODULE_SHIPPING_AUSPOSTAIR_INS_UNIT)); $insurance =+ MODULE_SHIPPING_AUSPOSTAIR_INS_BASE + ($how_often * MODULE_SHIPPING_AUSPOSTAIR_INS_ADD) ; } } // End calculating Insurance $url ="http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=$dest_country&Weight=$sweight&Service_Type=AIR&Height=$sheight&Width=$swidth&Length=$slength&Quantity=$shipping_num_boxes"; foreach($myfile as $vals) { $bits = split("=", $vals); $$bits[0] = $bits[1]; } if ($charge <= 0) { $error = true; } else { $handling = MODULE_SHIPPING_AUSPOSTAIR_HANDLING; if ($handling >0) { $handling_details = " $" . MODULE_SHIPPING_AUSPOSTAIR_HANDLING . " " .MODULE_SHIPPING_AUSPOSTAIR_TEXT_HANDLING; } else { $handling_details = ""; } if ($insurance >0) { $insurance_details = " $" .$insurance . " " .MODULE_SHIPPING_AUSPOSTAIR_TEXT_INSURANCE; } else { $insurance_details = ""; } if ($insurance == 0 && $handling == 0) { $auspostair_addons = ""; } else { $auspostair_addons = " (" . MODULE_SHIPPING_AUSPOSTAIR_TEXT_INCLUDE . $handling_details . $insurance_details . ") "; } $shipping_auspostair_method = MODULE_SHIPPING_AUSPOSTAIR_TEXT_WAY. " <b>" . $topcode . "</b> - " . $days . " " . MODULE_SHIPPING_AUSPOSTAIR_TEXT_SHIPPINGDAYS . "<br>" .$shipping_num_boxes . " " .MODULE_SHIPPING_AUSPOSTAIR_TEXT_BOXES . " " . $total_weight . MODULE_SHIPPING_AUSPOSTAIR_TEXT_UNITS . $auspostair_addons; $shipping_auspostair_cost = (($charge/1.1)* $shipping_num_boxes); } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => $shipping_auspostair_method, 'cost' => ($shipping_auspostair_cost + MODULE_SHIPPING_AUSPOSTAIR_HANDLING) + $insurance))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); if ($error == true) $this->quotes['error'] = MODULE_SHIPPING_AUSPOSTAIR_TEXT_ERROR; return $this->quotes; } } } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_AUSPOSTAIR_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 auspostair', 'MODULE_SHIPPING_AUSPOSTAIR_STATUS', 'True', 'Do you want to offer auspostair?', '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 ('Dispatch Postcode', 'MODULE_SHIPPING_AUSPOSTAIR_SPCODE', '2000', 'Dispatch Postcode?', '6', '0', 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_AUSPOSTAIR_INS_STATUS', 'True', 'Do you want to include insurance?', '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 ('Insurance Base Cost', 'MODULE_SHIPPING_AUSPOSTAIR_INS_BASE', '7.50', 'Cost for the first unit of insurance.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Addition Cost', 'MODULE_SHIPPING_AUSPOSTAIR_INS_ADD', '2.00', 'Cost for each addition unit of insurance over Base Cost', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Unit Size', 'MODULE_SHIPPING_AUSPOSTAIR_INS_UNIT', '100', 'Insurance units are based on these increments - (size in Dollars).', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Maximum Weight (kg)', 'MODULE_SHIPPING_AUSPOSTAIR_MAX_WEIGHT', '20', 'Maximum weight allowed by AustPost (in kg). A packaging allowance of <b>3 kg</b> is allowed. EG. 20 - 3 = 17. 17 becomes cutoff point for use.', '6', '0', 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_AUSPOSTAIR_HANDLING', '5.00', 'Handling Fee for this shipping method', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Height (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SHEIGHT', '100', 'Parcel Height (in mm)', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Width (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SWIDTH', '100', 'Parcel Width (in mm)', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Depth (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SDEPTH', '100', 'Parcel Depth (in mm)', '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 ('Shipping Zone', 'MODULE_SHIPPING_AUSPOSTAIR_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', '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, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_AUSPOSTAIR_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', '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_AUSPOSTAIR_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_SHIPPING_AUSPOSTAIR_STATUS', 'MODULE_SHIPPING_AUSPOSTAIR_SPCODE','MODULE_SHIPPING_AUSPOSTAIR_INS_STATUS', 'MODULE_SHIPPING_AUSPOSTAIR_INS_BASE', 'MODULE_SHIPPING_AUSPOSTAIR_INS_ADD', 'MODULE_SHIPPING_AUSPOSTAIR_INS_UNIT', 'MODULE_SHIPPING_AUSPOSTAIR_MAX_WEIGHT','MODULE_SHIPPING_AUSPOSTAIR_HANDLING', 'MODULE_SHIPPING_AUSPOSTAIR_SHEIGHT', 'MODULE_SHIPPING_AUSPOSTAIR_SWIDTH', 'MODULE_SHIPPING_AUSPOSTAIR_SDEPTH', 'MODULE_SHIPPING_AUSPOSTAIR_ZONE', 'MODULE_SHIPPING_AUSPOSTAIR_TAX_CLASS', 'MODULE_SHIPPING_AUSPOSTAIR_SORT_ORDER'); } } ?>
  11. enviromantic

    Trouble with Auspost AIR

    I recently installed Austpost 2.0.2c Contrib and I am vexed. I have AusPOST Parcel Post, Express Post & International SEA working correctly but I cannot get AusPOST AIR to work. Parcel Post & Express show when shipping to Australian locations. International locations show SEA but AIR shows ther following error. Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/shop/includes/modules/shipping/auspostair.php on line 83 AusPOST International Parcel Post - AIR ERROR: The delivery rate for this option cannot be determined at this time If you prefer to use this option as your shipping method, please contact the store owner. What am I issing apart from the 'm' in missing? Please help!
  12. I am experiencing the same problem, did you manage to solve this? Anyone got the mod working?
×