on the checkout form, make note of the name of the shipping country form element.
then add code on the confirm_cart page to set a session to denote whether the country is international or not. for example if the shipping country form element is named:
Country_2
add the following to the confirm_cart page after the cart get contents call in the head:
[/code]<?php
if(isset($_POST['Country_2']) && ($_POST['Country_2'] == "US" || $_POST['Country_2'] == "CA")) {
$_SESSION['shipRegion'] = "North America";
} else {
$_SESSION['shipRegion'] = "International";
}
?>[/code]
then in the eCart object create the shipping rule using the trigger:
Based no Session variable value.
if the session variable 'shipRegion' has a value of 'International'
flat rate of 12