Changelog

1.5.1
  • Fix – Fixed a fatal error when attempting to create an Instabox order.
1.5.0
  • Tweak – Use WC_Shipping_Zones::get_zone_matching_package to get correct instance settings for the zip/country when sending the availability request to Instabox. Thanks Christopher Hedqvist for the PR.
  • Tweak – Run load_plugin_textdomain on init to avoid WP deprecated notice message.
1.4.2
  • Fix – Fixed an error that could happen if WooCommerce was deactivated but Instabox plugin still was active.
1.4.1
  • Fix – get_stack improvements in logger logic to avoid potential PHP issue with some plugins.
1.4.0
  • Feature – Added a setting to automatically book shipments depending on the order status of your choice.
  • Feature – Added Swedish, German and Danish translations.
  • Tweak – The instructions on the map template has been shortened, and open hours has been added.
  • Tweak – The "Change" button has been slightly tweaked to make it more clear that it's clickable, responsive, and distinct from its background.
  • Fix – Fixed a PHP 8 deprecation warning.
1.3.1
  • Fix – Fixed an issue with attempting to create orders with Instabox even for orders that have not been placed with a Instabox shipping method
1.3.0
  • Tweak – Prebooking no longer required to book Instabox shipment.
  • Tweak – Instabox prebooking request now triggered when customer thank you page is rendered.
  • Fix – Hide bulk booking button in admin order page when order management is deactivated in settings.
  • Fix – Do not make a new shipment booking request if booking function is triggered and shipment already exist in order.
1.2.3
  • Tweak – Added the 'inb_shipment_booked' action hook. Used for hooking onto a successful shipment booked event.
  • Tweak – Code refactoring: retrieve the PDF label from the API response instead of making a separate request.
1.2.2
  • Fix – Update the version of Kernl update checker to fix some errors with handling objects as arrays.
  • Fix – Fix the missing pickup location dropdown on the cart page when changing the shipping method.
  • Fix – Fix the missing pickup location dropdown on the checkout page when the shipping method title contains special characters.
  • Fix – Fixed an issue causing services to be sent to Instabox in an unsupported format.
1.2.1
  • Tweak – Improve logic when saving _instabox_parcel_id. Thanks Bart Spiering for the suggestion.
  • Tweak – Save selected instabox shipment type as post meta _instabox_service_type in order.
  • Fix – Fix selection of box when only one shipping method is available in checkout.
1.2.0
  • Feature – Adds support for fetching sort code and availability token via Redlight Media's KSA plugin.
  • Enhancement – Add helper functions get_instabox_availability_token & get_instabox_sort_code.
  • Fix – Fix in check in is_instabox_locker_shipping_method function.
1.1.0
  • Feature – Adds support for displaying selected Instabox locker in cart page.
  • Feature – Adds possibility to print shipping label from orders overview page.
  • Tweak – Use $package['destination']['postcode'] instead of WC()->customer->get_hipping_postcode() when making availability requsts and checking if Instabox should be diplayed in checkout.
  • Tweak – Save Instabox data to order on woocommerce_checkout_update_order_meta hook (priority 20) instead of on woocommerce_checkout_order_processed.
  • Tweak – Add filter inb_save_instabox_data_to_order so other plugins can hook into and make it possible to save the data even if Instabox is not the selected shipping method.
  • Tweak – CSS tweak in checkout.
  • Tweak – Change helper function name get_instabox_shipping_method to get_instabox_shipping_method_from_order.
  • Tweak – Adds new helper function get_instabox_shipping_method to get Instabox service code from WooCommerce shipping method.
  • Fix – Tweak in logic when Instabox is available in checkout & cart.
  • Fix – Add JSON_HEX_QUOT to wp_json_encode to escape " characters.
  • Fix – Avoid error if we receive a wp_error in authenticate request.
  • Fix – Do not try to make availability request to Instabox if customer country or postcode is missing.
  • Fix – Only set selected Instabox option in sessionStorage and cookie if we find a Instabox shipping option in cart/checkout.
  • Fix – Fix so that selected option works on pageload both for map and select template.
  • Fix – Display selectbox even if only 1 delivery locker/slot is available.
1.0.1
  • Fix – Show select box for delivery options even when Instabox is the only shipping method.
1.0.0
  • Feature – Add support for Instabox Home Delivery (instahome shipment service).
  • Feature – Add support for printing of shipping label.
  • Feature – Add support for Test mode requests.
  • Tweak – Improve error handling when error is returned from Instabox.
  • Tweak – Change parcel_id to use Woo order ID as base instead of order number. Instabox only supports numbers.
  • Tweak – Bump required PHP version to 7.0.
  • Tweak – Adds logging/counting of completed orders with Instabox as shipping method via Trackedil (https://track.krokedil.com/).
  • Tweak – Remove INSTABIKES Instabox shipment type from plugin settings.
  • Fix – Updated settings link from plugin page.
0.4.2
  • Fix – We will now use the shipping address data instead of billing if its available for the shipping availability check.
0.4.1
  • Fix – Changed preselection bug. Now the Woo shipping method is chosen instead of moved to first place when preselection is RECOMMENDED or ALLOWED.
0.4.0
  • Feature – Add Confirm button to map template. Must be clicked in order to change pickup location.
  • Tweak – Increased request timeout time to 10 seconds.
  • Tweak – Updated Norwegian translation + POT file.
0.3.2
  • Tweak – CSS tweak to improve display of map modal window.
0.3.1
  • Fix – Kernl.us config fix.
0.3.0
  • Feature – Add setting for Preselection allowed & Preselection recommended.
  • Tweak – Add expiration time for availability request storage (5 minutes).
  • Tweak – Updates via kernl.us.
  • Fix – Only try to make preebooking request if the order has shipping.
  • Fix – Fix setting for debug logging.
0.2.0
  • Initial release.