Page 9 of 94 FirstFirst ... 78910111959 ... LastLast
Results 81 to 90 of 934
  1. #81
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: New Royal Mail Modules

    Distance across UK is irrelevant to charge for delivery with the Royal Mail. It's only the size and weight that count.
    That's true for 'Standard Parcels' (3 to 5 days). For other ParcelForce services (such as 9am, 10am, 12am, ParcelForce 24 and ParcelForce 48) the UK is split into 3 zones:

    Zone 1: Most of mainland UK
    Zone 2: Highlands and Islands of Scotland
    Zone 3: Northern Ireland, Isle of Man and Isles of Scilly

    (the Channel Islands are in Zone 4, and the Republic of Ireland in Zone 5, then the rest of the world in subsequent zones)

    It might be rare to receive an order from a customer in Zone 2 or Zone 3 who wanted next day or 48 hour delivery, but if you did, you wouldn't want to pay the extra zone rate for the carriage yourself

    What problems are you having installing? Your screenshot is a bit too small to read, but it looks like either your language files aren't being found or you haven't run the SQL.

  2. #82
    Join Date
    Sep 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: New Royal Mail Modules

    I haven't run any sql query, can you expand on that as I am very limited on sql stuff.

    Agree on Special delivery that is relevant if you are going to use it, which many UK zenners might.
    A mini & wargaming service to trust
    War Paint

  3. #83
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: New Royal Mail Modules

    Philip's mod includes an SQL insert (called: upgrade_1.2_to1.3.sql) which you will need to run to have the necessary parameters installed into the configuration table of your database.

    Go into PHPMyAdmin on your server, select your database, click on the 'SQL tab, paste the contents of the SQL file in the box and click 'Go'.

  4. #84

    Default Re: New Royal Mail Modules

    Quote Originally Posted by Pixxi
    Philip's mod includes an SQL insert (called: upgrade_1.2_to1.3.sql) which you will need to run to have the necessary parameters installed into the configuration table of your database.

    Go into PHPMyAdmin on your server, select your database, click on the 'SQL tab, paste the contents of the SQL file in the box and click 'Go'.
    NO NO, He should be okay, he was doing a fresh install so he should not need to updgrade. I agree that the screen shots are too small though. But what I'm wondering is whether its a window's/ Unix line ending thing since I'm only using Linux. Can you cut and paste the first few lines of text from the errors ?

    Thank you

  5. #85
    Join Date
    Sep 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: New Royal Mail Modules

    Quote Originally Posted by bouncingltd
    NO NO, He should be okay, he was doing a fresh install so he should not need to updgrade. I agree that the screen shots are too small though. But what I'm wondering is whether its a window's/ Unix line ending thing since I'm only using Linux. Can you cut and paste the first few lines of text from the errors ?

    Thank you
    I am using on local Wamp server at the moment. here are the first bits of text (Yellow warning message fixed now)

    Shipping Modules
    code = 'rm1stlargeletter'; $this->title = MODULE_SHIPPING_RM1STLARGELETTER_TEXT_TITLE; $this->description = MODULE_SHIPPING_RM1STLARGELETTER_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_RM1STLARGELETTER_SORT_ORDER; $this->icon = (( defined('DIR_WS_ICONS') ? DIR_WS_ICONS : 'images/icons/' ) . 'shipping_ukrm.jpg'); $this->tax_class = MODULE_SHIPPING_RM1STLARGELETTER_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_RM1STLARGELETTER_STATUS == 'True') ? true : false); // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 1; // inspired by Jim Barrington (JollyJim) if( isset($order) && MODULE_SHIPPING_RM1STLARGELETTER_HIDE_SHIPPING_ERRORS == 'True' ){ switch(isset($order->info['subtotal'])){ case true: if( $order->info['subtotal'] < MODULE_SHIPPING_RM1STLARGELETTER_MIN_ORDERVALUE){ $this->enabled = false; return ; }else if(MODULE_SHIPPING_RM1STLARGELETTER_MAX_ORDERVALUE != -1 && $order->info['subtotal'] > MODULE_SHIPPING_RM1STLARGELETTER_MAX_ORDERVALUE){ $this->enabled = false; return ; } break; case false: if($order->info['total'] < MODULE_SHIPPING_RM1STLARGELETTER_MIN_ORDERVALUE){ $this->enabled = false; return ; }else if(MODULE_SHIPPING_RM1STLARGELETTER_MAX_ORDERVALUE != -1 && $order->info['total'] > MODULE_SHIPPING_RM1STLARGELETTER_MAX_ORDERVALUE){ $this->enabled = false; return ; } break; } // end of switch on subtotal // check that it is a valid country being shipped to. $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; for ($i=1; $i<=$this->num_zones; $i++) { $countries_table = constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COUNTRIES_' . $i); $country_zones = preg_split("/,/", preg_replace('/\s*/','',$countries_table) ); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } // ship to country is invalid for this service if ($dest_zone == 0) { $this->enabled = false; return ; }else{ $this->enabled = false; // enabled set to true if valid shipping weight found $zones_cost = constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST0_' . $dest_zone) . ',' . constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST1_' . $dest_zone) . ',' . constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST2_' . $dest_zone) . ',' . constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST3_' . $dest_zone); $zones_table = preg_split("/[:,]/" , preg_replace('/\s*/','',$zones_cost) ); $size = sizeof($zones_table); for ($i=0; $i<$size; $i+=2) { if ($total_weight <= $zones_table[$i]) { $this->enabled = true; break; } } // end of looping through return ; } // end of valid country } // end of if hide invalid shipping methods is set } // class methods function quote($method = '') { global $order, $shipping_weight, $shipping_num_boxes, $currency; $currencies = new currencies(); $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; $error = false; for ($i=1; $i<=$this->num_zones; $i++) { $countries_table = constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COUNTRIES_' . $i); $country_zones = preg_split("/,/", preg_replace('/\s*/','',$countries_table) ); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } //12 FEB 04 MBeedell NO specified country (or *) then use this zone for all shipping rates if ($dest_zone == 0) { for ($i=1; $i<=$this->num_zones; $i++) { $countries_table = constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COUNTRIES_' . $i); if ($countries_table == '' or $countries_table == '*') { $dest_zone = $i; break; } } } if ($dest_zone == 0) { $error = true; } else { $shipping = -1; //12 FEB 04 MBeedell 'glue' together the rates from the 10 cost data entry boxes $zones_cost = constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST0_' . $dest_zone) . ',' . constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST1_' . $dest_zone) . ',' . constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST2_' . $dest_zone) . ',' . constant('MODULE_SHIPPING_RM1STLARGELETTER_ZONES_COST3_' . $dest_zone); $zones_table = preg_split("/[:,]/" , preg_replace('/\s*/', '', $zones_cost) ); $size = sizeof($zones_table); for ($i=0; $i<$size; $i+=2) { if ($shipping_weight <= $zones_table[$i]) { $shipping = $zones_table[$i+1]; //12 Feb 04 MBeedell - correctly format the total weight... if the weight exceeds the max // weight, then it is divided down over a number of separate packages - so the weight could end // up being a long fraction. $sw_text = number_format($shipping_weight, 3, $currencies->currencies[DEFAULT_CURRENCY]['decimal_point'], $currencies->currencies[DEFAULT_CURRENCY]['thousands_point']); $shipping_method = MODULE_SHIPPING_RM1STLARGELETTER_TEXT_WAY . ' ' . $dest_country . ' : ' . $sw_text . ' ' . MODULE_SHIPPING_RM1STLARGELETTER_TEXT_UNITS; $shipping_method = MODULE_SHIPPING_RM1STLARGELETTER_TEXT_WAY . ' :

    If no luck I will load everything up to my remote server and see if it works

    Stewart
    A mini & wargaming service to trust
    War Paint

  6. #86

    Default Re: New Royal Mail Modules

    Okay now that is certainly my code, it's from

    includes/languages/english/modules/shipping/rm1stlargeletter.php

    what happens if you remove the file ? it is truly weird I don't actually know what a "wamp" is as I'm a linux/ php/ mysql person myself. could you private message me with your email, I'll try and provide you with a version with different line endings or charcater encoding, to see what happens.

    Thank you for your patience

    Philip.

  7. #87
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: New Royal Mail Modules

    Hi Philip,

    Just noticed a small duplication in the code of the modules:

    PHP Code:
    $shipping_method MODULE_SHIPPING_RM2NDLARGELETTER_TEXT_WAY ' ' $dest_country ' : ' $sw_text ' ' MODULE_SHIPPING_RM2NDLARGELETTER_TEXT_UNITS;
    $shipping_method MODULE_SHIPPING_RM2NDLARGELETTER_TEXT_WAY ' : ' $sw_text ' ' MODULE_SHIPPING_RM2NDLARGELETTER_TEXT_UNITS
    $shipping_method is being defined twice - first with the destination country, and secondly with the ... _text-way from the language file. Works even better if the second line is commented out

  8. #88

    Default Re: New Royal Mail Modules

    Evening,

    That probably came out of something or other that I was doing somewhere, the code in the modules isn't very clean, as something just weren't working at all. I'll have to check it through but one thing that did pop up was that there is a difference between the session information stored as a guest and as someone logged in so the $dest_country may very well disappear, on the other hand I could be talking rot.

    I should have version 2.0-beta ready tomorrow with the UK zone systems as discussed in this thread, it's going to involve work for the installation as mentioned before, because of all of the various zones people will have installed over the years and the way mysql has handled sql patches. There's no easy way around this unfortunately, the installer will have to decide for example, if MZMT was ever installed on a 3.23 mysql server then "Belgium" may turn up as a county of England as the SQL used LAST_INSERT_ID() in onesql statement 48 times, in version 4, this is the insert id of the first sql statement processed, unfortunately in 3.23 it is the preceeding SQL argument, so Belgium gets inserted with a geographical_zone for Austria, but Austria hasn't been defined as it's one shipping zone, and so it pops up in the next shipping zone to be installed, which would be the UK.

    Also if the zones available from the download sections here have been installed, then they are lacking some counties in Northern Ireland like "Antrim", someone may have noticed this on their own machine and then added it, but in that case they may have added "County Antrim". The maximum I have done is set up a set of Postal Zones (that can be expanded), Rates based on Parcel force (that can be changed), added Zones to correspond to these Postal Zones, and tried to place United Kingdom, Wales (if defined), Scotland (if defined), England (if Defined) and Northern Ireland (in the correct places).

    Learning about what people could have installed, and the testing processes involved have taken more time than coding, but the documentation is taking the most time, since I've got to explain what to do in most scenarios, because it's not as simple as deleting the current zones, as that would probably cause havoc in existing customer's addresses, reports, shipping details etc....

    I will report back when ready.

    Thank you

    Philip

  9. #89
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: New Royal Mail Modules

    ... so the $dest_country may very well disappear ...
    Doesn't seem to - logged in or not, it still appears

    Will the version 2.0 beta be just the ParcelForce modules, or have you also updated/changed the Royal Mail ones?

    Just checking before I go through all the Royal Mail ones to (finally) edit the titles/text.

    Great! - sounds like you've been working hard again Philip, well done and thanks

  10. #90

    Default Re: New Royal Mail Modules

    Not sure if I've made any modifications to the individual modules before I started up, but you zip the things you change up and I'll do a diff, also don't forget to take credit for your work.

    As for the "parcelforce modules", there is only 1, for parcel force 48, there are instructions for how to add more services/ different couriers based on the module.

    Oh and there are more second class services that faulkns has been modifying/ adding

    Who wants to do "standard parcels " then ?

    Thanks

    Philip.

 

 
Page 9 of 94 FirstFirst ... 78910111959 ... LastLast

Similar Threads

  1. Royal Mail Basic UK Shipping Modules
    By Chuckl in forum Addon Shipping Modules
    Replies: 168
    Last Post: 24 Sep 2013, 08:04 PM
  2. UK Royal mail
    By pasticheart in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Apr 2010, 02:38 PM
  3. Big Royal Mail Shipping Modules Mysteriously Stopped - Please Help
    By stevesubhub in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 Oct 2009, 02:17 PM
  4. Royal Mail
    By SilverKop in forum Addon Shipping Modules
    Replies: 0
    Last Post: 20 Feb 2009, 01:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR