Sven tells us how this information can be used to create apps from existing plugin-based extensions.
Since the existing One Page Checkout plugin contains logic using PHP code, it was necessary to remove or outsource it for the transfer to the One Page Checkout app. In addition, the development of an app is comparable to the development of plugins, for example, in terms of information that needs to be processed in it. The rest of the app's structure, in terms of templates, snippets, sass and JavaScript files, is identical. Only the directory structure is slightly changed. Those who are already familiar with the plugin system can thus find their way into the app system very quickly.
These have been some very interesting insights. Now let's read what Sven's conclusion is and what his outlook is.
Through apps, there’s a good armenia telegram screening opportunity to provide functionality for customers of self-hosted and cloud-hosted versions. At the time of creating One Page Checkout, it was unfortunately not yet possible to read certain data from the Shopware database in the storefront. In our case, these were shipping methods and payment methods for display on the login page. It’s all the more pleasing that Shopware has announced that as of Shopware 6.4.8.0 there are so-called "App Scripts". This makes it possible to create database queries in Twig files, read database contents and use them in Twig templates. This creates many new opportunities. As of Shopware 6.4.9.0, it’s even possible to define your own URL endpoints via "App Scripts" and thus reload data on the page in a meaningful way. The practical thing about "App Scripts" is that many functionalities can be realized without the company having their own app backend server, which eliminates the necessity for detouring data storage on the company's server.
Inspired by these new features, PremSoft's next app was created immediately: a voucher list in the checkout, which is already available in the Store. Other apps that use "App scripting" are also already being planned.