[WordPress] 外掛分享: WeRePack – Reuse Packaging for WooCommerce

WordPress 外掛 WeRePack – Reuse Packaging for WooCommerce 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WeRePack – Reuse Packaging for WooCommerce」是 2020-05-08 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2025-04-30,距離現在已有 4 天。
  • 外掛最低要求 WordPress 4.0.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

werepack | philippmuenchen |

外掛標籤

reuse | recycle | shipping | sustainable | woocommerce |

內容簡介

這個外掛是 WeRePack.org 倡議的一部分,旨在減少包裝廢物,幫助店主和顧客節省資源。
為了達到此目的,外掛在 WooCommerce 結帳過程中添加了一個欄位,顧客可以在此同意接收再利用的運輸包裝。如此簡單、有效。並且通過過濾器提供許多自定義選項,如果您需要其他功能,請讓我們知道。

當前功能

付款流程中的勾選框,帶有微妙的動畫,位置可以更改
通過優惠券獎勵:店主可以創建一個名為 "WeRePack" 的普通 WooCommerce 優惠券,以鼓勵客戶並分享節省。
註冊用戶可以在 WooCommerce 控制面板中設置其默認值。
Shortcodes [repack] 和 [repack_summary] 以顯示您的支持和節省。
乾淨的代碼,沒有廣告和令人討厭的通知。
通過 Hooks & Filters 高度自定義,自 v1.2.0 開始還可以通過設置頁面自定義設置
可選地分享基本統計信息,幫助我們改進並在 WeRePack.org 上列出支持者網站。
已翻譯為英語、德語和德語(正式語氣)

即將推出

相比 Shortcode 的 Gutenberg 塊,該塊可以直觀地表示到目前為止的節省。

短碼

您可以使用以下短碼和函數來顯示您的節省:

短碼 [repack]

顯示您的網站或單個用戶的節省,例如:再利用的包裝數量、節省的水、節省的 CO2 和成熟的樹木。短碼屬性為:

type = "":顯示的數量: "packaging" (默認)、"co2"、"water" 或 "trees"。
value = "":如果您只想顯示數字/數量而不帶單位(例如“水升數量”),請設置為 true
packages = "":讓您覆蓋輸出所計算的包裝數量。留空以取得您網站的計數器。
user_id = "":您想顯示存款的用戶ID:將其留空以使用網站的總存款。
prepend = "":要在輸出之前添加的HTML。默認:空字符串
append = "":要在輸出之後添加的 HTML。默認:空字符串

短碼 [repack_summary]

顯示您網站的節省摘要。您可以從插件文件夾 /public/templates/summary.php 複製並覆蓋模板文件到您的主題文件夾 /repack/summary.php 中。

packages = "":讓您覆蓋輸出所計算的包裝數量。留空以使用您網站的計數器。
prepend = "":要在輸出之前添加的 HTML。默認:空字符串
append = "":要在輸出之後添加的 HTML。默認:空字符串

設置頁面

在設置頁面上調整外掛以滿足您的需求: WooCommerce 設置 -> 運輸 -> WeRePack 設置。如果您錯過了某個選項,請使用以下過濾器之一或讓我們知道。

可用過濾器

您可以使用以下過濾器在您的主題的 functions.php 或/mu-plugins/wc-repack.php 文件中自定義外掛行為和文本:

repack_checkout_consent_position:同意的位置,默認值為 woocommerce_after_order_notes 。
repack_coupon_name:要應用的優惠券代碼的名稱。默認值為 WeRePack 。

原文外掛簡介

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 and join us.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WeRePack – Reuse Packaging for WooCommerce」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.2.0 | 1.3.0 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | 1.4.6 | 1.4.7 | trunk |

延伸相關外掛(你可能也想知道)

  • Content Recycler 》若啟用此外掛,它會檢查您最近是否未發布任何文章,並透過更新最舊文章的發布日期來再利用它。這對於當您去渡假或簡單地因忙碌而無法更新您的網站時非常有用...。
  • ecycler Widget 》這個 WordPress 外掛程式可以新增一個側邊欄小工具,用以顯示您的 ecycler (http://ecycler.com/) 徽章。除了側邊欄小工具外,也可以使用簡碼在文章或頁面上...。

文章
Filter
Apply Filters
Mastodon