New Zenner
- Join Date:
- Sep 2017
- Location:
- White City
- Posts:
- 15
- Plugin Contributions:
- 0
Minimum Order plugin converted to Maximum Order
Due to postal regulations foreign orders have a max order value of $2500.
So I am trying to use the Minimum Order plugin that i converted to work as a Maximum Order plugin and it works.
The problem I am running in to is I only want the plugin to run on International orders. I haven't been able to make the plugin only work for International orders.
I thought something like this would work but it just breaks my site. (My International zone is 2)
// bof: International Shipping
if (!IS_ADMIN_FLAG) {
global $cart;
if ($this->enabled == true && $check->fields['zone_id'] = 2) {
$this->enabled = true;
} else {
$this->enabled = false;
}
}
// eof: International Shipping
Any help how to add a international only function to the plugin would be very helpful.
I am really surprised this is something that there is not a fix for already.
Thanks in advance.