Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

Redcase Cash On Delivery For WooCommerce Wordpress Plugin - Rating, Reviews, Demo & Download

Redcase Cash On Delivery For WooCommerce Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Redcase Cash on Delivery adds rules to the cash on delivery payment method that ships with WooCommerce. It does not add a new gateway: orders keep the cod payment method, so emails, reports and other plugins see nothing new.

What you can set

  • Extra fee. A fixed amount with your own label, shown as a separate line while cash on delivery is chosen. It can be taxed through any WooCommerce tax class. It is removed as soon as the customer picks another payment method or cash on delivery is no longer offered.
  • Fee per shipping method. A different amount, or no fee at all, for any shipping method entry of a zone, and one for local pickup. When an order ships in several packages, the highest fee applies.
  • Maximum cart value. Products after coupons, including tax, without shipping and fees. A cart equal to the limit is allowed; one cent more is not.
  • Shipping zones. Hide cash on delivery for chosen WooCommerce shipping zones.
  • Countries and states. Based on the shipping address.
  • Postcodes. One line per country, with exact codes and numeric ranges, for example GR: 10000...19999, 84001. Spaces and letter case are ignored and leading zeros are kept.
  • Shipping methods. Hide cash on delivery for a single shipping method entry of a zone, such as one flat rate. If any package of the order ships with it, cash on delivery is hidden for the whole order.
  • Local pickup. One switch hides cash on delivery for every local pickup, for shops that do not take cash at the counter. Left off, local pickup accepts it like any other method.
  • Settings backup. Download the settings as a JSON file and load it again, on the same shop or on another one.

One matching rule is enough to hide cash on delivery. WooCommerce’s own “Enable for shipping methods” setting still applies.

Checkout support

  • Classic checkout (shortcode): totals refresh when the payment method changes.
  • Checkout block: the fee follows the selected payment method through the Store API, and the rules apply to the payment methods the block offers.
  • At placement the rules are checked again, so an older cash on delivery choice is refused.
  • The fee is stored once on the order as a fee line. It shows in order emails, the thank-you page, My Account and the admin order screen.
  • Compatible with High-Performance Order Storage (HPOS).

For developers

Three filters, each with the cart context (total, zone, country, state, postcode, chosen shipping rates) and the settings as extra arguments:

  • redcase_cod_block_reasons: the reasons that hide cash on delivery. Return an empty array to offer it, or add your own reason to hide it.
  • redcase_cod_fee: the fee amount before tax.
  • redcase_cod_fee_label: the name of the fee line, for example per language.

Example, no cash on delivery for a product category:

add_filter( 'redcase_cod_block_reasons', function ( $reasons ) {
    foreach ( WC()->cart->get_cart() as $item ) {
        if ( has_term( 'furniture', 'product_cat', $item['product_id'] ) ) {
            $reasons[] = 'furniture';
        }
    }
    return $reasons;
} );

Privacy

The plugin makes no external requests, collects no data and adds no tracking. It stores its settings in one option.

Translations

English and Greek are included.

Screenshots

No screenshots provided


Reviews & Comments