RePack – Reuse Packaging for WooCommerce


This plugin is part of the initiative to avoid packaging waste and helps shop owners and their customers save resources.
To do this, the plugin adds a field in the WooCommerce payment process where customers can give their consent to receive reused shipping packaging. So simple, so effective. And with lots of customization options via filters, let us know if there’s anything else you need.

Current features

  • Checkbox in payment process with subtle animation, the position can be changed
  • Reward with a voucher: Shop owners can create a voucher to encourage customers and share the savings. To do this, simply create an ordinary WooCommerce voucher called ‘WeRePack’.
  • Registered users can set their default value in the WooCommerce Dashboard.
  • The shortcode [repack] shows the total number of shipping packages saved, globally or by user.
  • Clean code, no ads & no annoying notifications
  • Highly customizable via Hooks & Filters

Coming soon

  • Gutenberg Block, which visually represents the savings to date.
  • Be listed as a supporter on the initiative’s website.

Available Filters

You can customize the plugin behavior and text by using the following filters in your themes functions.php or /mu-plugins/wc-repack.php file:

  • repack_checkout_consent_position: Position of the consent, default is woocommerce_after_order_notes.
  • repack_coupon_name: Name of the coupon code to apply. Default is WeRePack.
  • repack_consent_field_label: Label of the consent checkbox.
  • repack_consent_field_description: Description of the consent checkbox.
  • repack_consent_field_args: Arguments of the woocommerce_form_field() function to add the consent checkbox.
  • repack_coupon_removed_applied_text: Notice text after coupon was applied.
  • repack_coupon_removed_notice_text: Notice text after coupon was removed.
  • repack_email_label: Label in WooCommerce mails if consent was given.
  • repack_email_text: Text in WooCommerce mails if consent was given.
  • ‘repack_deactivate_remove_all_meta’: Set to true to delete all plugin related metadata on deactivation.

Missing something?
Write us what else is needed to make your shop more sustainable. Whatever it is, we will do our best to get as many shops as possible to join the initiative.

About Initiative

Learn more about the initiative on and join us.


  • Checkbox animation, adapts your Theme Design
  • Shipping notice in WooCommerce Order Overview


Install the plugin either via WordPress or as a composer package via composer require ouun/wc-repack


Am I forced to give a discount?

No! You are not! But you can show your good will and that you are not taking part to maximize profit, but to support the initiative and environment.

How to set up and customize a coupon code

The plugin gives you maximum flexibility and accepts all WooCommerce coupons that can be applied to the shopping cart. Just create a new coupon named ‘WeRePack’, it will be added or removed automatically when you select the RePack checkbox. If you want to name coupon differently, add the filter add_filter( 'repack_coupon_name', 'MyCouponName' ) to your functions.php.

How to use the shortcode

Use the shortcode wherever you want with [repack]. This will output the amount of packaging the shop saved in total. You can prepend and append text to that number with attributes: [repack prepend="Wow! We already saved " append=" packaging so far"].
if you additionally set the attribute user_id the amount of packaging a single user has saved will be displayed. A neat way to further motivate recurring users: [repack user_id="123" prepend="Thank you! Together we already saved " append=" packaging."]

I like the initiative and want to support you

Yes, please! We need every heart, hand and mouth. Talk about us, help us improve the code on GitHub, translate the plugin. We really appreciate every support.


There are no reviews for this plugin.

Contributors & Developers

“RePack – Reuse Packaging for WooCommerce” is open source software. The following people have contributed to this plugin.




  • Adds filter repack_deactivate_remove_all_meta which when true removes all plugin related data from the DB on plugin deactivation.


  • Repo: Fix version.


  • Adds filter repack_checkout_consent_position: Allows changing the consent position.
  • Adds filter repack_checkout_consent_default_state: Allows changing the consent default value.
  • Fixes user repack counter


  • Minor bug fix.


  • Fixing version numbers.


  • Fix overseen PHP error calling $order->id directly.
  • Adds all available filters to Readme.


  • Hello World!
  • Contains all features as explained in Readme.