Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.12 KB

readme.md

File metadata and controls

23 lines (17 loc) · 1.12 KB

Margin Calculator Widget for WordPress

Free margin calculator using the margin formula ((R - C) / R) × 100 to help businesses quickly calculate both margin and markup percentages based on cost and sale price.

Margin Calculator Input Form

Installation

  1. Download the ZIP file of this repository.
  2. Upload the /margin-calculator-master/ folder to the /wp-content/plugins/ directory.
  3. Activate the Margin Calculator plugin through the "Plugins" menu in WordPress.

Usage

  • Add the shortcode [ci_margin_calculator] to your page, post or sidebar.
  • Or add the following code: <?php display_ci_margin_calculator(); ?> to your template where you would like the Margin Calculator to appear.

Libraries in Use

  1. https://mathjs.org/
  2. https://katex.org/
  3. https://github.com/aFarkas/lazysizes
  4. https://github.com/RobinHerbots/Inputmask
  5. https://air-datepicker.com/
  6. https://www.chartjs.org/