Goal: To display Insurance Variable on a custom slip. Though I'd like to see if Brazil or Mexico are the delivery_country to display or not.
Basically the order has to be over $400 and not Brazil or Mexico.
This works for 1 country:
PHP Code:
if (strtoupper($order_check->fields['delivery_country']) != 'BRAZIL' && $order_check->fields['order_total'] > 400) {
echo $ins;
}
else {
// do nothing
}
?>
This does not work with OR on 2 countries:
PHP Code:
if (strtoupper($order_check->fields['delivery_country']) != 'BRAZIL' || strtoupper($order_check->fields['delivery_country']) != 'MEXICO' && $order_check->fields['order_total'] > 400) {
echo $ins;
}
else {
// do nothing
}
?>
How does it work for both countries to not equal the statement? I tried a couple different routes and am stuck.
Bookmarks