Download the PHP package run-as-root/module-eu-warranty without Composer

On this page you can find all versions of the php package run-as-root/module-eu-warranty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-eu-warranty

RunAsRoot_EuWarranty

Displays the official EU legal guarantee notice (EU Warranty Notice) on a dedicated storefront page and in order confirmation emails.

Configuration

Stores > Configuration > General > EU Warranty Information

General

Notice Page

Order Confirmation Email

The full-text URL (full_text_url) is computed automatically from the selected language (europa.eu/.../index_<lang>.htm) and is not configurable.

The /eu-warranty page

The page is created automatically by the module but isn't linked anywhere — add a link to it manually (e.g. via the CMS footer editor). Set Notice Page > Custom URL if you'd rather link to a different, friendlier URL; the default /eu-warranty URL keeps working regardless.

To add content (e.g. a CMS block widget) before or after the Notice on this page, go to Content > Elements > Widgets, create a widget, and under its layout update pick Specified Page > EU Warranty Notice Page, then choose the "EU Warranty Notice - Before" or "EU Warranty Notice - After" container.

Inserting the notice into the order email

There are two ways to do this. Both require Order Confirmation Email > Include Warranty Notice = Yes — otherwise the notice simply won't render.

Option 1 — layout handle (recommended)

Add a single line to the email template (e.g. next to sales_email_order_items):

The block resolves the notice itself and adapts automatically: it renders the inline image + link for "Insert into HTML", just the link for "Attach as PDF" (see below), and nothing at all when disabled — no extra guarding needed.

Option 2 — manually, via variables

If you need full control over the markup, use the warranty_notice.* template variables. They're also available in the template editor's Insert Variable... popup, under their own "Warranty Notice" group.

The image only renders in "Insert into HTML" mode (warranty_notice.html); the link itself always renders regardless of mode.

Important: the inner conditional block uses {{if warranty_notice.html}}, not {{depend}} — both would otherwise share the same parent {{depend warranty_notice.enabled}}, and two nested {{depend}} blocks with the same directive name break the template parser (the outer block closes at the first {{/depend}}} it finds, i.e. the inner block's closing tag). Don't change {{if}} back to {{depend}} here.

PDF attachment on the order confirmation email

When Order Confirmation Email > Notice Format is set to Attach as PDF (with Order Confirmation Email > Include Warranty Notice = Yes), the customer receives the Notice as a PDF file attached to their order confirmation email (and any copies sent to other recipients). Since the image itself is now in the attachment, both the eu_warranty_email_notice layout handle and the warranty_notice.* variables render only a link to the full text in this mode, instead of the inline image. It works no matter which mail-sending method (SMTP or otherwise) the store uses.


All versions of module-eu-warranty with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
magento/framework Version *
magento/module-store Version *
magento/module-config Version *
magento/module-sales Version *
magento/module-email Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package run-as-root/module-eu-warranty contains the following files

Loading the files please wait ...