Giter Site home page Giter Site logo

bej-soan / woocommerce-pfand Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nerdissimo-de/woocommerce-pfand

0.0 1.0 0.0 618 KB

Add deposit (Pfand) to WooCommerce products (e.g. Flaschenpfand)

Home Page: https://wordpress.org/plugins/pfand-deposit-for-woocommerce-products/

PHP 100.00%

woocommerce-pfand's Introduction

Woocommerce Pfand

This plugin makes it easy to add deposit like "bottle deposit" (German: Flaschenpfand) to WooCommerce products.

Dieses Plugin ermöglicht es, jedem Woocommerce Produkt Pfandwerte zuzuweisen und somit Dinge wie Flaschenpfand abzubilden. Deutsche Übersetzung liegt bei. Für Anpassungen bitten wir um Kontaktaufnahme.

Version: 2.0

Description

This plugin was written for a German beverage store. They needed deposits for bottles as well as boxes, which would be displayed separately and excluded from tax calculation.

With this plugin you can add a deposit to any WooCommerce product by adding the price under Products - Deposit Types.

Note: Because WordPress allows users to add multiple values and comma-separate them, you have to input the prices with '.' (period) as the decimal separator, independent of WooCommerce settings.

Features

  • Translation-ready (German translation included)

  • Uses built-in functionality of WordPress and Woocommerce thus fully compatible with, e.g. WP Export/Import tools

  • Developer-friendly (more hooks & documentation to come)

Custom code

Since there are a lot of different ways you or your customer may want this set up, please contact us for customizations such as:

  • Compatibility with WooCommerce German Market (disable taxing off deposit)

  • Link deposit to shipping zones' methods or customer language

  • Force sells (e.g. 1 beer crate for every x bottles)

  • Enabling of tax calulation

Hooks

Filters:

get_deposit

(int) runs when deposit is calculated.

wc_deposit_settings

(array) runs when the settings tab is being configured.

add_deposit_value_to_totals

(bool) runs before deposit fee is added (to do: rename?)

dep_total_before_add_fee

(int) runs before deposit fee is added

tax_class_before_add_fee

(string) runs before deposit fee is added

display_deposit

(bool) runs when the plugin determines to add deposit

Installation

  1. Upload woo-pfand/ to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Configure the plugin through Woocommerce -> Settings -> Tab: Deposit
  4. Go to Products - Deposit Types and create deposit prices as you would add tags
  5. Add deposit prices to your products

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.