وضاحت
WC Preview Calculator is a powerful and flexible calculator plugin for WooCommerce-based sites. It allows you to:
- Create multiple calculators, each with a unique shortcode.
- Set custom deduction fields (label + percentage) for each calculator.
- Choose between reverse (deduction) and additive (markup) modes.
- Toggle whether the calculator should use a manually entered value or the WooCommerce cart subtotal.
- Easily manage calculators and their settings from the WordPress admin.
Perfect for sites that want to show transparent cost breakdowns, such as transaction fees, shipping, or operational margins.
Features
- Supports multiple independent calculators.
- Each calculator has its own shortcode.
- Add/remove deduction fields dynamically in the admin.
- Toggle between reverse (net gross) or additive (gross net) modes.
- Pull WooCommerce cart subtotal (excluding shipping) with a checkbox toggle.
- Fully Elementor-compatible and shortcode-friendly.
License
This plugin is licensed under the GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html
.
انسٽاليشن
- Upload the plugin files to the
/wp-content/plugins/wc-preview-calculatordirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the “Plugins” screen in WordPress.
- Go to Settings > Preview Calculators to configure and create your calculators.
- Use the generated shortcode
[preview_calculation_slug]where you want the calculator to appear.
FAQ
-
Does this plugin work with Elementor?
-
Yes, the calculator works well inside Elementor or any shortcode-compatible area.
-
Can I use the WooCommerce cart subtotal for calculations?
-
Yes. Each calculator has a toggle to allow the user to pull the cart subtotal instead of entering a manual amount.
-
How do I switch between additive and reverse deduction modes?
-
In the admin settings for each calculator, use the checkbox labeled “Additive Mode?” to switch logic modes.
-
What does the shortcode look like?
-
Each calculator will have its own shortcode in the format:
[preview_calculation_slug]. The slug is defined automatically in the admin panel.
جائزا
ھن پلگ ان لاءِ ڪي به رايا ناھن.
تعاون ڪندڙ & ڊولپرز
“Preview Calculator for WooCommerce” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙترجمو ڪريو “Preview Calculator for WooCommerce” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.
لاگ تبدیل ڪريو
1.1.0
- Renamed plugin to WC Preview Calculator.
- Added support for multiple calculators via dynamic shortcodes.
- Added WooCommerce cart subtotal toggle support.
- Switched fields input to dynamic add/remove inputs.
- Fixed subtotal issue when cart is empty or unavailable.
1.0.0
- Initial version: single reverse calculator with custom labels and percentages.