WiderrufButton · PrestaShop
Right of Withdrawal Button for PrestaShop
PrestaShop (1.7 and 8.x) has no built-in field for global footer code out of the box. The most reliable way to add the right of withdrawal button without a developer is a free "Custom Code" or "HTML Box" module. Alternatively, you can embed the WiderrufButton widget directly in your theme template.
Install in 3 steps
Install a custom-code module
In the PrestaShop back office, open Modules → Module Catalog and search for "Custom Code" or "HTML Box". Alternatively, download a free module from PrestaShop Addons and upload it as a ZIP under Modules → Upload a module. Install it.
Add the script tag to the footer
Open the module configuration and paste the WiderrufButton script tag into the field for the footer (code before the closing </body> tag). Replace the placeholder with your widget key in the data-shop-id attribute and save.
Clear the cache and verify
Clear the cache under Advanced Parameters → Performance. Open your shop front end, open the withdrawal modal, and submit a test withdrawal — the confirmation of receipt should arrive by email.
The script tag
<!-- Replace YOUR_WIDGET_KEY with your personal key from the dashboard -->
<script
src="https://widerrufbutton.net/widget/v1/wh.js"
data-shop-id="YOUR_WIDGET_KEY"
data-position="fixed-bottom-left"
data-lang="auto"
async defer
></script>If the code won't save, disable the "Use HTMLPurifier library" option under Shop Parameters → General. Without a module, you can also embed the script directly in themes/YourTheme/templates/_partials/footer.tpl — use a child theme for this so an update doesn't overwrite the code.
Frequently asked questions
Which PrestaShop versions are supported?
The script-tag approach works equally well with PrestaShop 1.7.x and 8.x. Since the widget loads entirely client-side, it is independent of your PrestaShop version and your theme.
Do I need a paid module?
No. The PrestaShop Addons marketplace offers free custom-code and HTML-box modules that embed JavaScript in the footer. Alternatively, you can embed the script directly in your theme template without any module.
Can I embed it directly in the theme without a module?
Yes. Edit themes/YourTheme/templates/_partials/footer.tpl, or use the displayBeforeBodyClosingTag hook in your own module. For direct template embedding, we recommend a child theme so that updates don't remove the code.