Beskrivning
Pfand Manager is a lightweight WooCommerce plugin that allows you to add a per-product deposit (”Pfand”) and automatically display it as a separate fee in the cart and checkout.
The Pfand value is defined individually for each product and multiplied by the product quantity in the cart. The resulting amount is shown as a single fee line, keeping product prices clean and transparent.
This plugin is ideal for beverage deposits, reusable packaging, bottle Pfand systems, or any scenario where a refundable deposit is required.
Features
- Adds a Pfand (€) input field to WooCommerce products
- Calculates Pfand per product × quantity
- Displays Pfand as a separate fee in cart and checkout
- Pfand is not taxable by default
- Lightweight and fast — no settings page required
- Fully compatible with WooCommerce cart calculations
Usage
- Go to Products Edit Product
- Enter a Pfand amount (e.g.
0.25) - Save the product
- Add the product to the cart
The Pfand will automatically appear as a separate fee in the cart and checkout.
Filters
You can customize the label and tax behavior using filters:
Change the fee label:
add_filter(’pfand_manager_fee_label’, function () {
return ’Deposit’;
});
Make the Pfand taxable:
add_filter(’pfand_manager_fee_taxable’, function () {
return true;
});
Installation
- Upload the plugin folder to
/wp-content/plugins/pfand-manager/ - Activate the plugin via the WordPress admin panel
- Edit a WooCommerce product
- Set a value in the Pfand (€) field under the General tab
Vanliga frågor
-
Is the Pfand included in the product price?
-
No. The Pfand is added as a separate fee in the cart and checkout.
-
Is the Pfand taxable?
-
No, the Pfand is non-taxable by default. You can enable taxation via a filter.
-
Does it work with variable products?
-
Yes. The Pfand is applied to the selected variation if a Pfand value is set.
-
Does it support refunds?
-
Yes. Since the Pfand is added as a WooCommerce fee, it is included in order totals and refunds.
Recensioner
Detta tillägg har inga recensioner.
Bidragsgivare och utvecklare
”Pfand Manager” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.
Bidragande personerÖversätt ”Pfand Manager” till ditt språk.
Intresserad av programutveckling?
Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.
Ändringslogg
1.0.4
- Improved input handling with stricter sanitization and validation for product Pfand values.
- Sanitized filtered fee label output before adding the cart fee.
1.0.3
- Updated name to Pfand Manager
1.0.2
- Added license header and updated readme metadata.
1.0.1
- Added required plugin woocommerce
1.0.0
- Initial release
- Per-product Pfand fee
- Cart and checkout fee integration