Title: WeRePack &#8211; Reuse Packaging for WooCommerce
Author: Philipp
Published: <strong>May 9, 2020</strong>
Last modified: June 11, 2025

---

Search plugins

![](https://ps.w.org/repack-for-woocommerce/assets/banner-772x250.jpg?rev=2888884)

![](https://ps.w.org/repack-for-woocommerce/assets/icon-256x256.gif?rev=2888884)

# WeRePack – Reuse Packaging for WooCommerce

 By [Philipp](https://profiles.wordpress.org/philippmuenchen/)

[Download](https://downloads.wordpress.org/plugin/repack-for-woocommerce.1.4.8.zip)

 * [Details](https://wordpress.org/plugins/repack-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/repack-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/repack-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/repack-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/repack-for-woocommerce/)

## Description

This plugin is part of the WeRePack.org 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 checkout 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 coupon: Shop owners can create a coupon code 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.
 * Shortcodes `[repack]` & `[repack_summary]` to show your support and savings.
 * Clean code, no ads & no annoying notifications
 * Highly customizable via Hooks & Filters & since v1.2.0 via Settings Page
 * Optionally share basic stats, help us improve and get listed on WeRePack.org 
   as a supporter site.
 * Available translations: English, German & German (formal)

**Coming soon**

 * Gutenberg Block additionally to Shortcode, which visually represents the savings
   to date.

**Shortcodes**

You can use the following shortcodes and functions to show your savings:

**_Shortcode `[repack]`_**

Display the savings of your site or individual users such as: Amount of reused packages,
water saved, CO2 saved and mature trees saved. The shortcode attributes are:

 * `type=""`: What amount to display: “packaging” (default), “co2”, “water” or “
   trees”
 * `value=""`: Set to `true` if you only want to display the number/quantity without
   unit (e.g. “litres of water”)
 * `packages=""`: Lets you overwrite the number of packages the output is calculated
   with. Leave empty to get your sites counter.
 * `user_id=""`: User ID of whom you want to display the saving: Leave blank to 
   use the sites total saving instead.
 * `prepend=""`: HTML to prepend to output. Default: Empty string
 * `append=""`: HTML to append to output. Default: Empty string

**_Shortcode `[repack\_summary]`_**

Displays a summary of you sites savings. You can copy and overwrite the template
file from plugins folder `/public/templates/summary.php` to your themes folder `/
repack/summary.php`.

 * `packages=""`: Lets you overwrite the number of packages the output is calculated
   with. Leave empty to use your sites counter.
 * `prepend=""`: HTML to prepend to output. Default: Empty string
 * `append=""`: HTML to append to output. Default: Empty string

**Settings Page**

Adjust the plugin to your liking on the settings page: `WooCommerce Settings -> 
Shipping -> WeRePack Settings`. If you miss an option use one of the following filters
or let us know.

**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_consent_field_firework`: Set to `false` to deactivate the checkbox animation
   on consent.
 * `repack_coupon_applied_notice_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.
 * `repack_template_summary_data`: `$data` object passed to summary.php template.
 * `repack_template_summary_saving`: `$saving` object passed to summary.php template.

**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 WeRePack.org Initiative

Learn more about the initiative on [WeRePack.org](https://werepack.org/) and join
us.

## Screenshots

 * [[
 * Checkbox animation, adapts to your Theme Design
 * [[
 * Shipping notice in WooCommerce Order Overview
 * [[
 * Optionally integrates with WooCommerce Coupons
 * [[
 * Optionally share your savings and …
 * [[
 * … get listed as Community Site on WeRePack.org

## Installation

Install the plugin either via WordPress or as a composer package via `composer require
werepack/repack-for-woocommerce`

## FAQ

### 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 toggle the checkout checkbox.
If you want to rename the coupon, add the filter `add_filter( 'repack_coupon_name','
MyCouponName' )` to your `functions.php`.

### 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](https://github.com/werepack/repack-for-woocommerce), translate
the plugin. We really appreciate every support.

### My language is missing. How to contribute it?

We are so happy and thankful that you support the initiative with your contribution!
Since version 1.1.2 we use the official WordPress Translation System on [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce/).

If it is the first time that you contribute translations, please have a short look
at [the First Steps](https://make.wordpress.org/polyglots/handbook/translating/first-steps/#contributing-your-first-translations).
Otherwise, just start to translate on [translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce](https://translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce/).

## Reviews

![](https://secure.gravatar.com/avatar/4f88b7a08960512d9008bf1f11b9215b4fa482ef2fbbea6490382d4ac61ce9e4?
s=60&d=retro&r=g)

### 󠀁[Gut umgesetztes Plugin](https://wordpress.org/support/topic/gut-umgesetztes-plugin/)󠁿

 [stachelbart](https://profiles.wordpress.org/stachelbart/) November 16, 2022

Plugin erfüllt das, was es vorgibt. Die dahinter stehende nachhaltige Initiative
hilft schnell, wenn Fragen auftauchen. Insgesamt sehr gut umgesetzt.

![](https://secure.gravatar.com/avatar/236cd7fa730a78e3cc89bd7928c5e9c6c1b509faf7fd798cfec8032ba2e129d2?
s=60&d=retro&r=g)

### 󠀁[super Add-on for sustainable and concious customers](https://wordpress.org/support/topic/super-add-on-for-sustainable-and-concious-customer/)󠁿

 [widdaberlin](https://profiles.wordpress.org/widdaberlin/) January 18, 2022

easy plugin that does what it should. easy to integrate and runs without problems.
our customers appreciate it.

![](https://secure.gravatar.com/avatar/804294281b228633206fe6e03e1afcc129e0ed2b456236fdfa66d6296c4eede7?
s=60&d=retro&r=g)

### 󠀁[Tolle Features, einfache Handhabung](https://wordpress.org/support/topic/tolle-features-einfache-handhabung/)󠁿

 [Michael Sutter](https://profiles.wordpress.org/michih/) January 1, 2022

Das Plugin tut genau das, was es in der Beschreibung verspricht: Es ist einfach 
in der Nutzung, kann mittels Einstellungen gut auf die eigenen Wünsche angepasst
werden und der Support ist wirklich erklassig. Last but not least: Den nachhaltigen
Gedanken, den das Plugin abdeckt, wäre sogar ein 6. Stern wert. Kann es nur jedem
empfehlen, dieses Plugin im WooCommerce-Shop einzusetzen.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/)

## Contributors & Developers

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

Contributors

 *   [ Philipp ](https://profiles.wordpress.org/philippmuenchen/)
 *   [ WeRePack.org Team ](https://profiles.wordpress.org/werepack/)

“WeRePack – Reuse Packaging for WooCommerce” has been translated into 2 locales.
Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce/contributors)
for their contributions.

[Translate “WeRePack – Reuse Packaging for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/repack-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/repack-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/repack-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/repack-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4.8

 * Fix minor PHP bug where a string should be cast to an integer
 * Fix textdomain loading warning
 * Update supported WordPress & WooCommerce versions

#### 1.4.7

 * Fix textdomain loading issue
 * Update supported WordPress & WooCommerce versions

#### 1.4.6

 * Update supported WordPress & WooCommerce versions

#### 1.4.5

 * Update supported WordPress & WooCommerce versions

#### 1.4.4

 * Update supported WordPress & WooCommerce versions

#### 1.4.3

 * Enh: Tested with WooCommerce 6.8.x
 * Enh: Improves PHP8 support
 * Enh: Various small improvements
 * Fix: Error notice if WooCommerce is deactivated
 * Fix: Extend API call timeout

#### 1.4.2

 * Fix: In some edge cases (e.g. deleting orders) the WeRePack ratio can become 
   >100%

#### 1.4.1

 * Enh: Dashboard Settings: Improved Notifications

#### 1.4.0

 * Enh: Tested with WooCommerce 6.3.x
 * Fix: WeRePack Community Updates by…
 * Fix: Switch to REST API

#### 1.3.0

 * Enh: Tested with WooCommerce 6.0
 * Enh: Option to disable checkbox animation [#5](https://github.com/WeRePack/repack-for-woocommerce/issues/5)
 * Enh: Hide Remove Option for WeRepack Coupons in Cart [#4](https://github.com/WeRePack/repack-for-woocommerce/issues/4)

#### 1.2.0

 * Enh: Settings Page in WooCommerce Settings -> Shipping -> WeRePack Settings
 * Enh: Join the WeRePack.org Community from Settings Page (or revoke your consent)
 * Enh: Manual Sync from Settings Page
 * Enh: Display hint in order preview if consent is given
 * Fix: Correct last data submission
 * Fix: Various small improvements

#### 1.1.8

 * Enh: Rename plugin to WeRePack to inline with initiatives name

#### 1.1.7

 * Enh: Schedule WordPress Cron for Telemetry

#### 1.1.6

 * Fix: Translation files missing strings

#### 1.1.5

 * Enh: WooCommerce Tested 5.2
 * Enh: Add start date to summary template
 * Enh: Adds availability of a coupon code to telemetry module
 * Fix: Next packaging counter

#### 1.1.4

 * Various small improvements

#### 1.1.3

 * Rename translation files to fit text domain

#### 1.1.2

 * Switch text-domain to support WP.org GlotPress Translations at [translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce](https://translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce/)

#### 1.1.1

 * Update Translations: English, German (formal) & German (informal)

#### 1.1.0

 * Various improvements
 * Adds summary shortcode and template. You can copy and overwrite it in your theme
   from plugins folder `/public/templates/summary.php` to your themes folder `/repack/
   summary.php`
 * Adds Telemetry Module: We want to win you as a supporter and measure our joint
   success. To do this, you can share some stats with us in order to get listed 
   in the supporter directory on WeRePack.org.

#### 1.0.6

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

#### 1.0.5

 * WordPress.org Repo: Fix version.

#### 1.0.4

 * 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

#### 1.0.3

 * Minor bug fix.

#### 1.0.2

 * Fixing version numbers.

#### 1.0.1

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

#### 1.0.0

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

## Community plugin

This plugin is developed and supported by a community.

## Meta

 *  Version **1.4.8**
 *  Last updated **10 months ago**
 *  Active installations **10+**
 *  WordPress version ** 4.0.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/repack-for-woocommerce/), [German](https://de.wordpress.org/plugins/repack-for-woocommerce/),
   and [German (Switzerland)](https://de-ch.wordpress.org/plugins/repack-for-woocommerce/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/repack-for-woocommerce)
 * Tags
 * [recycle](https://wordpress.org/plugins/tags/recycle/)[reuse](https://wordpress.org/plugins/tags/reuse/)
   [shipping](https://wordpress.org/plugins/tags/shipping/)[sustainable](https://wordpress.org/plugins/tags/sustainable/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/repack-for-woocommerce/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/repack-for-woocommerce/reviews/)

## Contributors

 *   [ Philipp ](https://profiles.wordpress.org/philippmuenchen/)
 *   [ WeRePack.org Team ](https://profiles.wordpress.org/werepack/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/repack-for-woocommerce/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/ouun)