Jump to content
Sign in to follow this  

Individual Product Shipping Prices per Zones

Recommended Posts

I just installed this old individual by zone modules and i need this but there isn't any latest version on it.




I encounter this problem in admin categories page, where it display the error massage in side the product page:



Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/store/includes/functions/indvshipzones.php on line 58



where the code in the "includes/functions/indvshipzones.php" are:


 function Display($product_id) {
	$return = "<table class='main'><tr>";
	$nZones = count(GetAllZones());
	$i = 1;
	foreach(GetAllZones() as $key=>$value) {
		$finLigne = "";
		if ($i==$nZones) { // Cherche la fin de tableau
			$modulo = $i%3; // Nombre de cellules vides restantes
			for ($x=0; $x<=$modulo; $x++) {
				$finLigne .= "<td></td><td></td>";
		elseif ($i%3 == 0 && $i<$nZones) $finLigne .= "</tr><tr>";
		elseif ($i%3 == 0) $finLigne .= "</tr>";
		$zone_code = $key;
		$zone_name = $value;
		$price = number_format(GetPrice($product_id, $zone_code),2);
		$priceInput = tep_draw_input_field($zone_code, $price);
		$return .= "<td>".$zone_name ."</td><td>". $priceInput."</td>".$finLigne;
	$return .= "</table>";
	return $return;



When i ignore this, go straight to preview product and update, this error ocurred:


Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/store/admin/categories.php on line 329


Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/store/admin/categories.php:329) in /home/xxx/public_html/store/admin/includes/functions/general.php on line 22


where the code in admin/categories.php are:


foreach(GetAllZones() as $key=>$value) {
			if(isset($HTTP_POST_VARS[$key])) {
				SetPrices((int)$products_id, $key, $HTTP_POST_VARS[$value]);


Appreciate for ppl who have installed this add on to give a hand.


Thank you.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this