ouun/repack-for-woocommerce

Get permission from your customers to reuse already used shipping packaging. As a shop owner it is an easy way to save resources, money and above all to protect the environment.

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

v1.0.6 2020-05-18 09:21 UTC

This package is auto-updated.

Last update: 2021-02-08 19:44:05 UTC


README

=== RePack - Reuse Packaging for WooCommerce ===
Contributors: werepack, philippmuenchen
Donate link: https://www.paypal.me/ouun
Tags: woocommerce, shipping, consent, recycle, reuse, ecommerce, sustainable
Requires at least: 4.0.0
Tested up to: 5.6.1
Stable tag: 1.0
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Ask for customer permission to ship reused shipping packaging. Show your support for a more sustainable ecommerce, reduce waste, save money and be part of the WeRePack.org initiative.

== 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 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.

== Installation ==

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

== Frequently Asked Questions ==

= 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](https://github.com/ouun/repack-for-woocommerce "RePack on GitHub"), translate the plugin. We really appreciate every support.

== Screenshots ==

1. Checkbox animation, adapts your Theme Design
2. Shipping notice in WooCommerce Order Overview

== Changelog ==

= 1.1.0 =
* Adds Telemetry Module: We want to win you as a supporter and measure our joint success. To do this, you can share certain data with us in order to be listed in the supporter directory on WeRePack.org.
* Various improvements

= 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.

== About WeRePack.org Initiative ==

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