mtechama Posted April 4, 2006 Share Posted April 4, 2006 (edited) help get one set up like for a gift item Fatal error: Call to undefined function: get_multi_weight() in /home/content/m/t/e/mtechamatest/html/catalog/includes/modules/shipping/mltship.php on line 57 Now I got another problem: check out I got this error: Edited April 4, 2006 by mtechama Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 I have over 1,000 Gift Items and about 250 computer parts Do I need to fill anything in the Vendor information? Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 I think I figure it out now: Like Vendor Name#1 is: Gift Items Vendor Name#2 is: Computer Parts Right? Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
♥kymation Posted April 4, 2006 Share Posted April 4, 2006 I think I figure it out now: Like Vendor Name#1 is: Gift Items Vendor Name#2 is: Computer Parts Right? Right. That should do it if you're only using the Table module. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 (edited) now I need help on getting the pricing right when I did a test I couldn't get the precentage right like this defualt printer for 499.99 how can I get that to do a 20% Edited April 4, 2006 by mtechama Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
♥kymation Posted April 4, 2006 Share Posted April 4, 2006 now I need help on getting the pricing right when I did a test I couldn't get the precentage right like this defualt printer for 499.99 how can I get that to do a 20% I've never used the percentage mod for Tables so I can't help you with that one. Check the Readme in the distribution or look for a support thread on the forums for that mod. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 Well the support thread is right here Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 Jim, I have something to show you I have a shipping table rate and they use percentages on my regular store here it is: (catalog)/includes/modules/shipping/table2.php <?php /* $Id: table.php,v 1.27 2003/02/05 22:41:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class table2 { var $code, $title, $description, $icon, $enabled; // class constructor function table2() { global $order; $this->code = 'table2'; $this->title = MODULE_SHIPPING_TABLE2_TEXT_TITLE; $this->description = MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_TABLE2_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_TABLE2_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_TABLE2_STATUS == 'True') ? true : false); if (is_object($order)) { // disable the module if the order only contains virtual products if ($this->enabled == true) { global $cart; if ($cart->show_total() == 0.00) { $this->enabled = false; } } } if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE2_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_TABLE2_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; if (MODULE_SHIPPING_TABLE2_MODE == 'price') { $order_total = $cart->show_total(); } else { $order_total = $shipping_weight; } $table_cost = split("[:,]" , MODULE_SHIPPING_TABLE2_COST); $size = sizeof($table_cost); for ($i=0, $n=$size; $i<$n; $i+=2) { if ($order_total <= $table_cost[$i]) { if ((MODULE_SHIPPING_TABLE_MODE == 'price') && (strpos($table_cost[$i+1],'%')) && (strpos($table_cost[$i+1],'+'))) { $shipping = before('+',$table_cost[$i+1]) + $order_total * (after('+',$table_cost[$i+1])/100); } elseif ((MODULE_SHIPPING_TABLE_MODE == 'price') && (strpos($table_cost[$i+1],'%'))) { $shipping = $order_total * ($table_cost[$i+1]/100); } else { $shipping = $table_cost[$i+1]; } break; } } if (MODULE_SHIPPING_TABLE2_MODE == 'weight') { $shipping = $shipping * $shipping_num_boxes; } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_TABLE2_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_TABLE2_TEXT_WAY, 'cost' => $shipping + MODULE_SHIPPING_TABLE2_HANDLING))); 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); 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_TABLE2_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 Table Method', 'MODULE_SHIPPING_TABLE2_STATUS', 'True', 'Do you want to offer table rate 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 ('Shipping Table', 'MODULE_SHIPPING_TABLE2_COST', '25:8.50,50:5.50,10000:0.00', 'The shipping cost is based on the total cost or weight of items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc', '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 ('Table Method', 'MODULE_SHIPPING_TABLE2_MODE', 'weight', 'The shipping cost is based on the order total or the total weight of the items ordered.', '6', '0', 'tep_cfg_select_option(array(\'weight\', \'price\'), ', 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_TABLE2_HANDLING', '0', '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, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_TABLE2_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, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_TABLE2_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, date_added) values ('Sort Order', 'MODULE_SHIPPING_TABLE2_SORT_ORDER', '0', 'Sort order of display.', '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_TABLE2_STATUS', 'MODULE_SHIPPING_TABLE2_COST', 'MODULE_SHIPPING_TABLE2_MODE', 'MODULE_SHIPPING_TABLE2_HANDLING', 'MODULE_SHIPPING_TABLE2_TAX_CLASS', 'MODULE_SHIPPING_TABLE2_ZONE', 'MODULE_SHIPPING_TABLE2_SORT_ORDER'); } } ?> and the other one: (catalog)/languages/english/modules/shipping/table2.php <?php /* $Id: table.php,v 1.5 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('MODULE_SHIPPING_TABLE2_TEXT_TITLE', 'Rush Order Table Rate'); define('MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION', 'Rush Order Table Rate'); define('MODULE_SHIPPING_TABLE2_TEXT_WAY', 'A shipping charge of $7.50 with a Service Charge of $2.50 up to $100.00 to total cost. If the total cost is $100 or more then add a 10% shipping charge to the total cost(order). It will leave our store within 7 to 14 Business Days. For Shipping comments please type your comments below.'); define('MODULE_SHIPPING_TABLE2_TEXT_WEIGHT', 'Weight'); define('MODULE_SHIPPING_TABLE2_TEXT_AMOUNT', 'Amount'); Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 Man I am totally confused here................. Ok what did I just download of OScommerce? oscommerce-2.2ms2 that is what I just downloaded Ya know I had this peroblem until I realized other contributions I had installed were from old versions. Like I couldn't get the css menu to work because another contribution had replaced the file with an older version of the file. Anyways just a thought. Steph :) Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 (edited) Well the support thread is right here What he is telling you is that no one here wrote that shipping module. MVS is a modification that allows you to use many shipping at once. MVS just uses the existing shipping modules mostly, so if you want help with a specific shipping module you will have to ask at the support thread for that module. Whether you are using MVS or not if you have a problem with a shipping module you will have to post on the thread for that module. Hope that helps, Stephanie :) Edited April 4, 2006 by gr8sale Quote Link to comment Share on other sites More sharing options...
beisupplies Posted April 4, 2006 Share Posted April 4, 2006 Will this module allow you to have two different free shipping amount? Lets say $50 on x products and $100 on y products. Quote Link to comment Share on other sites More sharing options...
PaulOB Posted April 4, 2006 Share Posted April 4, 2006 That was an interesting approach Paul. Very nice. Craig :) Jim / Craig, Another globals issue I'm afraid... I had MVS working well UNTIL I tried to change some product attributes... I got the error: Fatal error: Call to undefined function: link_get_variable() in .../admin/products_attributes.php on line 18 My code for admin/products_attributes.php has this piece of code inserted lines 16-21 so it will work register globals disabled: // >>> BEGIN REGISTER_GLOBALS // These variables are accessed directly rather than through $HTTP_GET_VARS or $_GET later in this script link_get_variable('option_page'); //this is line 18 in my code link_get_variable('value_page'); link_get_variable('attribute_page'); // <<< END REGISTER_GLOBALS Any thoughts or suggestions?? Cheers, Paul. Quote Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 Will this module allow you to have two different free shipping amount? Lets say $50 on x products and $100 on y products. yes I am aware of that, But that isn't what I need. what I need is by percentage rate? Lets say 20% on x products and $10.00 up to $100.00 and after that is 10% here is the example of the shipping table I have been using before I was using this contrib. "100:10.00,10000:10%" that was for my gift items. Do you see what I am saying on that? Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
beisupplies Posted April 4, 2006 Share Posted April 4, 2006 yes I am aware of that, But that isn't what I need. what I need is by percentage rate? Lets say 20% on x products and $10.00 up to $100.00 and after that is 10% here is the example of the shipping table I have been using before I was using this contrib. "100:10.00,10000:10%" that was for my gift items. Do you see what I am saying on that? Here's what we're trying to do. We sell printer supplies. Our compatible products we'de like to continue offering free shipping on any order over $50. For OEM/Genuine products we need it to be around $500. If someone ordered lets say 2 compatible products > $50 (those would qualify for free shipping), but they also ordered 2 OEM/Genuine products < $500, we need to charge shipping on those. Actuall shipping charges would be best via UPS. Quote Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 (edited) Here's what we're trying to do. We sell printer supplies. Our compatible products we'de like to continue offering free shipping on any order over $50. For OEM/Genuine products we need it to be around $500. If someone ordered lets say 2 compatible products > $50 (those would qualify for free shipping), but they also ordered 2 OEM/Genuine products < $500, we need to charge shipping on those. Actuall shipping charges would be best via UPS. that is not what I want................... I thnk I am wasting my time on this. I want my shipment like this. $10.00 for up to $100.00 and after that is 10% for any over $100 that is for x products of the total order. and 20% for the y products of the total order. Edited April 4, 2006 by mtechama Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
beisupplies Posted April 4, 2006 Share Posted April 4, 2006 that is not what I want................... I thnk I am wasting my time on this. I want my shipment like this. $10.00 for up to $100.00 and after that is 10% for any over $100 that is for x products of the total order. and 20% for the y products of the total order. i think we're both asking questions. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 That's the problem then. What you got is ancient code that (as far as I know) never worked properly. Go use that link that I gave you and get the up-to-date code. No wonder things were so weird. I was thinking that I need to add a couple of layers to my tinfoil hat. Regards Jim I was beginning to think I needed to invest in one! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 i think we're both asking questions. MVS Will allow you to do many things with how the shipping of items is handled. You just set up a different vendor for each shipping plan you need. Make sure you name them so you know what they are when you see the name. Then Manage the vendors and apply the correct shipping plan. then go and set your items to the correct vendors and you are done. When you are looking at this for the first time I know it can feel overwhelming, but it is easy once you see it working. For those of you trying to get Easy Populate to work with it or standard osCommerce, there were quite a few bug fixes I had to make before it worked, but once it does it is a god send. Quote Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 MVS Will allow you to do many things with how the shipping of items is handled. You just set up a different vendor for each shipping plan you need. Make sure you name them so you know what they are when you see the name. Then Manage the vendors and apply the correct shipping plan. then go and set your items to the correct vendors and you are done. When you are looking at this for the first time I know it can feel overwhelming, but it is easy once you see it working. For those of you trying to get Easy Populate to work with it or standard osCommerce, there were quite a few bug fixes I had to make before it worked, but once it does it is a god send. I go the contribution working but I can't get the shipping cost working like the way I want it. Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
beisupplies Posted April 4, 2006 Share Posted April 4, 2006 MVS Will allow you to do many things with how the shipping of items is handled. You just set up a different vendor for each shipping plan you need. Make sure you name them so you know what they are when you see the name. Then Manage the vendors and apply the correct shipping plan. then go and set your items to the correct vendors and you are done. When you are looking at this for the first time I know it can feel overwhelming, but it is easy once you see it working. For those of you trying to get Easy Populate to work with it or standard osCommerce, there were quite a few bug fixes I had to make before it worked, but once it does it is a god send. How difficult is it to implement on a live store? I'll make another backup and get started. thanks for your help. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 (edited) Here's what we're trying to do. We sell printer supplies. Our compatible products we'de like to continue offering free shipping on any order over $50. For OEM/Genuine products we need it to be around $500. If someone ordered lets say 2 compatible products > $50 (those would qualify for free shipping), but they also ordered 2 OEM/Genuine products < $500, we need to charge shipping on those. Actuall shipping charges would be best via UPS. I don't know why that other guy responed at all to your question. He thought you were answering his question or something. Anyways yes you should be able to set them up that way. I would think that for one vendor you would use UPS and Free shipping at the same time. Just set thee limit on free shippin to $50. An then set up the other vendor the same way with UPS and Free Shipping over $500. Hope that helps. :) Stephanie Edited April 4, 2006 by gr8sale Quote Link to comment Share on other sites More sharing options...
mtechama Posted April 4, 2006 Share Posted April 4, 2006 I don't know why that other guy responed at all to your question. He thought you were answering his question or something. Anyways yes you should be able to set them up that way. I would think that for one vendor you would use UPS and Free shipping at the same time. Just set thee limit on free shippin to $50. An then set up the other vendor the same way with UPS and Free Shipping over $500. Hope that helps. :) Stephanie Stephanie, I didn't realized that he was asking the same type question. Sorry about that beisupplies. Quote Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 Stephanie, I didn't realized that he was asking the same type question. Sorry about that beisupplies. Did you try the thread for table shipping rates so that you can get you shipping set up? Anyways I'm not sure that table rates are made to work this way, they are made to charge flat amounts. Like $5 on orders up to $50, $12 on orders up to $100, and so on. You can use weight or price. you could set up the table rates for up to the $100 but after that you would need a different shipping modules that charges by percentages. May be there is another table shipping mod that lets you do this but this table shipping mod only lets you use flat amounts. Does that help? I guess basically I don't see how you can set up what you want with the existing shipping mods in MVS. Stephanie Quote Link to comment Share on other sites More sharing options...
beisupplies Posted April 4, 2006 Share Posted April 4, 2006 I don't know why that other guy responed at all to your question. He thought you were answering his question or something. Anyways yes you should be able to set them up that way. I would think that for one vendor you would use UPS and Free shipping at the same time. Just set thee limit on free shippin to $50. An then set up the other vendor the same way with UPS and Free Shipping over $500. Hope that helps. :) Stephanie Thanks Stephanie, I didn't realize you could have different shipping for each vendor. I think all I'll just setup 2 vendors, one for OEm, and the other for caomptibles. We don't need to forward anything to the vendors since we ship from ourn own inventory. i'm in the process of backing up the store before applying the mod. hope all goes well, if not it may be a long day/night. lol Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 (edited) Jim, I have something to show you I have a shipping table rate and they use percentages on my regular store here it is: (catalog)/includes/modules/shipping/table2.php <?php /* $Id: table.php,v 1.27 2003/02/05 22:41:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class table2 { var $code, $title, $description, $icon, $enabled; // class constructor function table2() { global $order; $this->code = 'table2'; $this->title = MODULE_SHIPPING_TABLE2_TEXT_TITLE; $this->description = MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_TABLE2_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_TABLE2_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_TABLE2_STATUS == 'True') ? true : false); if (is_object($order)) { // disable the module if the order only contains virtual products if ($this->enabled == true) { global $cart; if ($cart->show_total() == 0.00) { $this->enabled = false; } } } if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE2_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_TABLE2_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; if (MODULE_SHIPPING_TABLE2_MODE == 'price') { $order_total = $cart->show_total(); } else { $order_total = $shipping_weight; } $table_cost = split("[:,]" , MODULE_SHIPPING_TABLE2_COST); $size = sizeof($table_cost); for ($i=0, $n=$size; $i<$n; $i+=2) { if ($order_total <= $table_cost[$i]) { if ((MODULE_SHIPPING_TABLE_MODE == 'price') && (strpos($table_cost[$i+1],'%')) && (strpos($table_cost[$i+1],'+'))) { $shipping = before('+',$table_cost[$i+1]) + $order_total * (after('+',$table_cost[$i+1])/100); } elseif ((MODULE_SHIPPING_TABLE_MODE == 'price') && (strpos($table_cost[$i+1],'%'))) { $shipping = $order_total * ($table_cost[$i+1]/100); } else { $shipping = $table_cost[$i+1]; } break; } } if (MODULE_SHIPPING_TABLE2_MODE == 'weight') { $shipping = $shipping * $shipping_num_boxes; } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_TABLE2_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_TABLE2_TEXT_WAY, 'cost' => $shipping + MODULE_SHIPPING_TABLE2_HANDLING))); 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); 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_TABLE2_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 Table Method', 'MODULE_SHIPPING_TABLE2_STATUS', 'True', 'Do you want to offer table rate 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 ('Shipping Table', 'MODULE_SHIPPING_TABLE2_COST', '25:8.50,50:5.50,10000:0.00', 'The shipping cost is based on the total cost or weight of items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc', '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 ('Table Method', 'MODULE_SHIPPING_TABLE2_MODE', 'weight', 'The shipping cost is based on the order total or the total weight of the items ordered.', '6', '0', 'tep_cfg_select_option(array(\'weight\', \'price\'), ', 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_TABLE2_HANDLING', '0', '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, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_TABLE2_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, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_TABLE2_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, date_added) values ('Sort Order', 'MODULE_SHIPPING_TABLE2_SORT_ORDER', '0', 'Sort order of display.', '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_TABLE2_STATUS', 'MODULE_SHIPPING_TABLE2_COST', 'MODULE_SHIPPING_TABLE2_MODE', 'MODULE_SHIPPING_TABLE2_HANDLING', 'MODULE_SHIPPING_TABLE2_TAX_CLASS', 'MODULE_SHIPPING_TABLE2_ZONE', 'MODULE_SHIPPING_TABLE2_SORT_ORDER'); } } ?> and the other one: (catalog)/languages/english/modules/shipping/table2.php <?php /* $Id: table.php,v 1.5 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('MODULE_SHIPPING_TABLE2_TEXT_TITLE', 'Rush Order Table Rate'); define('MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION', 'Rush Order Table Rate'); define('MODULE_SHIPPING_TABLE2_TEXT_WAY', 'A shipping charge of $7.50 with a Service Charge of $2.50 up to $100.00 to total cost. If the total cost is $100 or more then add a 10% shipping charge to the total cost(order). It will leave our store within 7 to 14 Business Days. For Shipping comments please type your comments below.'); define('MODULE_SHIPPING_TABLE2_TEXT_WEIGHT', 'Weight'); define('MODULE_SHIPPING_TABLE2_TEXT_AMOUNT', 'Amount'); You could tweak this module to work with MVS, I needed Indvidual Shipping for MVS so I had to write it. There are instructions in the MVS download on how to modify othe shipping modules to work with MVS. I just used those. Stephanie :) Edited April 4, 2006 by gr8sale Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.