=== NextLevel delivery ===
Contributors: Dan Goriaynov
Tags: nextlevel, speedy, econt, спиди, еконт, bulgaria couriers
Requires at least: 7.3
Requires PHP: 7.3
Tested up to: 6.7
Stable tag: 1.0.25
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://nextlevel.delivery/

Adds functionality to specify delivery with NextLevel delivery.

== Description ==
This plugin adds the NextLevel delivery shipping methods to your checkout.

== Functionality provided ==
 - offload list of cities, offices and streets for faster access
 - update the cities', offices' and streets' tables on daily basis
 - generates select boxes for the city-office or city-street bundle for each courier
 - provides option for delivery to office or home address

== Plugin settings allow to set the following ==
 - credentials to access NextLevel delivery API
 - shipping labels
 - shipping fees
 - free shipping from <sum>

== Prerequisites ==
 - contact NextLevel delivery to provide you with API access
 - note APP ID, APP SECRET, SENDER ID

== Setup steps ==
 - install and activate plugin
 - populate settings on the newly created 'NextLevel Shipping' method
 - wait till corresponding data is populated to the caching tables

== Note ==
This plugin creates tables and populate data from respective APIs asynchronously.
So, please expect empty regions/cities/offices lists for first few minutes after plugin activation.
Customers will observe the notice at the checkout page saying that the tables are not populated and checkout is not fully functioning.
Consider using Redis / memcached for caching to speed up the checkout page.

== Frequently Asked Questions ==
 - Question: The region/city/office fields continue to be empty after waiting for more that 5 mins after plugin's activation.
 - Answer: Please check whether the credentials you have set are correct ones. If you continue having problems - contact NextLevel delivery for support.

== Upgrade Notice ==
 - be sure to check that no changes are needed from you in the plugin' settings page after the update

== Screenshots ==
1. XXX

== Changelog ==
### 1.0 - 2023-09-10
#### Enhancements
Created initial version of the plugin
### 1.0.1 - 2024-02-01
#### Enhancements
Fixed performance issue on the checkout page
Re-organized the plugin settings parameters
Fixed issues in enable/disabling of the plugin not showing the parameters with styling
### 1.0.2 - 2024-02-05
#### Enhancements
Added DB indexes
Added error display on the plugin setup error
Fixed daily DB tables refresh logic
Fixed checkout view if no shipping methods are available for this country
Added weight limitation to the shipping method
Added shipment methods ordering
Fixed labels and descriptions for the admin page parameters
### 1.0.3 - 2024-02-06
#### Fixes
Fixed the DB creation issue
### 1.0.4 - 2024-02-13
#### Fixes
Fixed js logic for city/postcode selection
### 1.0.5 - 2024-02-14
#### Fixes
Fixed ajax methods sending form data
Added english city names to the checkout form search
### 1.0.6 - 2024-02-15
#### Fixes
Fixed the shipping address to be matching selected address
Fixed shipment creation
Fixed default order status (forcing it now)
### 1.0.7 - 2024-02-16
#### Fixes
Improved the admin page generation (sometimes it was not loaded properly)
Added button to force refresh the data tables
### 1.0.8 - 2024-02-21
#### Fixes
Fixed the order' address format
Fixed the logic for the shipping address population to trigger only if address is not already set
### 1.0.9 - 2024-02-23
#### Fixes
Fixed shipping methods update on country selection
Made delivery address properly displayed and hidden when needed
### 1.0.10 - 2024-02-24
#### Fixes
Added loader on ajax request to load cities/offices/streets
### 1.0.11 - 2024-02-25
#### Fixes
Separate in-field loader on ajax request to load cities/offices/streets
### 1.0.12 - 2024-02-26
#### Fixes
Fixing stripe issues
Preventing saving of empty address on the checkout
### 1.0.13 - 2024-02-27
#### Fixes
Fixed address representation
Fixed the issue with the address not being saved
Fixed the waybill generation
Improved logging to get the most recent info in the admin (future)
### 1.0.14 - 2024-03-03
#### Fixes
Add state field to the checkout fields (as an option)
### 1.0.15 - 2024-03-07
#### Fixes
Fixed logic for selecting city if state is not selected, but manually typed in
Fixed logic copying data between billing and shipping fields
Fixed admin panel edit dialog for the order (in case state field is displayed)
Fixed the invoice generation logic (was not working in some special cases when courier was not found)
### 1.0.16 - 2024-03-18
#### Fixes
Fixed free delivery logic and label
Make checkout work in legacy way till plugin data is not fully loaded
### 1.0.17 - 2024-03-24
#### Fixes
Fixed shipping courier selection logic
Speed up the checkout logic
### 1.0.18 - 2024-04-01
#### Fixes
Bunch of small improvements
Fixed work with additional shipping methods
Fixed selection of shipping method
### 1.0.19 - 2024-04-02
#### Fixes
Fixed activation logic
### 1.0.20 - 2024-04-17
#### Fixes
Fixed the shipping method selection on checkout
Fixed the overall price calculation on the thank you page
Fixed update of shipping values in the order edit page
Fixed shipping price calculation and aligned between pages
### 1.0.21 - 2024-06-04
#### Fixes
Fixed the order price calculation logic
### 1.0.22 - 2024-08-06
#### Fixes
Fixed the order price calculation logic at checkout page
### 1.0.23 - 2024-10-16
#### Fixes
Fixed weight calculation issue
Made possible to use plugin w/o the actual API access
### 1.0.24 - 2024-11-14
#### Fixes
Added option for the force VAT display on checkout
### 1.0.24 - 2024-12-04
#### Fixes
Made compatible with the HPOS