Changelog

Changelog

3.5.1
  • Fix - Add pickup location (agent) name address, zipcode, city and country to create shipment and create stored shipment request.
  • Fix - Fix structure for shipment options in creating of stored shipment request. Fixes issue with pre-notification message.
3.5.0
  • Feature - Adds support for creating stored shipment without prepare_id.
  • Feature - Adds support for connecting a standard WooCommerce shipping method to a nShift service. No pickup point selector logic available for this yet.
  • Feature - Add coupons in get delivery checkout requests.
  • Feature - Adds setting for SMS & Email notifications.
  • Tweak - SMS notification will now also be sent even if shipment does not contain a pickup point.
  • Tweak - Remove creating of prepared shipments for nShift checkout shipping widget orders. Not needed anymore.
  • Tweak - Adds advanced shipment settings in order page (Delivery date, Delivery instruction & Prenotification message) also for Stored shipment.
  • Tweak - Enable bulk booking of orders also for order that doesn't have a prepared id.
  • Tweak - Adds support for sending shipping instance id from order in customs declaration logic (can be useful when creating shipment from admin).
  • Tweak - Delete _kco_kss_reference & _collector_delivery_module_reference (prepared shipment id) when removing a created shipment.
  • Tweak - Send prenotification message (ENOT) even if no message exist. It is enough that the Prenotification setting is activated.
  • Fix - Fix in logic for fetching shipping methods from order page. Use cartprice and weight from order.
3.4.0
  • Feature - Adds setting for customizing the nShift Checkout widget title.
  • Feature - Adds settings for inserting text above and below postcode field in nShift Checkout widget.
  • Feature - Adds support for sending Delivery instruction in create shipment request.
  • Feature - Adds support for sending customer address state in create shipment request, for selected countries (enabled in plugin settings).
  • Tweak - PHP8 compatibility. Magic method __wakeup needs to be public.
  • Tweak - Adds shipping address 2 in create shipment request if it exist in order in WooCommerce.
  • Tweak - Formats phone number before sending it to nShift.
  • Tweak - Save _ksc_shipment_no & _ksc_parcel_no instead of _kss_tracking_id. Default tracking number sent in email to customer is now _ksc_parcel_no if it exists in data returned from nShift.
  • Fix - Delete shipping label pdf file when cancelling shipment.
3.3.1
  • Fix - Number of parcels not updated correctly when changing quantity and then clicking Create Shipment button.
3.3.0
  • Feature - Adds support for sending delivery date and delivery time to nShift.
  • Feature - Adds support for sending prenotification message in create shipment requests.
  • Feature - Adds new setting "Use order data" to be able to create shipment with data from WooCommerce order instead of getting it from the prepared shipment order stored in nShifts system. Works together with the filter ksc_force_create_shipment_without_prepare_id.
  • Feature - Possibility to change shipping method in admin view even for orders created via KSA and Walley Shipping.
  • Fix - Don't try to send data to printnode if no customs docs exist.
3.2.0
  • Feature - Adds support for changing shipping option (and fetching new shipment options) from admin order page.
  • Feature - Now possible to create shipment in nShift even if no WooCommerce shipment is stored in the WooCommerce order.
  • Feature - Adds support for fetching termsCode via printing favorite mapper. Printing favorite mapper will change name in future version of the plugin.
  • Feature - Adds possibility to set specific sender quick id on shipping instance setting. To be able to have different senders for different shipping zones/countries.
  • Tweak - Do not use/send sender address data from WooCommerce. This is now handled entirely via Sender Quick id in nShift/Unifaunonline.com.
  • Tweak - Add Woo order number as orderNo sent to nShift.
  • Tweak - Send PACKAGES as packageCode if carrier is UPS.
  • Tweak - Send pdf as target1Type & target2Type.
  • Tweak - Add printSet LABEL to avoid creation of terms page in shipment labels.
  • Tweak - Save nShift checkout data (customer selected shipping options) on woocommerce_checkout_update_order_meta instead of on woocommerce_checkout_order_processed. For better compatibility with Vipps plugin.
  • Tweak - Remove wp_die() in ajax functions, not needed when calling wp_send_json_success.
  • Tweak - Code tweaks. Use null coalescing operator for better readability.
  • Fix - Store _udc_delivery_options in a format so we can json_decode it later.
  • Fix - Log if JSON encoding fails.
  • Fix - Remove prepared shipment id when cancelling a shipment (for shipments created via nShift Checkout).
  • Fix - Set valuePerParcel to false if sending multiple parcels.
3.1.1
  • Tweak - CSS tweaks. Display shipping method extra description / captions field better.
  • Tweak - Minor Swedish translation change.
  • Fix - Only try to send parcel contents to nShift if Parcel content text is entered in plugin settings. Could cause issue with create shipment booking.
3.1.0
  • Tweak - Adds helper function ksc_get_nshift_carrier_id_for_order to be able to get carrier info from order.
  • Tweak - Changes default request time to 10 seconds + introduce filter ksc_request_timeout.
  • Tweak - Changes target2Media to laser-a4 in create shipment request.
  • Fix - Solves Printnote printer ID bug.
  • Fix - Fix customs documents logic issue.
3.0.0
  • Feature - Adds support for return shipment. Directly in create shipment request and via separate manual "Create return shipment" button in metabox.
  • Feature - Adds support for creating customs documents in create shipment request (available also for orders created via Klarna Shipping Assistant).
  • Feature - Adds setting and logic for displaying product data fields related to customs logic (Tariff code, Tariff description, Y code and Manufacturing country).
  • Feature - Adds general plugin setting for default Manufacturing country.
  • Feature - Adds new setting and logic for including nShift Checkout widget via hooks in WooCommerce checkout page.
  • Feature - Adds support for creating shipment without a prepared shipment ID (using nShifts /shipment endpoint).
  • Feature - Adds support for creating shipment on order status Processing.
  • Feature - Adds logic for sending customer order note when shipment is created.
  • Feature - Adds setting and logic to book multiple parcels in one booking (not all carriers offer this feature).
  • Feature - Adds support for automatic printing of shipment label, return label and customs documents via PrintNode (printnode.com).
  • Feature - Adds support for automatic printing of packing slips and invoice if WooCommerce PDF Invoices & Packing Slips (from WP Overnight) is installed.
  • Feature - Adds support of creating shipments on partial delivery orders (making it compatible with Partial Delivery for WooCommerce - https://krokedil.com/product/partial-delivery-for-woocommerce/).
  • Feature - Adds price, weight, free shipping coupon & product shipping classes as query params in nShift Checkout requests (so those values could be part of the logic when configuring Delivery Checkouts in unifaunonline.com).
  • Tweak - Adds filter ksc_delivery_checkouts_query_param so custom params can be added in nShift Checkout requests.
  • Tweak - Adds filter ksc_force_create_shipment_without_prepare_id to be able to create shipment without prepared shipment id even if it exist in WooCommerce order.
  • Tweak - Tweak in how selected pickup point is displayed for customer on thank you page and in email.
  • Tweak - nShift Checkout CSS tweaks/improvements.
  • Tweak - Adds helper function ksc_get_return_shipment_label_url() so other plugins can fetch the url if needed.
  • Tweak - Adds helper fuction ksc_get_instabox_availability_token to be able to send Instabox specific data in create shipment request.
  • Tweak - Adds support for fetching service id and agent id from Redlights Unifaun plugin in heper functions ksc_get_nshift_service_id_for_order & ksc_get_nshift_agent_id_for_order.
  • Tweak - Adds contact param in receiver and sender sent to nShift in create prepared shipment and create shipment request.
  • Tweak - Adds mobile as param in create prepared shipment and create shipment request.
  • Tweak - Introduces get parcel helper class.
  • Tweak - Use helper function get_parcels in shipment booking instead of get_products.
  • Tweak - Improved handling and display of error messages in requests.
  • Tweak - Possible to get service id for orders created via Collector Delivery Module.
  • Tweak - Use a hashed value as part of the transients name when saving shipping options in ksc_get_udc_options_list function.
  • Tweak - Updates link to documentation.
  • Tweak - Code refactoring.
  • Tweak - PHPCS tweaks.
  • Tweak - Adds order note if prepared shipment couldn't be created for nShift Checkout.
  • Tweak - Make strings in nShift Checkout postal code lookup box translatable.
  • Tweak - Trigger Create prepared shipment request on woocommerce_thankyou (instead of on woocommerce_checkout_order_processed).
  • Tweak - Remove beta label from nShift Checkout feature.
  • Fix - Sends agent / pickup point data correctly in create prepared id request.
  • Fix - Do not try to make a nShift Checkout request if country or postcode is missing.
  • Fix - Use language code received from nShift optionslist (or WP locale) instead of hardcoded.
  • Fix - Improved logic in save_udc_data_to_order, when session data is not available (when saving selected shipping data to order for nShift Checkout orders).
2.0.1
  • Fix - Fix bulk booking on order status Completed bug. Previously only one shipment was created.
  • Fix - PHP notices fix.
  • Fix - Add support for nShift Checkout orders in get_printing_favorite function.
  • Fix - Fix display issue in metabox when shipment is created, then removed and then finally created again.
2.0.0
  • Feature - Add support for nShift Checkout (in beta).
  • Tweak - Change naming from Unifaun to nShift.
  • Fix - Send products weight (total order weight) in correct unit (kg) to nShift.
  • Fix - Improve process_response to avoid fatal errors if request result in WP_Error.
1.4.2
  • Tweak - Bumped minimum required PHP version to 7.0.
  • Tweak - Use customer country code in tracking url to display tracking info in customers locale.
  • Fix - Update tracking url logic so it works with orders created both via Collector and Klarna. Now uses the Woo order as reference.
  • Fix - Minor PHP error fix.
1.4.1
  • Tweak - Changed settings description for "Choose status on orders with Krokedil Shipping Connector".
  • Fix - Fix when book shipment icon should be displayed in orders view.
1.4.0
  • Feature - Adds more label sizes for label printing.
  • Feature - Adds setting for label X & Y offset.
1.3.1
  • Fix - Fix in create shipment logic so order can be created and cancelled multiple times.
1.3.0
  • Feature - Adds support for booking of orders created via Collector Delivery Module (new feature via Collector Checkout for WooCommerce plugin).
  • Feature - Adds setting for label print size.
  • Tweak - Printing favorite mapper tweak. Adds possibilities for future more complex mapping.
  • Fix - Remove correct meta data on Cancel shipment so a Create shipment can be performed after canceling.
1.2.0
  • Feature - Add Printing favorite mapper setting. Possible to send different printing favorites to Unifaun in create request, depending on order shipping method.
1.1.1
  • Tweak - Send order number (instead of order id) as senderReference to Unifaun.
  • Fix - Fixed no senderReference was sent to Unifaun for stored shipments.
  • Fix - Better handling in check for new plugin version request if remote server is down.
1.1.0
  • Tweak - Added filter ksc_create_stored_shipment_body to be able to modify request body sent to Unifaun for create stored shipment requests.
  • Tweak - Added filter ksc_create_shipment_body to be able to modify request body sent to Unifaun for create shipment requests.
1.0.0
  • Feature - Add feature to get shipment status on stored shipments sent to Unifaun.
  • Feature - Save tracking url even for stored shipment requests.
  • Tweak - Adds request url in logging.
  • Fix - Product weight tweak.
  • Fix - Save tracking id to correct order in WooCommerce. Issue could happen for stored shimpments in some cases.
0.2.1
  • Tweak - Updated plugin update checker logic via kernl.us.
0.2.0
  • Tweak - Send orders as min weight 0.15 kg to Unifaun.
  • Tweak - Added filter ksc_min_order_weight to be able to override min weight sent to Unifaun.
  • Tweak - Set keepPreparedShipment=true in requests to Unifaun so shipment is savd longer in Unifauns system.
0.1.4
  • Fix - Fixed issue with bulk creation of stored shipments.
0.1.3
  • Fix - Sending required values for creating or storing a shipment.
0.1.2
  • Fix - Fixed an issue that caused shipments pdf not being able to get opened and displayed correctly.
  • Fix - Being redirected correctly after shipment is created through action button.
0.1.1
  • Tweak - Added readme.txt.
0.1.0
  • Initial release.