Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

State Based Region Shipping Rates


billythekid

Recommended Posts

I have installed the latest version of this contribution and get the following errors no matter how I seem to configure it:

 

Warning: reset() [function.reset]: Passed variable is not an array or object in D:\Program Files\Apache Group\Apache2\htdocs\SNJ\includes\classes\shipping.php on line 54

 

Warning: Variable passed to each() is not an array or object in D:\Program Files\Apache Group\Apache2\htdocs\SNJ\includes\classes\shipping.php on line 55

 

Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\Apache Group\Apache2\htdocs\SNJ\includes\classes\shipping.php:54) in D:\Program Files\Apache Group\Apache2\htdocs\SNJ\includes\functions\general.php on line 33

 

If anyone can help I would be very grateful as I can't set up anything until this is solved.

Link to comment
Share on other sites

  • 3 weeks later...

A large thank for this contributions wich is a lot of use in France.

I try to use a auther contrib wich allow to display a table with all the weigth / price values of the zones shipping modul. (you can find it here)

unfortunatly it works just with zones.php and not with regions.php

I think that adaptation don't must be too hard but I don't arrive there, somebody can help me please?

 

the code;

	<?php	

// Zones prices Begin

$prices=tep_db_query('SELECT SUBSTRING(c1.configuration_value,1) zona,
			 c1.configuration_key,
			 c2.configuration_value precios, 
			 c2.configuration_key
			FROM configuration c1, 
				configuration c2
		   WHERE c1.configuration_key like "MODULE_SHIPPING_ZONES_COUNTRIES_%"
			 AND c2.configuration_key like "MODULE_SHIPPING_ZONES_COST_%"
			 AND SUBSTRING(c1.configuration_key,33) = SUBSTRING(c2.configuration_key,28)
		   ORDER BY c1.configuration_value;');

$price_text .= "<table align='center' class='formArea'>\n";			 
while($price=tep_db_fetch_array($prices)){
$price_text .= '<tr>
		  <td class="productListing-heading" align="center">' 
		  . $price['zona'] . "
		  </td>
		  <td >
		   <table class='formarea' width='360'>
			 <tr>";
	$parameters_price = split("[,]", $price['precios']);
$first_row ='';
$second_row ='';
$last_weigth=NULL;
for($i=0; isset($parameters_price[$i]); $i++){
	$pair_prices = split("[:]",$parameters_price[$i]);

	if(!isset($pair_prices[0])){
		$price_text .= '<b>Error: </b>: ' . $price['precios'];
		break;	
	}

	if(NULL == $last_weigth){
		$first_row .= '<td class="productListing-data"><center><small> Pour '
					. $pair_prices[0] . 'art. </small></center></td>';
		$first=false;			
	}else{
		$first_row .= '<td class="productListing-data" ><center><small> de '
				. $last_weigth . 'art. ? ' . $pair_prices[0] . 'art. </small></center></td>';
	}
	$last_weigth = $pair_prices[0];
	if(!isset($pair_prices[1])){
		$price_text .= '<b><center>Error: precio no encontrado:</b></center> ' . $price['precios'];
		break;	
	}
	$second_row .= '<td class="productListing-data"><center><small> ' .  $pair_prices[1] . ' ? </small></center></td>';
}
$price_text .=  $first_row . "\n</tr>\n<tr>\n" . $second_row . "</tr>\n</table>\n</td>\n</tr>\n";	
}			 
$price_text .= "</table>\n";
echo $price_text;

// Zones prices END

?>

MS2 fr, ~35 contrib.

Link to comment
Share on other sites

Great Contribution.

 

I have every state in the US set up as regions with their own shipping tables, that's fine. But I would like to make any other country other than U.S. to be just one rate. So, any country that I have not listed, just charge the same high price. Can I do that, or do I have to actually list every country in the world as a region with it's own shipping table?

 

Also, if the country is not listed, I thought that the customer would be able to check out anyway, but not charge shipping. But, clicking on next just keeps the user at the shipping screen, doesn't go to the credit card screen. Isn't the user supposed to be able to check out anyway?

 

www.fleetwoodonsite.com

 

Thanks!

Edited by steve-doherty
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

would anyone know if it would be possible to combine this contribution with this one: http://www.oscommerce.com/community/contributions,1508

 

I need to have multiple zones with a shipping schedule that has a base rate but then increments by weight ie. base rate of $10 for the first 10kg, then increments by $1 for each additional 1kg.

 

Ideally then I also want to offer free shippping once the total purchase value is greater than $50

 

any thoughts? any help?

thanks.

Link to comment
Share on other sites

Has anyone been able to modify this contribution to work with the famous MVS contribution?

 

If you have, how did you do it? Could you please share your code for others to see!!?

 

I've been fiddling with the code, and it just cant manage it to work.. please take a look below:

 

  Released under the GNU General Public License


*/

 class regions {
var $code, $title, $description, $enabled, $regions, $vendors_id;

// class constructor
function regions() {
  $this->vendors_id = ($products['vendors_id'] <= 0) ? 1 : $products['vendors_id'];
  $this->code = 'regions';
  $this->title = MODULE_SHIPPING_REGIONS_TEXT_TITLE;
  $this->description = MODULE_SHIPPING_REGIONS_TEXT_DESCRIPTION;
  $this->icon = '';
  $this->tax_class = MODULE_SHIPPING_REGIONS_TAX_CLASS;
  $this->enabled = MODULE_SHIPPING_REGIONS_STATUS;
  $this->sort_order = MODULE_SHIPPING_REGIONS_SORT_ORDER;
  // CUSTOMIZE THIS SETTING FOR THE NUMBER OF States NEEDED
  $this->regions = 3;
}

// class methods
function quote($method = '', $module = '', $vendors_id = '1') {
  global $HTTP_POST_VARS, $order, $shipping_weight, $cart, $total_count;

  if (MODULE_SHIPPING_REGIONS_MODE == 'price') {
	$order_total_price = $cart->show_total();
  } 
  if (MODULE_SHIPPING_REGIONS_MODE == 'weight') {
	$order_total_price = $shipping_weight;
  }
  if (MODULE_SHIPPING_REGIONS_MODE == 'per_item') {
	$order_total_price = $total_count;
  }
  if (MODULE_SHIPPING_REGIONS_MODE == 'percentage') {
	$order_total_price = $cart->show_total();
  }	 

  $dest_state = $order->delivery['state'];
  $dest_country = $order->delivery['country']['title'];

  $dest_region = 0;
  $error = false;

  for ($i=1; $i<=$this->regions($vendors_id); $i++) {
	$regions_table = constant('MODULE_SHIPPING_REGIONS_' . $vendors_id . '_' . $i);
	$country_states_or_countries = split("[,]", $regions_table);
	if (in_array($dest_state, $country_states_or_countries)) {
	  $dest_region = $i;
	  break;
	}
  }

  if ($dest_region == 0) {
	  for ($i=1; $i<=$this->regions($vendors_id); $i++) {
		$regions_table = constant('MODULE_SHIPPING_REGIONS_' . $vendors_id . '_' . $i);
		$country_states_or_countries = split("[,]", $regions_table);
		if (in_array($dest_country, $country_states_or_countries)) {
		  $dest_region = $i;
		  break;
		}
	  }
  }

if ($dest_region == 0) {
$i = $this->regions($vendors_id);
$regions_table = constant('MODULE_SHIPPING_REGIONS' . $vendors_id . '_' . $i);
$country_states_or_countries = split("[,]", $regions_table);
if (in_array("All", $country_states_or_countries)) $dest_region = $this->regions($vendors_id);
}

  if ($dest_region == 0) {
	$error = true;
  } else {
	$shipping = -1;
	$region_cost = constant('MODULE_SHIPPING_REGIONS_COST_' . $vendors_id . '_' . $i);

	$regions_table = split("[:,]" , $region_cost);

	if (MODULE_SHIPPING_REGIONS_MODE == 'price') {
		for ($i=0; $i<sizeof($regions_table); $i+=2) {
		  if ($order_total_price <= $regions_table[$i]) {
			$shipping = $regions_table[$i+1];
			$shipping_method = MODULE_SHIPPING_REGIONS_TEXT_WAY . ' ' . "$dest_state, $dest_country" . ' ' . MODULE_SHIPPING_REGIONS_TEXT_UNITS;
			break;
		  }
		}
	}
	if (MODULE_SHIPPING_REGIONS_MODE == 'weight') {
		for ($i=0; $i<sizeof($regions_table); $i+=2) {
		  if ($order_total_price <= $regions_table[$i]) {
			$shipping = $regions_table[$i+1];
			$shipping_method = MODULE_SHIPPING_REGIONS_WEIGHT . ' ' . $shipping_weight . ' ' . MODULE_SHIPPING_REGIONS_WEIGHT_TEXT . ' '  . "$dest_state, $dest_country" . ' ' . MODULE_SHIPPING_REGIONS_TEXT_UNITS;
			break;
		  }
		}
	}
	if (MODULE_SHIPPING_REGIONS_MODE == 'per_item') {
		for ($i=0; $i<sizeof($regions_table); $i+=2) {
		  if ($order_total_price <= $regions_table[$i]) {
			$shipping = $regions_table[$i+1] * $order_total_price;
			$shipping_method = MODULE_SHIPPING_REGIONS_ITEMS . ' ' . $total_count . ' ' . MODULE_SHIPPING_REGIONS_ITEMS_TEXT . ' ' . "$dest_state, $dest_country" . ' ' . MODULE_SHIPPING_REGIONS_TEXT_UNITS;
			break;
		  }
		}
	}
	if (MODULE_SHIPPING_REGIONS_MODE == 'percentage') {
		for ($i=0; $i<sizeof($regions_table); $i+=2) {
		  if ($order_total_price <= $regions_table[$i]) {
			$shipping = ($regions_table[$i+1] / 100) * $order_total_price;
			$shipping_method = MODULE_SHIPPING_REGIONS_TEXT_WAY . ' ' . "$dest_state, $dest_country" . ' ' . MODULE_SHIPPING_REGIONS_TEXT_UNITS;
			break;
		  }
		}
	}	   


	if ($shipping == -1) {
	  $shipping_cost = 0;
	  $shipping_method = MODULE_SHIPPING_REGIONS_UNDEFINED_RATE;
	} else {
	  $shipping_cost = ($shipping + MODULE_SHIPPING_REGIONS_HANDLING + SHIPPING_HANDLING);
	}
  }

  $this->quotes = array('id' => $this->code,
						'module' => MODULE_SHIPPING_REGIONS_TEXT_TITLE,
						'methods' => array(array('id' => $this->code,
												 'title' => $shipping_method,
												 'cost' => $shipping_cost)));

  if ($this->tax_class($vendors_id) > 0) {
	  $this->quotes['tax'] = tep_get_tax_rate($this->tax_class($vendors_id), $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_REGIONS_INVALID_ZONE;

  return $this->quotes;
}

function check($vendors_id='1') {
  if (!isset($this->_check)) {
	$check_query = tep_db_query("select configuration_value from " . TABLE_VENDOR_CONFIGURATION . " where vendors_id = '". $vendors_id ."' and configuration_key = 'MODULE_SHIPPING_REGIONS_STATUS_" . $vendors_id . "'");
	$this->_check = tep_db_num_rows($check_query);
  }
  return $this->_check;
}

function install($vendors_id='1') {
//   		  $vID = $vendors_id;

  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set function, date_added) VALUES ('" . $vendors_id . "', 'Enable US Regions Method', 'MODULE_SHIPPING_REGIONS_STATUS_" . $vendors_id . "', '1', 'Do you want to offer Regions rate shipping?', '6', '0', now())");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use function, set function, date_added) values ('" . $vendors_id . "', 'Sort Order', 'MODULE_SHIPPING_REGIONS_SORT_ORDER_" . $vendors_id . "', '1', 'Sort order of display.', '6', '1', now())");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_REGIONS_TAX_CLASS_" . $vendors_id . "', '1', 'Use the following tax class on the shipping fee.', '6', '2', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())");

  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('" . $vendors_id . "', 'Handling Fee', 'MODULE_SHIPPING_REGIONS_HANDLING_" . $vendors_id . "', '0.00', 'Handling Fee for this shipping method', '6', '3', now())");
  tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('" . $vendors_id . "', 'Mode', 'MODULE_SHIPPING_REGIONS_MODE_" . $vendors_id . "','price', 'Is the shipping table based on total weight, total amount of order, number of itmes, or a percentage of the total price.', '6', '4', 'tep_cfg_select_option(array(\'weight\', \'price\', \'per_item\', \'percentage\'), ', now())");
  for ($i = 1; $i <= $this->regions($vendors_id); $i++) {
	$default_countries = '';
	if ($i == 1) {
	  $default_states_or_countries = 'Connecticut';
	  $default_prices = '30:8.95,75:10.95,150:16.95,400:21.95,10000:25.95';
	}
	if ($i == 2) {
	  $default_states_or_countries = 'Alabama,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,District of Columbia,Florida,Georgia,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,M
aine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana';
	  $default_prices = '30:10.95,75:12.95,150:18.95,400:23.95,10000:27.95';
	}
	if ($i == 3) {
	  $default_states_or_countries = 'Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming';
	  $default_prices = '30:10.95,75:12.95,150:18.95,400:23.95,10000:27.95';
	}
	tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('" . $vendors_id . "','Region " . $i ." States/Countries', 'MODULE_SHIPPING_REGIONS_" . $vendors_id . "_" . $i ."', '" . $default_states_or_countries . "', 'Comma separated list of States and/or Countries " . $i . ".', '6', '0', now())");
	tep_db_query("insert into " . TABLE_VENDOR_CONFIGURATION . " (vendors_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('" . $vendors_id . "', 'Region " . $i ." Shipping Table', 'MODULE_SHIPPING_REGIONS_COST_"  . $vendors_id . "_" . $i ."', '" . $default_prices . "' , '(weight/price/# of items/)<b>:</b>(shipping cost/percentage) " . $i . ".', '6', '0', now())");
  }
}

function remove($vendors_id) {
  $keys = '';
  $keys_array = $this->keys($vendors_id);
  for ($i=0; $i<sizeof($keys_array); $i++) {
	$keys .= "'" . $keys_array[$i] . "',";
  }
  $keys = substr($keys($vendors_id), 0, -1);

  tep_db_query("delete from " . TABLE_VENDOR_CONFIGURATION . " where vendors_id = '". $vendors_id ."' and configuration_key in (" . $keys . ")");
}

function keys($vendors_id) {
  $keys = array('MODULE_SHIPPING_REGIONS_STATUS_' . $vendors_id, 'MODULE_SHIPPING_REGIONS_SORT_ORDER_' . $vendors_id, 'MODULE_SHIPPING_REGIONS_HANDLING_' . $vendors_id, 'MODULE_SHIPPING_REGIONS_MODE_' . $vendors_id, 'MODULE_SHIPPING_REGIONS_TAX_CLASS_' . $vendors_id);
  for ($i=1; $i<=$this->regions($vendors_id); $i++) {
	$keys[] = 'MODULE_SHIPPING_REGIONS_' . $vendors_id . '_' . $i;
	$keys[] = 'MODULE_SHIPPING_REGIONS_COST_' . $vendors_id . '_' . $i;
  }

  return $keys;
}
 }
?>

 

Thanks for your help!!

 

-thomp

Link to comment
Share on other sites

  • 1 month later...
Great Contribution.

 

I have every state in the US set up as regions with their own shipping tables, that's fine. But I would like to make any other country other than U.S. to be just one rate. So, any country that I have not listed, just charge the same high price. Can I do that, or do I have to actually list every country in the world as a region with it's own shipping table?

 

Also, if the country is not listed, I thought that the customer would be able to check out anyway, but not charge shipping. But, clicking on next just keeps the user at the shipping screen, doesn't go to the credit card screen. Isn't the user supposed to be able to check out anyway?

 

www.fleetwoodonsite.com

 

Thanks!

 

This is now possible with the version i posted today. it has a 4th region called "global" any country/state not defines, goes by the rates degfined to the global region.

Link to comment
Share on other sites

  • 1 month later...
The shipping cost is calculated based on the values you enter. If the rates are something like:

200:7.00,500:10.00,1000:16.00, since your first value is 200:7.00, that means that anything UP TO 200(lbs or currency) will be charged 7.00, the anything above 200 and UPTO 500, will be charges 10.00, and so on.

So to answer you question anything from 0 to the first values, will be charged the first price, that includes 0.07.

I hope that answers you question.

 

hi. great contribution, thanks.

i'm just having a little problem with the weight:

if it's above the zone rates, it is not calculated and i get "The shipping rate cannot be determined at this time"

 

ie: a product has weight 1 and zone is configured 1:5.00,2:6.00

if i order 1 of it (weight=1), the rate is shown

if i order 2 of it (weight=2), the rate is shown

if i order 3 of it (weight=3), there comes the error

 

any ideas?

ps. had to set tare weight and larger package percentages to 0 to get things working (on configuration>shipping/packaging)

Link to comment
Share on other sites

  • 2 months later...

This "State Based Rates" contribution is great! Installed it on one of 3 of my websites, had a little bit of problem but got that fixed. Missed the part with the states being upper and lower case...drrr.

 

Now on my second website, I did the uploading the same way as I did the first, but when I go to the module section and click on state-based regions-rates and then click on install I receive the error:

"PHP Fatal error: Cannot instantiate non-existent class: regions in ...catalog\admin\modules.php on line 57".

 

I am out of "maybe it's this or that" excuses. Any ideas why this would happen on the second site and not the first?? I'm lost, please find me! Thanks

Link to comment
Share on other sites

This "State Based Rates" contribution is great! Installed it on one of 3 of my websites, had a little bit of problem but got that fixed. Missed the part with the states being upper and lower case...drrr.

 

Now on my second website, I did the uploading the same way as I did the first, but when I go to the module section and click on state-based regions-rates and then click on install I receive the error:

"PHP Fatal error: Cannot instantiate non-existent class: regions in ...catalog\admin\modules.php on line 57".

 

I am out of "maybe it's this or that" excuses. Any ideas why this would happen on the second site and not the first?? I'm lost, please find me! Thanks

Link to comment
Share on other sites

This "State Based Rates" contribution is great! Installed it on one of 3 of my websites, had a little bit of problem but got that fixed. Missed the part with the states being upper and lower case...drrr.

 

Now on my second website, I did the uploading the same way as I did the first, but when I go to the module section and click on state-based regions-rates and then click on install I receive the error:

"PHP Fatal error: Cannot instantiate non-existent class: regions in ...catalog\admin\modules.php on line 57".

 

I am out of "maybe it's this or that" excuses. Any ideas why this would happen on the second site and not the first?? I'm lost, please find me! Thanks

 

Make sure you are uploading all the files in this contributions. and make sure you are doing that is ascii

Link to comment
Share on other sites

By adding more regions I mean what if I have 4 countries to which I want to ship and each of the countries has about 4 different price structures based on distance. Any advise on how to go by that would be greatly appreciated

 

Paul

Link to comment
Share on other sites

  • 1 month later...

Percentage AND Price

 

I need to know if there is a way to set fixed price shipping for the first few sets and then use a percentage for the last shipping calculation. See example below:

 

California,Oregon,Washington

 

39.99:5.99,59.99:6.99,79.99:8.99,99.99:9.99,1000.00:9%

 

So in the case above any order $39.99 and under would be shipped at $5.99; every order $1000 and over would be priced to ship at 9% of the total.

 

I have not found a way to do this yet. Percentage OR Price fine, but not both.

 

Anyone help me out with this?

 

Great contrib otherwise!

 

DuGsays

Link to comment
Share on other sites

  • 5 weeks later...

Does this mod work for a set up like the following?

 

For example.. The capital city of each state as one price and then all the rest of the state as one price

 

One of the capitals (Sydney) also needs and extra carton price.

 

Sydney NSW Metropolitan $6 1st ctn + $3 per extra carton

NSW Other $10 per carton

 

Melbourne VIC Metropolitan $6 per carton

VIC Other $10 per carton

 

Brisbane, Gold Coast QLD $7 per carton

QLD Other $14 per carton

 

Adelaide SA Metropolitan $7 per carton

SA Other $14 per carton

 

 

Thanks

 

oz

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Hi

This is the contribution which I have been looking for.

I am located at Malaysia.

I've installed the contribution files into the relevant directories.

In admin -> Modules -> Shipping, I installed the 'Regions" module.

 

The following is how the 'Region" module settings are...

Enable US Regions Method

0 -> should this be 1 or 0? I am located in Malaysia so US Regions method does not apply to me. However, putting a 0 or 1 did not effect the outcome.

 

 

Sort Order

1

 

Handling Fee

0.00

 

Mode

weight

 

Tax Class

--none--

 

Region 1 States/Countries

SE,JO -> I added these states in admin->locations/taxes->zones section. I added these states under Malaysia.

 

Region 1 Shipping Table

1:5.00,2:7.50,10:10.00

 

Region 2 States/Countries

SA,SW,LA -> I added these states in admin->locations/taxes->zones section. I added these states under Malaysia.

 

Region 2 Shipping Table

0.5:8.50,1:9.90

 

However when I did a checkout, the State/Region based shipping rates does not even show up. Am I missing something here?

 

Thanks in advance

Link to comment
Share on other sites

  • 4 weeks later...
Here a module I just made because I really needed this and could not find it anywhere.

http://www.oscommerce.com/downloads.php/co...ions,809/type,2

This module allows you create shipping regions by dividing states of the USA (or other country) in different groups. Each group will then have it's own shipping price which you can based on price or weight.

This module is perfect when for those of you need to charge different when shipping to different parts of the country.

Features

1..Regions can be composed of US States or of any other country

2..Order weight or price can be used to calculate shipping price.

3..Any number of regions

4..Handling fee can be added.

Jorge

Jorge

This module allows you create shipping regions by dividing states of the USA (or other country) in different groups. Each group will then have it's own shipping price which you can based on price or weight.

This module is perfect when for those of you need to charge different when shipping to different parts of the country.

Features

1..Regions can be composed of US States or of any other country

2..Order weight or price can be used to calculate shipping price.

3..Any number of regions

4..Handling fee can be added.

Jorge

Ok i have try. for my part i have this problem i cannot add a large number of states per regions.

In regions.php i have this:default_states_or_countries = 'Germany,Aisne,Ardennes,Aube,Calvados,Charente Maritime,Cher,Creuse,Dordogne,Doubs,Eure,Eure et Loir,Finistère,Yvelines,Yonne,Vosges,Vienne,Vendée,Val de Marne,Territoire de Belfort,Somme,Seine St-Denis,Seine Maritime,Seine et Marne,Sarthe,Pas de Calais,Paris,Orne,Oise,Nord,Nièvre,Moselle,Morbihan,Meuse,Meurthe et Moselle,Mayenne,Marne,Manche,Maine et Loire,Loire Atlantique,Loir et Cher,Jura,Indre et Loire,Indre,Ille et Vilaine,Hauts de Seine,Haute Saône,Haute Marne,Haut Rhin,Bas Rhin,Saône et Loire,Deux Sèvres,Essonne';

but i when i go to admin in oscommerce i have this:

Regions 4 States/Countries

Germany,Aisne,Ardennes,Aube,Calvados,Charente Maritime,Cher,Creuse,Dordogne,Doubs,Eure,Eure et Loir,Finistère,Yvelines,Yonne,Vosges,Vienne,Vendée,Val de Marne,Territoire de Belfort,Somme,Seine St-Denis,Seine Maritime,Seine et Marne,Sarthe,Pas de Calais,Pa

i also cannot set states such Côtes d'armor or Val d'Oise

Link to comment
Share on other sites

  • 3 weeks later...

State Based Shipping

 

"copied the 2 files and changed names to express_regions, then changed content so any instance of:

MODULE_SHIPPING_REGIONS becomes MODULE_SHIPPING_EXPRESS_REGIONS

and regions becomes express_regions"

 

 

It displays correctly on checkout_shipping.php but when you choose the Express one and hit continue it takes you to checkout_shipping.php again. It gets stuck on that page instead of going to the next one (checkout_payment.php)

 

Did anyone ever get this resolved?

 

ADW

Link to comment
Share on other sites

  • 2 weeks later...

hi,

 

i have the region based shipping module, i believe version 4.0 installed. it works great for weight and destination based ground rates. I was wanting to duplicate this module to use for weight/destination based rates for freight trucks.

 

I read about changing the names to something else, in order to not conflict with the other one installed. but here is the kicker, which should be easy for a good programmer - I only want this shipping option to display when the weight of the order exceeds 150 lbs? otherwise, just the ground option would be shown

 

Any ideas? If someone can help me, I will GLADLY send a nice paypal PAYMENT.

 

Thanks!!!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...