Thelia v2.2.0-alpha1 Release Notes

    • ➕ Add module code ($CODE variable) into payment loop outputs
    • ➕ Add the 'images-folder' tag into module.xml file to deploy the modules images
    • ➕ Add the 'module:list' command, that shows the modules state
    • ⚡️ Update Admin Logs to add the resource ID when available.
    • ➕ Add render smarty function, that executes the controller given in the action parameter.
    • 👍 Allow modules to use document and image loop with the query_namespace argument
    • Enable image zoom in image loop before cropping to guarantee that the resulting image will match the required size, even if the original image is smaller. This feature is active only if the allow_zoom parameter is true.
    • 🍱 When in development mode, an exception is thrown when an error occurs when processing assets, thus helping to diagnose missing files, LESS syntax errors, and the like.
    • 🔄 Change default order for cart loop
    • New module_config Smarty function: {module_config module="module-code" key="parameter-name}
    • Do not register previous url on XmlHttpRequest
    • ➕ Add ACL on documents and images tabs.
    • ➕ Add confirmation modal on documents deletion
    • ➕ Add shop language choice on install wizard
    • ✂ Remove redundant * on product-edit
    • Add parameter "page_param_name" for template admin pagination.html. if "page_param_name" is empty, then the name of the parameter is "page"
    • ➕ Add "Refunded" order status
    • ➕ Add environment specific config file loading in modules
    • 🔄 Add the possibility for customers to change their email, backoffice configuration variables customer_change_email
    • Add confirmation email for customers, backoffice configuration variables customer_confirm_email
    • 🔨 Refactor Thelia\Controller\BaseController::createForm into a factory service Thelia\Core\Form\TheliaFormFactory
    • 🔨 Refactor Thelia\Controller\BaseController::validateForm and Thelia\Controller\BaseController::getErrorMessages into a service Thelia\Core\Form\TheliaFormValidator
    • ➕ Add the failsafe=[true|false] parameter to the assets Smarty functions (stylesheets, images, javascripts).
    • A country could belong to more than one shipping zone.
    • ➕ Add the exclude_area parameter to the Country loop.
    • The Country loop now returns a proper country ISO code, left-padded with zeros, e.g. '004' instead of '4'
    • 🗄 The Country::getAreaId() method is DEPRECATED.
    • ➕ Add the country and order parameters to Area loop
    • ➕ Add the area parameter to Module loop
    • 👌 Improved Shipping zones management
    • Add cache on the graph of the home page, possibility to disable cache or change ttl cache, with the configuration variable admin_cache_home_stats_ttl
    • 🆕 New feature: a default product template could be defined in categories. Products created in this category will get this default product template. If no default product template is defined in a given category, it will be searched in parent categories.
    • 🆕 New main navigation style and position
    • 🚚 jquery.ui.datepicker is now DEPRECATED and will be REMOVED in 2.3. Please use boostrap-datepicker
    • ➕ Add thelia.logger service to prepare the transition with another logger.
    • ➕ Add 62 new admin hook
    • ➕ Add stacked current form into parser context. It allows to have nested forms while using the new way to write forms.
    • 📚 Module information and documentation could be viewed directly from the module list
    • ➕ Add the possibility to translate text in the sql files (insert.sql, update/sql/*.sql). to generate sql files use command php Thelia generate:sql. Translation can be made in the back office, in the translation page.
    • format_date smarty function now handle symfony form type date, datetime and time view value.
    • 👍 Allow BaseController::generateOrderPdf to generate a pdf without having the rights
    • 👉 SHOW_HOOK now displays parameters
    • ➕ Add fallback for email template for mails sent from a module. If the template file does not exist in the current email template, it will use the one that comes with the module.
    • ➕ Add dispatch of console events
    • 🔨 Refactor VirtualProductDelivery module. The email sending is now triggered from a new event to gain more flexibility. Now, email messages use smarty file templates located in templates/email/default.
    • ➕ Added capability to use translator in module functions preActivation and postActivation
    • ➕ Add environment aware database connection
    • 🆕 new 'asset' Smarty function, to get the URL of an arbitrary file from template assets, such as a video or a font.
    • ⚡️ Imagine package is updated to 0.6.2, which provides a better support for transparency.
    • 0️⃣ Default border color of images resized with resize_mode="border" is now transparent instead of opaque white.
    • 🗄 The TemplateHelper class is deprecated. You should now use the thelia.template_helper service. TemplateHelperInterface has been introduced, so that modules may implement alternate versions