You could put something like this in the bottom of /includes/init_includes/init_header.php:
Code:
// Export Alert Regarding Duties/Taxes ... only shows if a shipping address has been selected, and is not in the USA
if (!empty($_SESSION['sendto'])) {
$sql = "SELECT address_book_id, entry_country_id as country_id, countries_name, countries_iso_code_2, countries_iso_code_3
FROM " . TABLE_ADDRESS_BOOK . " a
INNER JOIN " . TABLE_COUNTRIES . " c ON (a.entry_country_id=c.countries_id)
WHERE address_book_id = " . (int)$_SESSION['sendto'];
$result = $db->Execute($sql, 1);
if (!$result->EOF) {
if ($result->fields['countries_iso_code_3'] != 'USA') { // optionally, to be more generic, could check whether the country id matches the store's country zone id
// 'checkout' shows on payment/confirmation screens:
$messageStack->add('checkout', 'REMINDER: You are shipping outside the United States. You are responsible for any duties/taxes assessed at the border.', 'warning');
// 'checkout_shipping' shows on shipping-choice screen:
$messageStack->add('checkout_shipping', 'REMINDER: You are shipping outside the United States. You are responsible for any duties/taxes assessed at the border.', 'warning');
// 'shopping_cart' shows on shopping_cart screen:
$messageStack->add('shopping_cart', 'REMINDER: You are shipping outside the United States. You are responsible for any duties/taxes assessed at the border.', 'warning');
}
}
}
For older Zen Cart versions, the generic 'checkout' key might not be available. In this case, you might need to change it to 'checkout_payment' and then duplicate it again for 'checkout_confirmation'.
Bookmarks