Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using Dual Zones Contribution


msaunders

Recommended Posts

Hello

 

I am trying to setup mutiple Zones for shipping costs. I am trying to edit the line '$this->num_zones' so I can increase the default from 1 zone to 5 or 6 . Does anyone know where this variable is ? Has anyone used this ?

 

thanks

martin

Link to comment
Share on other sites

Does anyone know where this variable is  ? Has anyone used this ?

 

Try opening up the module itself which you will find in catalog/includes/modules/shipping

 

The variable should be near the top of the file :)

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Hmm, if it is I cant see it ..

<?php

/*

$Id: zones.php,v v 1.2 2002/05/18 07:07:45 mabosch Exp $

 

The Exchange Project - Community Made Shopping!

http://www.theexchangeproject.org

 

Copyright © 2000,2001 The Exchange Project

 

Released under the GNU General Public License

*/

 

define('MODULE_SHIPPING_ZONES_TEXT_TITLE', 'International Parcel Post - AIR');

define('MODULE_SHIPPING_ZONES_TEXT_DESCRIPTION', 'International Parcel Post - AIR');

define('MODULE_SHIPPING_ZONES_TEXT_WAY', 'Delivery to');

define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'kg(s)');

define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No delivery available to the selected country');

define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The delivery rate cannot be determined at this time');

?>

Link to comment
Share on other sites

Hmm, if it is I cant see it ..

 

You are looking in the language file not the module itself :)

 

Find the file in includes/modules/shipping

 

not

 

includes/languages/english/modules/shipping

 

You will see at around line 108

 

// CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED

$this->num_zones = 1;

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Sorry, I was looking at the wrong zones.php .. But , Im still a bit confused.. After I edited the file to show 5 zones, and uploaded it , when I go to modules>shipping> I cant see Zones or anywhere to select which zone I want to setup ... I can see new refernces to International post Air and Econ , is that the 2 zones ?

 

thanks

Link to comment
Share on other sites

Aaaargh, IM so stupid, I see it now.

 

In the modules>shippping section, whenI click on the Air I see Zone1, when I click on Econ I see Zone 2 .

 

So basically, I can edit the zone.php and zoneecon.php file to my own requirements.

 

thanks again.

Link to comment
Share on other sites

Um, no, im wrong again....

 

I cant see that , that was something I had done by mistake.

 

Ok, If I edit ZONES.php and change the value to say 5 zones.

Where then do I define those 5 zones ??? can someone put me out of my misery ? (no smart comments please)

 

thanks

Link to comment
Share on other sites

Um, no, im wrong again....

 

I cant see that , that was something I had done by mistake.

 

Ok, If I edit ZONES.php and change the value to say 5 zones.

Where then do I define those 5 zones ??? can someone put me out of my misery ? (no smart comments please)

 

thanks

 

Make sure that you disable and the enable the zones module if you change the number of zones.

 

Then go to the admin tool / modules / shipping click on the shipping module you want to edit and then click on the edit button :)

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

your a star sparky, thanks....

 

:oops: Careful I might start getting a big head :lol:

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...