Guest Posted May 2, 2008 Posted May 2, 2008 Greetings, I'm trying to find out how I can add different shipment options (Surfacemail, Airmail, Registered, etc.) to a zone, when using "Zone rates". So if one would order for say, 2000 grams, then there should be available around 4 shipment options visible. And how do I give shipment options a name? Now I only managed to get "country (weight)", but I need "Shipment option, country (weight)". I hope I explained myself clearly. Thank you for any help.
Guest Posted May 2, 2008 Posted May 2, 2008 If there's a module for this, do let me know please. I'd prefer to have one which I can modify myself, rather than one with a server connection to TNT, UPS etc.
Guest Posted May 2, 2008 Posted May 2, 2008 If there's a module for this, do let me know please. I'd prefer to have one which I can modify myself, rather than one with a server connection to TNT, UPS etc. Check the contrib area for a zones module. You will need to have say zones, zones1, zones2, etc for each method of shipping. This means you have to make copies of the original files and rename the copies to get the various methods.
Guest Posted May 2, 2008 Posted May 2, 2008 Thank you for your reply. Is just copying and renaming enough? So the zones.php in /includes/modules/shipping/ and in languages/english/modules/shipping? Thank you.
Guest Posted May 3, 2008 Posted May 3, 2008 If that had to work.. it didn't with me. Only got an error message of some error on a line.
ocnewby Posted May 3, 2008 Posted May 3, 2008 I am looking for a way to add two classes of shipping per zone as well. I did get 6 different zones activated by following the directions in the zones.php file. located in > /my store folder//includes/modules/shipping I have not found a way to get more than one class rate per zone, such as 1st class shipping and 2nd class shipping for zone 1. I had thought to try an experiment, hoping it would work. I planned on using zone 1 for US shipping as the first class rate table and then zone 2 as the US second class rate. But only zone 1 showed up as the shipping choice at checkout. My hopes were dashed. :-( I need at least two rate classes per zone. USPS module doesn't support media mail and then their are too many methods to choose from that will not be suitable.
Guest Posted May 4, 2008 Posted May 4, 2008 Precisely what I need. Thanks for explaining far better :) The experiment you did was unsuccesful for me too, after which I asked here. Did you try the zones1, zones2, zones3 advice that was given here before?
ocnewby Posted May 4, 2008 Posted May 4, 2008 Precisely what I need. Thanks for explaining far better :)The experiment you did was unsuccesful for me too, after which I asked here. Did you try the zones1, zones2, zones3 advice that was given here before? Mercatvs I tried, but not sure I am interpreting the method correctly. I duplicated the zone.php file naming it zone1.php in /includes/modules/shipping/ In admin panel modules for shipping I got a message letting me know about needing the corresponding file in languages and a message about not being allowed to duplicate syntax or something like that so for file /includes/modules/shipping/zone1.php I replaced all instances of ZONE with ZONE1 and did the same in the corresponding language/module/shipping/zone.php file which I also duplicated and named zone1.php. The result was the zone1 is showing in admin panel under shipping modules titled MODULE_SHIPPING_ZONES1_TEXT_TITLE. The install button shows up but nothing happens when clicked to install. And I get this error message: Warning: include(/home/my ID/public_html/My Store Directory/includes/languages/english/modules/shipping/zones1.php) [function.include]: failed to open stream: No such file or directory in /home/my ID/public_html/My Store Directory/admin/modules.php on line 166 Warning: include() [function.include]: Failed opening '/home/my ID/public_html/My Store Directory/includes/languages/english/modules/shipping/zones1.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my ID/public_html/My Store Directory/admin/modules.php on line 166 Don't really understand it all.... So I tried to edit the modules.php file to place the (include_path='.:/usr/lib/php:/usr/local/lib/php') but it didn't work. I know html and css but I am illiterate with other codes and must have not made the statement correctly. So I removed all of what I did and am back to square one. :-) I also tried to set zone rates as US class 1 shipping and table rates as US class 2 shipping. Only zone rates will show at checkout. I'm new to shopping cart setup and am stumbling in the dark hoping someone can shed some light on shipping classes for me. I need to set up the equivalent of US media rates as well as priority rates.
Guest Posted May 11, 2008 Posted May 11, 2008 Not sure if I have a correct idea now. I did the following, which seems to work somewhat. Have to fully investigate though. zones.php (both in languages/modules/shipping as in modules/shipping) -> make copy zones2.php zones3.php etc edit in zones2.php or zones3.php in modules/shipping: line 97: zones -> zones2 or zones3 etc line 101: zones -> zones2 or zones3 etc line 102: zones -> zones2 or zones3 etc Let me know what your result is.
Guest Posted May 11, 2008 Posted May 11, 2008 Seems they're still linked to each other. If I edit a zone in the first "Zone rates", the second "Zone rates" also changes. Anyone knows how this can be solved?
♥geoffreywalton Posted May 12, 2008 Posted May 12, 2008 suspect you need to do the following class zones { var $code, $title, $description, $enabled, $num_zones; // class constructor function zones() { $this->code = 'zones'; $this->title = MODULE_SHIPPING_ZONES_TEXT_TITLE; becomes class zones1 { var $code, $title, $description, $enabled, $num_zones; // class constructor function zones1() { $this->code = 'zones1'; $this->title = MODULE_SHIPPING_ZONES1_TEXT_TITLE; all occurrances of SHIPPING_ZONES_ should be changed to SHIPPING_ZONES1_ Then edit the language file to refer to your new shipping method. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted May 12, 2008 Posted May 12, 2008 Excellent!! This was the last step I had to do. I've checked it for different countries and different weights and it works like a charm. Thanks a lot!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.