Title: Total Cost Input for WooCommerce
Author: ethereumicoio
Published: <strong>30. Juni 2022</strong>
Last modified: 1. November 2026

---

Search plugins

![](https://ps.w.org/total-cost-input-for-woocommerce/assets/banner-772x250.png?
rev=3778228)

![](https://ps.w.org/total-cost-input-for-woocommerce/assets/icon.svg?rev=2749998)

# Total Cost Input for WooCommerce

 By [ethereumicoio](https://profiles.wordpress.org/ethereumicoio/)

[Download](https://downloads.wordpress.org/plugin/total-cost-input-for-woocommerce.2.0.0.zip)

 * [Details](https://de-ch.wordpress.org/plugins/total-cost-input-for-woocommerce/#description)
 * [Reviews](https://de-ch.wordpress.org/plugins/total-cost-input-for-woocommerce/#reviews)
 *  [Installation](https://de-ch.wordpress.org/plugins/total-cost-input-for-woocommerce/#installation)
 * [Development](https://de-ch.wordpress.org/plugins/total-cost-input-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/)

## Description

Total Cost Input for WooCommerce plugin lets customers enter the amount of money
they want to spend. The matching product quantity is calculated for them and shown
right next to the sum (and, in the PRO version, the customer can also type the quantity
and the two numbers stay in sync).

This plugin is ideal to sell products that can not be counted in portions, like 
liquids, powders, gas, cryptocurrencies, etc.

With this plugin used, your customer can just enter a sum, like $100 for example,
and buy some amount of product you are selling, in grams, litres, bitcoins, etc.

> It can be a valuable addition to your crypto selling store with the [Cryptocurrency WordPress Plugin for WooCommerce](https://ethereumico.io/product/cryptocurrency-wordpress-plugin/)!

### FREE Features

 * `Total Cost Input` is a **per-product** product type: tick the checkbox on a 
   product and that product, and only that product, asks for a sum instead of a 
   quantity
 * The `Total Cost Input` field on the product page of an opted-in product: the 
   customer enters the amount of money and the resulting quantity is calculated 
   for them
 * A **product-sale widget** – the `[total_cost_input_widget]` shortcode and the`
   Total Cost Input: Product` Gutenberg block:
    - a dropdown of every product that can be bought right now (purchasable, in 
      stock, visible in the catalog); the list shows **product names only**, without
      prices
    - an **amount field** in the site currency – the customer types the sum and 
      the widget buys the matching quantity
    - a **quantity field** next to the sum: it is shown (read-only) and is updated
      as the customer types the amount, so the buyer sees the units before paying;
      the posted quantity is the same number
    - a `Buy` button that adds the product to the cart and takes the customer straight
      to the checkout
    - a **configurable field order**, so the card can be arranged the way you sell–
      including the product after the quantity – set per shortcode/block with the`
      order` attribute, in the block inspector, or site-wide on the settings screen
    - a **12-column grid**: every field’s width is a span of `1` to `12` columns(
      or `full` for all twelve, which is the default), set per shortcode/block with
      the `widths` attribute, with the width selects in the block inspector, or 
      as one line on the settings screen. A field that spans 12 columns takes the
      whole row, so a card of default fields stacks vertically and smaller spans
      sit in a row; fields whose spans add up to more than 12 wrap onto the next
      line – there is no separate layout switch
    - the **Material design** look by default: an elevated card, outlined fields
      and a filled button, so the widget looks finished without any styling
 * The `Product Quantity Step` setting – sell fractional quantities (enter `0.1`
   and the customer can buy `0.1`, `0.2`, `0.3` …), in the FREE version too

### PRO Features

The [PRO](https://ethereumico.io/product/woocommerce-input-quantity-total-cost-wordpress-plugin/)
version includes all FREE features, plus:

 * Option to show both, the `Total Cost Input` and `Quantity` fields on the product
   page
 * The widget’s **quantity field becomes editable** – in place of the read-only 
   quantity the customer can type the units too, and the two numbers are **kept 
   in sync in both directions**: type a sum and the units follow, type the units
   and the sum follows
 * The widget’s **product list restriction** – sell only the products you choose,
   not the whole catalog
 * The widget’s **custom button text** instead of `Buy`
 * The widget’s **theme style** – apply the style of the site theme to the widget,
   so it inherits the theme’s background, borders, font and corner radii and the
   plugin only keeps the layout
 * The widget’s **custom style**, set in the block inspector or on the settings 
   screen – background colour of the widget and of the button, text colour, font
   family, font size and the corner radius of the widget and of the button, on top
   of the included Material default
 * The widget’s **vendor restriction** – on a WC Vendors, Dokan or WCFM page the
   dropdown offers that vendor’s products only

### Not supported yet

**Block-based product surfaces are not supported yet.** The `Total Cost Input` field
works on the classic single-product template and on the classic cart and checkout.
The block versions of those pages (the Single Product block, the Cart and Checkout
blocks) render the quantity field on the client side and therefore ignore the plugin’s
field:

 * Single Product block – no `Total Cost Input` field;
 * Cart and Checkout blocks – no money/quantity synchronisation.

Use the classic templates (or the `[total_cost_input_widget]` shortcode / block,
which is unaffected) until a future release adds the block support.

### l10n

This plugin is localization ready.

Languages this plugin is available now:

 * English
 * Arabic (عرب)
 * Czech (čeština)
 * Danish (Dansk)
 * German (Deutsche)
 * Greek (Ελληνικά)
 * Spanish (Español)
 * Persian (فارسی)
 * French (Français)
 * Hebrew (עִברִית)
 * Hindi (हिन्दी)
 * Indonesian (Bahasa Indonesia)
 * Italian (Italiano)
 * Japanese (日本)
 * Korean (한국인)
 * Malay (Melayu)
 * Norwegian (Norsk)
 * Netherlandish (Nederlands)
 * Polish (Polski)
 * Portuguese (Português)
 * Russian (Русский)
 * Slovak (Slovenský)
 * Finnish (Suomalainen)
 * Swedish (Svenska)
 * Thai (ไทย)
 * Philippine (Pilipinas)
 * Turkish (Türk)
 * Vietnamese (Tiếng Việt)
 * Chinese (中国人)

Feel free to translate this plugin to your language.

## Screenshots

[⌊the classic product card of a 100 product: typing 9.9 in the total sets the quantity
to 0.099 at a 0.001 step⌉⌊the classic product card of a 100 product: typing 9.9 
in the total sets the quantity to 0.099 at a 0.001 step⌉[

the classic product card of a 100 product: typing 9.9 in the total sets the quantity
to 0.099 at a 0.001 step

[⌊the product screen: the per-product Total Cost Input checkbox on the General tab
of the product data panel⌉⌊the product screen: the per-product Total Cost Input 
checkbox on the General tab of the product data panel⌉[

the product screen: the per-product `Total Cost Input` checkbox on the General tab
of the product data panel

[⌊the settings screen: Product Quantity Step, Widget field order, Widget widths (
a 12-column span per field: 1 … 12 or full) and the Widget style row⌉⌊the settings
screen: Product Quantity Step, Widget field order, Widget widths (a 12-column span
per field: 1 … 12 or full) and the Widget style row⌉[

the settings screen: `Product Quantity Step`, `Widget field order`, `Widget widths`(
a 12-column span per field: 1 … 12 or full) and the `Widget style` row

[⌊the same product card the other way round: a typed quantity moves the total (0.05
units at 100 are 5.00), so the two fields stay in sync in both directions⌉⌊the same
product card the other way round: a typed quantity moves the total (0.05 units at
100 are 5.00), so the two fields stay in sync in both directions⌉[

the same product card the other way round: a typed quantity moves the total (0.05
units at 100 are 5.00), so the two fields stay in sync in both directions

[⌊the sale widget in a page (FREE): the product dropdown, the amount field and the
Quantity shown next to it as a disabled display that follows the amount (9.9 buys
0.099), in the default Material card, with the page text around it⌉⌊the sale widget
in a page (FREE): the product dropdown, the amount field and the Quantity shown 
next to it as a disabled display that follows the amount (9.9 buys 0.099), in the
default Material card, with the page text around it⌉[

the sale widget in a page (FREE): the product dropdown, the amount field and the`
Quantity` shown next to it as a disabled display that follows the amount (9.9 buys
0.099), in the default Material card, with the page text around it

[⌊the same Free widget with the product list open: the custom list shows the product
names only (BTC, ETH), with no prices, and it is not clipped by the card⌉⌊the same
Free widget with the product list open: the custom list shows the product names 
only (BTC, ETH), with no prices, and it is not clipped by the card⌉[

the same Free widget with the product list open: the custom list shows the product
names only (BTC, ETH), with no prices, and it is not clipped by the card

[⌊the same Free widget on one row: the amount, the disabled Quantity (0.099 at 9.9),
the product dropdown and Buy share the row through their 12-column spans⌉⌊the same
Free widget on one row: the amount, the disabled Quantity (0.099 at 9.9), the product
dropdown and Buy share the row through their 12-column spans⌉[

the same Free widget on one row: the amount, the disabled `Quantity` (0.099 at 9.9),
the product dropdown and `Buy` share the row through their 12-column spans

[⌊the same widget in PRO with the Material style: the amount field and the editable
quantity field next to it (9.9 buys 0.099)⌉⌊the same widget in PRO with the Material
style: the amount field and the editable quantity field next to it (9.9 buys 0.099
)⌉[

the same widget in PRO with the **Material** style: the amount field and the **editable**
quantity field next to it (9.9 buys 0.099)

[⌊the same Professional widget with the product list open: names only, no prices,
not clipped⌉⌊the same Professional widget with the product list open: names only,
no prices, not clipped⌉[

the same Professional widget with the product list open: names only, no prices, 
not clipped

[⌊the Total Cost Input block in the block editor with its inspector open: the Field
order rows, the four Width selects (Product, You pay, Quantity, Buy button) and 
the opened Style panel with its mode, colours, font, font size and corner radii⌉⌊
the Total Cost Input block in the block editor with its inspector open: the Field
order rows, the four Width selects (Product, You pay, Quantity, Buy button) and 
the opened Style panel with its mode, colours, font, font size and corner radii⌉[

the `Total Cost Input` block in the block editor with its inspector open: the `Field
order` rows, the four `Width` selects (`Product`, `You pay`, `Quantity`, `Buy button`)
and the opened `Style` panel with its mode, colours, font, font size and corner 
radii

[⌊the Professional widget with a custom style: its own card and button colours, 
font, font size and corner radii, stacked⌉⌊the Professional widget with a custom
style: its own card and button colours, font, font size and corner radii, stacked⌉[

the Professional widget with a **custom** style: its own card and button colours,
font, font size and corner radii, stacked

[⌊the same custom style on one row: the amount, the quantity, the product dropdown
and the button sharing the row, painted by the block's colours, font and radii, 
with the 4/3/2/3 12-column spans⌉⌊the same custom style on one row: the amount, 
the quantity, the product dropdown and the button sharing the row, painted by the
block's colours, font and radii, with the 4/3/2/3 12-column spans⌉[

the same **custom** style on one row: the amount, the quantity, the product dropdown
and the button sharing the row, painted by the block’s colours, font and radii, 
with the `4/3/2/3` 12-column spans

[⌊the 12-column grid in action: You pay spans 4 of 12 columns, the quantity 4, the
product dropdown 1 and the Buy button 3 - 4/4/1/3 adds up to the full row, so all
four fields sit on one line⌉⌊the 12-column grid in action: You pay spans 4 of 12
columns, the quantity 4, the product dropdown 1 and the Buy button 3 - 4/4/1/3 adds
up to the full row, so all four fields sit on one line⌉[

the **12-column grid** in action: `You pay` spans 4 of 12 columns, the quantity 
4, the product dropdown 1 and the `Buy` button 3 – `4/4/1/3` adds up to the full
row, so all four fields sit on one line

## Blocks

This plugin provides 1 block.

 *   Total Cost Input

## Installation

 * Install and activate it as you would any other plugin.
 * Make a new WooCommerce product, or just check the `Total Cost Input` checkbox
   on an existing one.
 * To sell from a widget, drop the `[total_cost_input_widget]` shortcode (or the`
   Total Cost Input: Product` block) into a page.

## Reviews

![](https://secure.gravatar.com/avatar/29588e25428ad93b3bf0a91a118444b9c59f5c7d59de5f9c028fe4c9d901dd88?
s=60&d=retro&r=g)

### 󠀁[great plugin!](https://wordpress.org/support/topic/great-plugin-35207/)󠁿

 [shnaar](https://profiles.wordpress.org/shnaar/) 5. Oktober 2022

I'm happy with everything!

![](https://secure.gravatar.com/avatar/562315042f805c74d013f845f029426f93d55b0aba5191385642d6f234617575?
s=60&d=retro&r=g)

### 󠀁[I will continue to use these products](https://wordpress.org/support/topic/i-will-continue-to-use-these-products/)󠁿

 [yanlukashin](https://profiles.wordpress.org/yanlukashin/) 2. Oktober 2022

Cool product, I like it. Responsive support, and quality plugins.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/)

## Contributors & Developers

“Total Cost Input for WooCommerce” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ ethereumicoio ](https://profiles.wordpress.org/ethereumicoio/)

“Total Cost Input for WooCommerce” has been translated into 3 locales. Thank you
to [the translators](https://translate.wordpress.org/projects/wp-plugins/total-cost-input-for-woocommerce/contributors)
for their contributions.

[Translate “Total Cost Input for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/total-cost-input-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/total-cost-input-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/total-cost-input-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/total-cost-input-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/total-cost-input-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.0

 * Rewritten on a layered architecture: `app/` is split into Domain / Views / Controllers/
   Modules, and `Infrastructure\Hooks` is the only place that registers a hook. 
   The plugin option, the product meta key, the public hooks and the `total_cost`
   asset handle are unchanged, so an upgrade keeps the configuration.
 * The `Total Cost Input` per-product checkbox is now part of the **FREE** version.
 * The `Product Quantity Step` setting is FREE too: enter `0.1` and the customer
   can buy `0.1`, `0.2`, `0.3` … without a licence.
 * The `global/quantity-input.php` template override was rebased on WooCommerce **
   10.1.0** (unified `woocommerce_before/after_quantity_input_field` hooks, `aria-
   label`, conditional `size` / `max`).
 * The PRO-only «show the quantity field too» option no longer hides the field with
   CSS: the standard quantity input is a hidden field and the visible one is rendered
   by PRO only.
 * New **product-sale widget**: the `[total_cost_input_widget]` shortcode and the`
   Total Cost Input: Product` Gutenberg block – a dropdown of every product that
   can be bought right now (names only, no prices) and a `Buy` button that adds 
   the product to the cart and takes the customer straight to the checkout.
 * PRO: the widget’s amount field (a sum in the site currency), the product-list
   restriction, a custom button text, a theme style (the widget inherits the site
   theme’s own styling), a custom style (widget and button background, text colour,
   font family and size, corner radius) and the vendor restriction on WC Vendors/
   Dokan / WCFM pages.
 * The widget is a flat **12-column grid**: every field claims a span of `1` to `
   12` columns and a field that spans all twelve takes the whole row, so the card
   stacks by default and smaller spans make a row. The old `layout` attribute/option(
   vertical/horizontal) is gone – the spans are the layout.
 * The front end is a Vite + React bundle. jQuery is no longer used – not a dependency,
   not in the code – and `assets/widget.js` and the root `*.js` / `*.min.js` files
   are gone.
 * A widget that renders nothing publishes the reason (`empty_catalog`, `no_vendor`,`
   no_vendor_products`) through `total_cost_input_for_woocommerce_widget_empty`.
 * The `products` attribute of the widget is cast with `(int)`, so a negative id
   means «no products» rather than product 1.
 * Requires WordPress 6.6 and PHP 7.4; tested up to WordPress 7.1 and WooCommerce
   11.2.
 * Known limitation: block-based product surfaces (the Single Product block, the
   Cart and Checkout blocks) are not supported yet.

#### 1.1.3

 * freemius library version update
 * tested up to WordPress 7.1 and WooCommerce 11.2

#### 1.1.2

 * freemius library version update

#### 1.1.1

 * freemius library version update

#### 1.1.0

 * The `Product Quantity Step` setting is introduced. Enter 0.1 to allow customer
   to buy 0.1, 0.2, 0.3, e.t.c. quantity of your products.

#### 1.0.2

 * WooCommerce `global/quantity-input.php` template update to the latest version

#### 1.0.1

 * freemius library version update

#### 1.0.0

 * Initial release.

## Meta

 *  Version **2.0.0**
 *  Last updated **1 Woche ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.6 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/total-cost-input-for-woocommerce/),
   [Greek](https://el.wordpress.org/plugins/total-cost-input-for-woocommerce/), 
   [Spanish (Chile)](https://cl.wordpress.org/plugins/total-cost-input-for-woocommerce/)
   und [Spanish (Spain)](https://es.wordpress.org/plugins/total-cost-input-for-woocommerce/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/total-cost-input-for-woocommerce)
 * Tags
 * [amount](https://de-ch.wordpress.org/plugins/tags/amount/)[e-commerce](https://de-ch.wordpress.org/plugins/tags/e-commerce/)
   [quantity](https://de-ch.wordpress.org/plugins/tags/quantity/)[total](https://de-ch.wordpress.org/plugins/tags/total/)
   [woocommerce](https://de-ch.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://de-ch.wordpress.org/plugins/total-cost-input-for-woocommerce/advanced/)

## Ratings

 5 von 5 Sternen.

 *  [  2 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/reviews/)

## Contributors

 *   [ ethereumicoio ](https://profiles.wordpress.org/ethereumicoio/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/total-cost-input-for-woocommerce/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://etherscan.io/address/0x476Bb28Bc6D0e9De04dB5E19912C392F9a76535d)