=== Posten Bring Checkout ===
Contributors: postenbring
Tags: woocommerce, posten, bring, shipping, checkout 
Tested up to: 6.8
Stable tag: 1.1.56
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Official Posten Bring checkout plugin for WooCommerce

== Description ==
*Official Posten Bring checkout plugin for WooCommerce*

Posten Bring AS offers comprehensive logistics solutions. The app showcases B2C shipping methods, streamlines customer choices with lead time, environmental data, and parcel locker options. 
The app ensures effortless shipping by offering easy installation, updates, rate adjustments, and direct label printing from the administration pages. Available for shipments in Norway, Sweden & Denmark.

* Easy to install; we also have a team that can guide you if you have questions.
* Configure shipping prices & lead time for your web shop in real-time.
* Support for multiple B2C services: mailbox, pickup point and home delivery.

== Installation ==

This plugin requires a [Mybring](https://www.mybring.com) account. 

1. Install the plugin via Wordpress, or upload `posten-bring-checkout` to the `/wp-content/plugins/ directory.
2. Activate the plugin from the Wordpress "Plugins" page
3. Go to [Mybring webshop configuration](https://www.mybring.com/checkout) and log in as an administrator
4. Configure your webshop, available shipping options, prices, discounts and packaging time
5. Copy the API key 
6. Go back to the Posten Bring settings page (Posten Bring -> Settings)
7. Press Use key to activate

== Screenshots ==
1. Posten Bring Checkout main page
2. Plugin settings and activation with API key
3. Frequently asked questions page
4. Mailbox parcel
5. Pickup parcel outside Norway
6. Pickup parcel in Norway
7. Home delivery parcel in Norway
8. Order shipments and labels from order details page
9. Print labels and track shipment
10. Bulk actions for ordering shipments and printing labels

== External services ==
This plugin communicates with official Bring APIs [api.bring.com](https://developer.bring.com) to be able to present available shipping options, pickup points, 
prices and lead time during checkout, as well as booking shipments and generating labels. A [Mybring](https://www.mybring.com) account is required to 
communicate with the APIs. The general [Mybring terms and conditions](https://developer.bring.com/files/General_Terms_and_Conditions_for_Self_Service_Solutions.pdf) apply.
 
 The following data will be used when communicating with the APIs:
 
* Recipient address and contact information
* Sender address and contact information
* Basic shipment details (weight, number of items/packages)
* For single parcel shipments of 0340 (PICKUP_PARCEL) from NO to SE/DK, customs requires information about parcel contents as described [here](https://developer.bring.com/api/booking/customs/). 

== Frequently Asked Questions ==

There is a FAQ page in the extension itself. Go to Posten Bring -> FAQ.

== Changelog ==

= 1.1.56 =
* Adding support for 3639 - international letter (Letter packet).

= 1.1.55 =
* Fixed bug preventing selected pickup point id from being associated with order in rare cases

= 1.1.54 =
* NVIT (Norske varer i transitt) handling is now supported. You will be notified when an order qualifies as NVIT and HS-code configuration is required. The plugin offers HS-code search with data from Tolletaten (Norwegian customs), and will store that data as product attributes once configured. You will therefore not be prompted for HS-code configuration for the same product twice.
* A new action hook "posten_bring_checkout_pickup_point_selected" has been added. It will provide you with details about the selected pickup point when orders are created (id, name, address, postalCode, city and country)
* Some translation improvements for checkout fieldnames depending on field context (shipping vs billing) during form validation.

= 1.1.53 =
* Shipments qualifying as NVIT (Norske varer i transitt) will now be enriched with customs information. Any configured HS-codes associated with ordered products will be used if configured as product attributes named hscode/hs-code/htscode/hts-code.

= 1.1.52 =
* Improved validation feedback on checkout form fields
* Fixed a bug that allowed completing an order without a phone number being provided

= 1.1.51 =
* Fixed issue with Vipps express checkout intgration where the selected pickup point number is not provided to Posten Bring Checkout

= 1.1.50 =
* Fixed bug preventing orders with parcel locker as selected shipping option from being processed

= 1.1.49 =
* Added support for shipments to Finland

= 1.1.48 =
* Bugfix, removing type that is only supported by PHP8

= 1.1.47 =
* Fixing bug where shipping options were stored with tax data even if tax calculation is disabled in store

= 1.1.46 =
* Adding support for new B2B shipping options. Business Parcel, Business groupage and Business pallet are now available

= 1.1.45 =
* Fixing bug in phone number validation that allowed phone numbers containing only country prefix to pass

= 1.1.44 =
* Fixing order list tracking column for non-HPOS enabled shops

= 1.1.43 =
* Bulk edit functionality for Posten Bring checkout product meta data. If you have lots of products that are too large for e.g. mailbox, you can now configure them all at once from the product bulk edit page.

= 1.1.42 =
* Fixed bug where selected orders were de-selected after closing modal

= 1.1.41 =
* Fixed bug in shortcode checkouts using Dibs as payment provider

= 1.1.40 =
* Fixed bug related to hiding ETA when an item is out of stock/in backorder

= 1.1.39 =
* Fixing bug where incorrect translations were presented

= 1.1.38 =
* Improved and faster shipping rate retrieval
* Fixed a bug causing pickup point selector for parcel locker rates not being presented correctly for shortcode based checkouts

= 1.1.37 =
* Adding lead time to all shipping options presented via Dintero. Requires Dintero v 1.13.1 or later.
* On deactivation we will now kindly ask for a reason and feedback to help us improve the plugin. This is of course optional.

= 1.1.36 =
* With address autocomplete enabled, Posten Bring Checkout will now provide address suggestions in checkout for Norwegian addresses. This ensures that valid addresses are provided when an order is made. Feature requires Woo v10.3.0 or higher and that the feature has been enabled under WooCommerce general settings.

= 1.1.35 =
* Translation bug fixes

= 1.1.34 =
* Improved integration with Dintero. If you use Dintero's WooCommerce plugin (v 1.11.0+) with shipping options displayed in Checkout Express, it is now possible to view and select Posten/Bring pickup points in the checkout, including expected arrival time. Posten/Bring shipping options will now also be displayed with a logo.

= 1.1.33 =
* Fixing bug for pickup point selector in webshops running with a non-standard wp plugin installation directory

= 1.1.32 =
* Added support for general announcements and notifications from Posten Bring. To be used when we experience technical outages affecting your daily use of the plugin, or when there is something important to inform about.

= 1.1.31 =
* Fixing admin links on multisite installations

= 1.1.30 =
* Small bugfixes

= 1.1.29 =
* Bugfixes

= 1.1.28 =
* Adding free shipping indicator to shortcode based checkouts and carts when no shipping costs apply

= 1.1.27 =
* Tiny adjustments for WooCommerce v10

= 1.1.26 =
* Fixing VAT rate issue that could have affected webshops having multiple VAT rates/zones defined

= 1.1.25 =
* Fix broken link to youtube vidoe
* Fix bug for showing banner when there is a new version

= 1.1.24 =
* Wordpress did not build version 1.1.23 for some reason. Upping to 1.1.24 to trigger a new build

= 1.1.23 =
* Fixing bug where fallback for order prefetching did not provide any shipping options on order details page

= 1.1.22 =
* Support for free shipping discount coupons added

= 1.1.21 =
* Lead time details added to shipping options displayed in block based checkouts
* Added warning when static shipping is enabled in Vipps/MobilePay. This will prevent Posten Bring Checkout from displaying the correct shipping options and pickup points
* Reintroduced the update available banner on the order details page

= 1.1.20 =
* Adjusting title of shipping options presented in Vipps Checkout

= 1.1.19 =
* Full Vipps/MobilePay plugin integration (from v 4.0.12). Posten Bring Checkout now provides Vipps with shipping options, pickup points, delivery dates, service descriptions and lead time for an improved checkout experience for shops using Vipps checkout.

= 1.1.18 =
* Preparations for WooCommerce marketplace submission

= 1.1.17 =
* Improving WooCommerce activation check

= 1.1.16 =
* Fixed bug preventing some shops from completing bookings due to store name length issues

= 1.1.15 =
* Improved validation of weight limits when evaluating available services during booking from admin pages

= 1.1.14 =
* Corrected VAT calculation of shipping rates provided via Posten Bring Checkout
* Minor improvements to product meta data handling

= 1.1.13 =
* Fixed bug where labels were blocked by popup-blocker on iPhone

= 1.1.12 =
* Updated instruction video on how to set up Posten Bring Checkout
* Fix for shortcode pickup point selector on shops with certain themes limiting the available width

= 1.1.11 =
* Fixed bug preventing Pickup parcel shipments from Norway from being booked

= 1.1.10 =
* Fixing bug preventing bulk shipments from being ordered
* Fixing bug with Posten Bring Checkout product settings not being persisted for simple products

= 1.1.9 =
* Adds posibility for lockers as separate service
* Minor bug fixes

= 1.1.8 =
* Fixed bug where orders with items weighing less than 100g failed
* Improved compatibility with Klarna for shortcode checkouts
* Fixed uninstall bug

= 1.1.7 =
* Bugfix

= 1.1.6 =
* Fixing bug that caused errors during plugin uninstall
* Fixed bug where orders could not be handled when an ordered items product could not be found

= 1.1.5 =
* Improved Danish translations
* New offifical names for the Norwegian domestic services "Pakke i postkassen" and "Pakke levert hjem"

= 1.1.4 =
* Improved Swedish translations

= 1.1.3 =
* Improved Norwegian translations

= 1.1.2 =
* Translation fixes

= 1.1.1 =
* Plugin is now published in the Wordpress plugin directory
* Shop manager role is permitted to use the plugin
* Fixed bug where provided parcel weights where not always sent to Bring APIs
* Adding missing HPOS compatibility declaration

