msaunders Posted September 18, 2002 Posted September 18, 2002 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
Mark Evans Posted September 18, 2002 Posted September 18, 2002 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)
msaunders Posted September 18, 2002 Author Posted September 18, 2002 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'); ?>
Mark Evans Posted September 18, 2002 Posted September 18, 2002 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)
msaunders Posted September 18, 2002 Author Posted September 18, 2002 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
msaunders Posted September 18, 2002 Author Posted September 18, 2002 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.
msaunders Posted September 18, 2002 Author Posted September 18, 2002 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
Mark Evans Posted September 18, 2002 Posted September 18, 2002 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)
msaunders Posted September 18, 2002 Author Posted September 18, 2002 When U say disable/enable .. u mean-modules>shipping> International Parcel Post - AIR - edit - disable ?? Cause thats what I am seeing
msaunders Posted September 18, 2002 Author Posted September 18, 2002 Oh, hang on ....My mistake again. I changed the module from active to inactive, then back to active, and voila , I can see my 5 zones etc. Thats what your a star sparky, thanks....
Mark Evans Posted September 18, 2002 Posted September 18, 2002 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)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.