A refactored version of FAN Courier module for WooCommerce 3.x
Please note this module dosen't use SSL for cURL require. Using this, you might have a data leak. If you want to fix this: https://stackoverflow.com/questions/9774349/php-curl-not-working-with-https
AWB is generated inside FanCourier SelfAWB before order has been send.
AWB isn't generated if client complete First Name and Last Name checkout fields last. These dosen't trigger calculate_shipping() method. You might want to fix this by adding update_totals_on_change class to these fields.
calculate_shipping trigger for phone number (can be extended for name and other fields, see function get_customer_details())
don't send Company Name to FanCourier when select "Persoana Fizica" at checkout, using Facturare WooCommerce module https://wordpress.org/plugins/facturare-persoana-fizica-sau-juridica/
refactored code from original module
removed boilerplate code
adds admin check for AWB debugging link
change AWB debug link style
fix admin shipping label
fix frontend shipping label
adds AWB ID as meta for shipping