That's the line in my modified freeshipper module that is supposed to allow free shipping to only those zip codes.Code:$free_ship_postcodes = array('53044','53081','53085','53083');
Yesterday, we received an order from 53058 with free shipping selected. I tested it and sure enough, it worked.
I am not a code writer and only modified the freeshipper code by changing this array. Is my syntax bad?
Here it is in context:
Thank you in advance for helping me out with any ideas you might have.Code:// check to see if postal code is in list of allowed codes: } else { $free_ship_postcodes = array('53044','53081','53085','53083'); $customer_postcode = $order->delivery['postcode']; $check5digitcode = substr($customer_postcode, 0, 5); $valid_digits = in_array($check5digitcode, $free_ship_postcodes); if ($valid_digits) $this->enabled = true; }
-Amy



