The LokiCheckout heavily depends upon another module Yireo_LokiComponents
. In this module, the barebones functionality of Loki Components: Alpine.js components that make AJAX calls to the backend. Other core modules like Yireo_LokiFieldComponents
, Yireo_LokiMapComponents
and Yireo_LokiCheckout
are built on top of this.
Yireo > Yireo LokiComponents > Generic settings > Debug: When debugging is enabled, on various levels, detailed information comes available. For instance, in the browser Error Console, more debugging messages are displayed, allowing you to inspect issues on the JavaScript level. Whenever an exception occurs within the AJAX call, the exception message is appended to the AJAX output.
Yireo > Yireo LokiComponents > Generic settings > Only validate AJAX calls: Any Loki Component allows for changing a value on the Magento server-side and before changing this value validation occurs. If validation fails, the LokiComponent is able to display an error, mark the input field with a red border, etcetera. However, when this happens when the page is loading, it might disturb the UI. This setting allows you to only trigger validation, when an actual change happens. It depends on your own customizations, whether you like this or not.
Yireo > Yireo LokiComponents > Validators > Enable MX Validation for Email Values: When a specific Loki Component is declared in a file etc/loki_components.xml
with a validator email
, then basic email validation is applied. With this setting enabled, the validation includes also a DNS MX lookup of the domain part of the email.
Yireo > Yireo LokiComponents > Global Messages > Timeout: Whenever global messages are popping up, they can be removed again after a slight delay. This is by default 5000ms (5 seconds).