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

On this page you can find all versions of the php package run-as-root/module-withdrawal. 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-withdrawal

Withdrawal Button for Magento 2

Magento 2 extension for implementing the EU right of withdrawal via button click.


What is it about?

The EU Directive (EU) 2023/2673 requires that in the future, consumers must be able to withdraw from online purchase contracts just as easily as they were concluded. Starting June 19, 2026, a clearly visible withdrawal button will be mandatory in online shops.

This Magento module provides exactly that: your customers can withdraw orders with just a few clicks – directly from their customer account or via a separate form for guest orders. As a shop operator, you maintain a full overview in the admin area.


What does the module do?

For your customers

Withdrawal button in the order overview

In the My Account > My Orders view, a new column appears for each order. There, the customer can see at a glance:

Additionally, a "Withdrawal Order" button is displayed on the order details page.

Withdrawal detail page

Refore the actual withdrawal, the customer sees a summary of their order:

Guest orders

Customers who ordered without an account can access the withdrawal via a dedicated search form. Entering the order number and email address is sufficient to find the order and initiate the withdrawal.

Accessible at: /withdrawal/guest/search

Confirmation page

After submission, the customer is redirected to a success page. This confirms that the withdrawal has been received and that an email is on its way.

For you as a shop operator

Admin overview of all withdrawals

Under Sales > Withdrawals, you will find a tabular overview of all received withdrawals:

All columns can be filtered and sorted.

Automatic email notification

Soon as a withdrawal is received, two emails are sent:

  1. To the customer ₓ Confirmation with order details
  2. To you – Notification with all relevant data

In addition, you receive a BCC copy of the customer email. The email templates can be customized in the admin panel.

Note in the order

Every withdrawal is automatically added as a comment in the order history. This way, it is immediately apparent in the order view that a withdrawal exists.

Configurable

In the admin under Stores > Configuration > Sales > Withdrawal Settings:


Hyvä Theme Compatibility

If you are using the Hyvä Theme, please install the Hyvä compatibility module:

https://github.com/Zwernemann/magento2-withdrawl-hyva

This module adds the required Hyvä frontend integration for the withdrawal button and ensures compatibility with the Hyvä template system.

The base module remains required.

REST API

Withdrawal entries can also be retrieved programmatically:

Access is protected by ACL permission (Zwernemann_Withdrawal::withdrawals).

Multilingualism

Completely translated into all 24 languages of the EU (97 strings). Further languages can be added via custom CSV files.


System Requirements

Component Version
Magento 2 Open Source 2.4.6 to 2.4.8-p4
PHP 7.4 or higher

Installation

Via ZIP file

  1. Extract the ZIP file and copy the entire contents to:

    1. Ensure the structure looks like this:
  2. Run the following commands in the Magento root:

  3. Check if the module is active:

Via Composer


Setup

  1. Log into Magento Admin
  2. Navigate to Stores > Configuration > Sales > Withdrawal Settings
  3. Set "Enable Module to Yes
  4. Enter Notification Email ₓ withdrawal notifications will be sent here
  5. Adjust Withdrawal Period if the legal period differs
  6. Configure email sender and templates if necessary
  7. Save and flush cache

Linking the Guest Order Form

The search form for guest orders is located at:

Include this link, for example:

With Magento URL rewrites, you can adjust the address as desired, for example to /withdrawal.


Uninstallation

Then delete the directory app/code/Zwernemann/Withdrawal/.

The database table zwernemann_withdrawal remains and can be removed manually if needed.


Version History

1.5.0

1.4.0

1.3.0

1.2.0

1.1.0

1.0.3

1.0.2

1.0.1

1.0.0


Planned


Contact & Support

Zwernemann Medienentwicklung\ Martin Zwernemann\ 79730 Murg, Germany

To the website

If you have questions, problems, or ideas for new features – feel free to get in touch.


License

OSL-3.0


All versions of module-withdrawal with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
magento/framework Version >=103.0.0
magento/module-sales Version >=103.0.0
magento/module-customer Version >=103.0.0
magento/module-backend Version >=102.0.0
magento/module-email Version >=101.0.0
magento/module-ui Version >=101.0.0
magento/module-store Version >=101.0.0
magento/module-config Version >=101.0.0
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-withdrawal contains the following files

Loading the files please wait ...