Progressus-io / postnl-for-woocommerce

GNU General Public License v3.0
3 stars 0 forks source link

Fix/multicollo barcode - Fixing Multicollo Barcodes #134

Closed iyut closed 1 year ago

iyut commented 1 year ago

Changes proposed in this Pull Request:

This PR will create unique barcode for each labels if the user input number of labels more than 1. This PR also change some variable in the create label ( /v1/shipment ) request.

How to test the changes in this Pull Request:

  1. Create a new order.
  2. Create a PostNL label from Order edit page in admin.
  3. Print the label. Each label will have unique barcode.
  4. Check the log from WooCommerce >> Status >> Log. The request will show Barcode for each addresses array. And MainBarcode will always use the first barcode. Example : Screenshot 2023-07-26 at 14 41 21

Changelog entry

  • Fix multi-collo barcodes call.