Skip to content

4.1.1.33

Choose a tag to compare

@gosha-bot gosha-bot released this 05 Nov 18:00
· 5 commits to main since this release
666d853

Changes

  • Licenses: the library uses only the API of the ka_licenses module (api_version 1), the old scripts extension/domain_info and extension/register_key are not called any more (the license server ka-station is updated together with the library). The list of Ka Extensions asks for the state of all installed modules of the vendor with one request to index.php?route=extension/ka_extensions/ka_licenses/api/checkModules (vendor, code and the edition of the store - oc3 for Opencart 3.x, the Opencart version); registered / free modules are saved as before, unregistered and expired ones are not registered. The registration of a key goes to .../ka_licenses/api/linkLicense (license_key, surface_uri, vendor, code, edition, opencart_version). When the license server is not available or its answer is not valid (connection refused, timeout, HTTP 404 / 5xx, empty or not JSON answer, no api_version) or it returns an error, nothing is changed: one request, the saved states of modules are kept, no module is disabled or shown as unlicensed, the error is written to the log. Tests: integration LicenseServerTest (group license, a local test server tests/fixtures/license_server).
  • JavaScript: the object ka_extensions was not created on storefront themes with their own header.twig and footer.twig (e.g. Milena on ka-station), only the class KaExtensions was defined: since 4.1.1.32 the object was created by the inline script of the library part of the default header.twig (and of footer.twig, only when the page had labels), the removed common.js created it itself before. Code of modules failed with 'ka_extensions is not defined' (the image upload of a vendor product in Multivendor). Fixed: kaextensions.js (admin and storefront) creates the object at its end when it is missing, the header and the footer create it only when it is missing as before (one object). The admin kaextensions.js keeps after it the block of the old admin common.js: $.ka.alert(text, type) calls ka_extensions.showMessage(text, type) (the storefront common.js had no such block, there $.ka.alert is set by the constructor of KaExtensions). Note: the labels of the footer (ka_extensions.setLabels()) are still not passed on such themes, getLabel() gives the English defaults. Test: e2e tests/e2e/common_js_post_links.js (a page with kaextensions.js only, admin and storefront: the object and $.ka.alert calling showMessage).

What's Changed

  • JS: kaextensions.js creates the object ka_extensions with any theme, $.ka.alert block of the old admin common.js by @gosha-bot in #43
  • Release 4.1.1.33: version in manifest.ini and ControllerInstaller, changelog heading without '(not released)', install example 4.1.1.33 by @gosha-bot in #44

Full Changelog: v4.1.1.32...v4.1.1.33