on the confirm page, there will be the following code to set a session containing the shipping post code that was entered:
<?php
if (!session_id()) session_start();
if($_SERVER["REQUEST_METHOD"] == "POST") {
$_SESSION["eCartCheckoutForm_shipping_postcode"] = "".((isset($_POST["shipping_postcode"]))?$_POST["shipping_postcode"]:"") ."";
}
?>
add the following code after it to set a session variable named "postCodeBegins" with the first 2 characters of the entered post code
<?php
if(isset($_SESSION["eCartCheckoutForm_shipping_postcode"]) && $_SESSION["eCartCheckoutForm_shipping_postcode"] != "") {
$_SESSION['postCodeBegins'] = substr($_SESSION["eCartCheckoutForm_shipping_postcode"],0,2);
}
?>
then you can use the trigger:
Based on session variable value:
if the session variable "postCodeBegins" is "=" a value of "IM"
for your shipping rule