_:n8746bc60d15a4e8aa16c4616037adb53xb11
<http://schema.org/text>
"nic, niki, is having the same problem I am having...\n \n\nFatal error: Call to undefined function: get_shiptotal() in /home/httpd/vhosts/mydomain.com/httpsdocs/catalog/includes/modules/shipping/indvship.php on line 53\n\n\n \nCan someone lend a little help for this great mod?\n \nI have these mods installed on a 2.2 ms 2 version of oscommerce\n \nOptions_as_Images 1.2\nProduct_images_in_product_listing\nPWA 0.71\ntabs ver 1.3\nadmin_infobox\nadditional_table_rate_options ver 1.1\nAttribute_Sort_Order\n \n \nHere is my /catalog/includes/modules/shipping/indvship.php file:\n \n\n&lt;?php\n/*\n $Id: indvship.php,v 1.0 2003/07/07 00:00:01 hpdl Exp $\n by D. M. Gremlin\n\n osCommerce, Open Source E-Commerce Solutions\n http://www.oscommerce.com\n\n Copyright (c) 2003 osCommerce\n\n Released under the GNU General Public License\n*/\n\n class indvship {\n   var $code, $title, $description, $icon, $enabled;\n\n// class constructor\n   function indvship() {\n     global $order;\n     $this-&gt;code = 'indvship';\n     $this-&gt;title = MODULE_SHIPPING_INDVSHIP_TEXT_TITLE;\n     $this-&gt;description = MODULE_SHIPPING_INDVSHIP_TEXT_DESCRIPTION;\n     $this-&gt;sort_order = MODULE_SHIPPING_INDVSHIP_SORT_ORDER;\n     $this-&gt;icon = '';\n     $this-&gt;tax_class = MODULE_SHIPPING_INDVSHIP_TAX_CLASS;\n     $this-&gt;enabled = ((MODULE_SHIPPING_INDVSHIP_STATUS == 'True') ? true : false);\n\n// Enable Individual Shipping Module\n     $this-&gt;enabled = MODULE_SHIPPING_INDVSHIP_STATUS;\n     if ( ($this-&gt;enabled == true) &amp;&amp; ((int)MODULE_SHIPPING_INDVSHIP_ZONE &gt; 0) ) {\n       $check_flag = false;\n       $check_query = tep_db_query(\"select zone_id from \" . TABLE_ZONES_TO_GEO_ZONES . \" where geo_zone_id = '\" . MODULE_SHIPPING_INDVSHIP_ZONE . \"' and zone_country_id = '\" . $order-&gt;delivery['country']['id'] . \"' order by zone_id\");\n       while ($check = tep_db_fetch_array($check_query)) {\n         if ($check['zone_id'] &lt; 1) {\n           $check_flag = true;\n           break;\n         } elseif ($check['zone_id'] == $order-&gt;delivery['zone_id']) {\n           $check_flag = true;\n           break;\n         }\n       }\n\n       if ($check_flag == false) {\n         $this-&gt;enabled = false;\n       }\n     }\n   }\n\n// class methods\n\n  function quote($method = '') {\n     global $order, $cart;\n  $shiptotal = $cart-&gt;get_shiptotal();\n\n     $this-&gt;quotes = array('id' =&gt; $this-&gt;code,\n                           'module' =&gt; MODULE_SHIPPING_INDVSHIP_TEXT_TITLE,\n                           'methods' =&gt; array(array('id' =&gt; $this-&gt;code,\n                                                    'title' =&gt; MODULE_SHIPPING_INDVSHIP_TEXT_WAY,\n                                                    'cost' =&gt; $shiptotal)));\n\n     if ($this-&gt;tax_class &gt; 0) {\n       $this-&gt;quotes['tax'] = tep_get_tax_rate($this-&gt;tax_class, $order-&gt;delivery['country']['id'], $order-&gt;delivery['zone_id']);\n     }\n\n     if (tep_not_null($this-&gt;icon)) $this-&gt;quotes['icon'] = tep_image($this-&gt;icon, $this-&gt;title);\n\n     return $this-&gt;quotes;\n   }\n   \n \n\n   function check() {\n     if (!isset($this-&gt;_check)) {\n       $check_query = tep_db_query(\"select configuration_value from \" . TABLE_CONFIGURATION . \" where configuration_key = 'MODULE_SHIPPING_INDVSHIP_STATUS'\");\n       $this-&gt;_check = tep_db_num_rows($check_query);\n     }\n     return $this-&gt;_check;\n   }\n\n   function install() {\n    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 Individual Shipping Prices', 'MODULE_SHIPPING_INDVSHIP_STATUS', 'True', 'Do you want to offer individual shipping prices?', '6', '0', 'tep_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n    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_INDVSHIP_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())\");\n    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_INDVSHIP_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())\");\n    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', 'MODULE_SHIPPING_INDVSHIP_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())\");\n   }\n\n   function remove() {\n     \n     tep_db_query(\"delete from \" . TABLE_CONFIGURATION . \" where configuration_key in ('\" . implode(\"', '\", $this-&gt;keys()) . \"')\");\n   }\n\n   function keys() {\n     return array('MODULE_SHIPPING_INDVSHIP_STATUS', 'MODULE_SHIPPING_INDVSHIP_TAX_CLASS', 'MODULE_SHIPPING_INDVSHIP_ZONE', 'MODULE_SHIPPING_INDVSHIP_SORT_ORDER');\n   }\n }\n?&gt;\n\n\n \n \nI will be working on this and if I find a solution, I will post it here.\n \nAll suggestions appreciated."
<https://forums.oscommerce.com/topic/50221-contribution-individual-product-shipping-prices/?page=6&tab=comments#comment-528004>