Skip to content

Melhor Envio Shipping & Labels changelog

All notable changes to Melhor Envio Shipping & Labels (kv_melhor_envio) are documented here. The format follows Keep a Changelog and the project uses Semantic Versioning.

  • Uninstalling the add-on no longer deletes your data. By default the connection, labels, tracking numbers, pickup points, log and settings (licence key included) stay in the database, and the shipping methods of the add-on are only switched off. Install the add-on again and the methods are linked to the same services and switched on again with their old status. CS-Cart shows a notice after the uninstall that says what was kept.
  • Setting “Delete all data on uninstall” (off by default): only when it is ticked and saved does an uninstall delete the tables, the shipping methods and the shipping services of the add-on.
  • Licence check: the buy and renew links point to the product page again (they pointed to the add-ons index).

Update: upload the package over the installed add-on (Add-ons > Manage add-ons > Manual installation); do not uninstall first. Uninstalling 1.0.0 or older still deletes the data, because the uninstall code of the installed version runs.

  • Initial release.
  • OAuth2 connection with the merchant’s own Melhor Envio application (sandbox and production), tokens sealed in the database, one renewal under a lock after a 401, daily keep-alive, a rejected authorization pauses the connection.
  • Shipping services Correios PAC, SEDEX and Mini Envios and Jadlog .Package and .Com (the documented list); “Refresh services” adds the other services of the account.
  • Checkout quotes: one Melhor Envio request per package set serves every method, 5 second timeout, time cache, short negative cache, BRL to store currency conversion, extra days, extra fee, free-shipping threshold, optional fallback rate; a failure never blocks checkout.
  • Label flow on the order page: add to the Melhor Envio cart, pay from the balance, generate, print, cancel; CPF, CNPJ (also the alphanumeric one) and NF-e key checks; content declaration or invoice shipment; one label per order unless an additional package is chosen.
  • Money safety: per-order lock, row written before the cart request, lost answers reconciled with the official lookups before anything is paid or sent again, double clicks pay once.
  • Tracking by the signed webhook and by cron (20 labels per request), order statuses for posted and delivered, CS-Cart shipment with the tracking number.
  • Multi-Vendor: marketplace owner mode (vendors view and print, never create, pay or cancel; status automation skipped) or one account per vendor.
  • Job queue with retries and back-off, cron (command line and secret address), log viewer with CSV export and masked personal data.