Jump to content

KJ666

Members
  • Content count

    242
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by KJ666

  1. KJ666

    Help with shipping contribution

    Sorted went back though everything and this had gone (though i remember adding it) Meant to be in admin/includes/functions/html_output.php function tep_draw_pull_multiselect_menu($name, $values, $defaults, $parameters = '') { $field = '<select multiple name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>' . "\n"; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i = 0, $n = sizeof($values); $i < $n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if (in_array($values[$i]['id'], $defaults)) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; return $field; }
  2. I am using this UK Royal Mail & Overseas Shipping Methods for specific categories of products http://www.oscommerce.com/community/contributions,5979 But when i try to edit in admin it says: Fatal error: Call to undefined function tep_draw_pull_multiselect_menu() in /home/******/public_html/inverts/admin/includes/functions/general.php on line 1340 Which is this code: add to admin/includes/functions/general.php function tep_get_categories($categories_array = '', $parent_id = '0', $indent = '') { global $languages_id; if (!is_array($categories_array)) $categories_array = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where parent_id = '" . (int)$parent_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $categories_array[] = array('id' => $categories['categories_id'], 'text' => $indent . $categories['categories_name']); if ($categories['categories_id'] != $parent_id) { $categories_array = tep_get_categories($categories_array, $categories['categories_id'], $indent . ' '); } } return $categories_array; } //allows selecting many categories a ta time function tep_cfg_select_multicategories($key_value = '', $key) { if (tep_not_null($key_value)) $value_array = explode(', ',$key_value); else $value_array = array(); $name = ((tep_not_null($key)) ? 'configuration[' . $key . ']' : 'configuration_value').'[]'; $string = tep_draw_pull_multiselect_menu($name,tep_get_categories(), $value_array,' size="8" '); return $string; } function tep_cfg_show_multicategories($key_value = ''){ global $languages_id; $cat_str = ''; if (tep_not_null($key_value)){ $value_array = explode(', ',$key_value); for($i=0, $x=sizeof($value_array); $i<$x; $i++){ $cat_str .= tep_get_category_name((int)$value_array[$i], $languages_id).', '; } $cat_str = substr($cat_str, 0, -2); } return $cat_str; }
  3. If i try to remove all the files from this upload it says that i have a eoor when going to checkout_shipping.php. How can i take this off ?? Warning: shipping::include(includes/languages/english/modules/shipping/rmspecial.php) [function.shipping-include]: failed to open stream: No such file or directory in /home/****/public_html/inverts/includes/classes/shipping.php on line 36 Warning: shipping::include() [function.include]: Failed opening 'includes/languages/english/modules/shipping/rmspecial.php' for inclusion (include_path='.:/usr/local/php52/pear') in /home/*****/public_html/inverts/includes/classes/shipping.php on line 36 Warning: shipping::include(includes/modules/shipping/rmspecial.php) [function.shipping-include]: failed to open stream: No such file or directory in /home/****/public_html/inverts/includes/classes/shipping.php on line 37 Warning: shipping::include() [function.include]: Failed opening 'includes/modules/shipping/rmspecial.php' for inclusion (include_path='.:/usr/local/php52/pear') in /home/*****/public_html/inverts/includes/classes/shipping.php on line 37 Fatal error: Class 'rmspecial' not found in /home/*****/public_html/inverts/includes/classes/shipping.php on line 39
×