Price per Unit PRO
What is it about?
Paid version features
Recalculation per different weight or number
Sometimes you may want to use different unit or weight than specified on shipping tab.
This is handy for several cases:
You want to sell pack of t-shirts and you want to show price for one piece.
You are selling food in some package and you want to show price per net weight yet you need to keep the gross weight for shipping purposes.
There is many scenarios for this option and it is just up to your need or imagination to use it to your benefit.
Full variable products support
Recalculated variation price is displayed under normal price after variation is selected.
Recalculation per different weight unit
This is useful when your shop has a specific weight unit – let’s say kilograms and you want to show the the calculation for different unit – this time it’s gram. This feature works acros all the WooCommerce default units (kg,g,oz,lb).
Supported also in Cart
Recalculated price is now shown also on Cart page. If your theme supports Minicart it should be also visible there – this depends on themes developers.
Custom ratio - recalculation per different units number
Normally the recalculation works per one unit – if I have shop in kilograms it calculates price for 1 kg. This feature can help you if you need to show the price for different number of kilograms – perhaps per a ton(if you are selling wholesale) or maybe just per 100 grams.
Video introduction
Pick your version
Single e-shop
Small busines
Developer
Extended compatibility for plug-ins
Create beautiful, responsive WooCommerce product table layout with ease!
Since plugin version
2.1.0
Increase conversions through dynamic discounts and price rules, and build powerful and targeted offers.
FAQ
After the purchase you will receive e-mail with your account information – it’s subject is Your MechComp account has been created!. With the username and password from the e-mail you will go to https://mechcomp.cz/my-account/ and login with the credentials.
In the Downloads section you will find the plug-in file. Download it to some location where you can easily find it.
In the section My licences you will find the licence key for the plug-in. Copy this key with CTRL+V. Both of those information can also be found in the e-mail with subject Your MechComp order is now complete.
In the next step you need to go into section Plugins -> Add new in the site where you want to install the plug-in. There click on Upload plugin.
Browse for the file downloaded earlier and click Install now.
After the installation and activation of the plug-in find it in the Plugins section and there you should see that the plugin licence is not activated and button Activate licence. Click it and this will take you to general settings of the plug-in.
Paste the licence key into the field Licence key and click Activate. And now your plug-in should be fully functional.
Whenever there is a new plugin update, you need to perform update task manually.
First step is to make sure that you have the setting Delete settings on uninstall unchecked. The plugin will be uninstalled during the process and if you have it checked you will lose all your plugin settings including product settings regarding Sell by Weight. You will find the setting under general settings of the plugin.
Then you have to disable the plugin.
Then you will delete the plugin.
Afterwards you will continue same way as if you’re installing the plugin for the first time.
In the next step you need to go into section Plugins -> Add new in the site where you want to install the plug-in. There click on Upload plugin.
Browse for the file downloaded earlier and click Install now.
After the installation just activate the plugin again.
Within 14 days from the purchase, you can get a money return on your first purchase of the plugin. The only thing needed from you is to deactivate the licence first. Then send an e-mail to [email protected] and I will do a money return for you. This is a limited offer on the first purchase of the plug-in.
Go to General settings of the plugin – WooCommerce -> Settings -> Products -> Price per Unit PRO under Licence key is button Deactivate. Press the button and wait for the message about successful deactivation.
If the additional row is too big or too small you can try to check the setting New row different styling in general settings of the plugin.
This setting adds the following code to the page:
.woocommerce .product .price .mcmp_recalc_price_row, .woocommerce .product .price .mcmp_recalc_price_row .amount{
font-size: 0.9em !important;
font-style: italic;
}
If the look still doesn’t suits your needs you can copy this code, change it as you wish and add it to your site.
If you’re not familiar with CSS and entering it into the system I can recommend plug-in Simple Custom CSS and JS which can make it easier for you.
Changelog
26.3.2024
– New feature – Ability to change Shop page behavior in Quick and Bulk editor
– New feature – Ability to change Single product behavior in Quick and Bulk editor
– Change – compatibility with WooCommerce 8.7.0
– Change – compatibility with WordPress 6.4.3
20.11.2023
– New feature – New Updates system – it is now possible to get updates directly in the backend of your site
– Change – compatibility with WooCommerce 8.3.1
– Change – compatibility with WordPress 6.4.1
9.10.2023
– New feature – WooCommerce HPOS compatibility
– Change – compatibility with WooCommerce 8.1.1
– Change – compatibility with WordPress 6.3.1
9.10.2023
– New feature – Compatibility with B2BKing wholesale plugin
– New feature – option for displaying PPU price on Order review (by default turned off)
– Improvement – better support for single product page behavior
– Improvement – added two new units – bottle, set
9.10.2023
– New feature – Compatibility with B2BKing wholesale plugin
– New feature – option for displaying PPU price on Order review (by default turned off)
– Improvement – better support for single product page behavior
– Improvement – added two new units – bottle, set
3.1.2023
– New feature – YITH WooCommerce Dynamic Pricing and Discounts – Display PPU price in quantity tables
– Improvement – new approach to database upgrades
– Change – code refactoring
– Change – compatibility with WooCommerce 7.2.2
– Change – compatibility with WordPress 6.1.1
15.8.2022
– Bug-fix – When Decimal separator is set to different value than “.” in some cases PPU prices are incorrect.
– Improvement – added Slovak translation – thanks to Peter Šuranský
14.6.2022
– Improvement – Improved performance on variable products.
– Improvement – New filter with ability to hide all fronted elements programmatically – mcmp_ppu_process_front_end
– Improvement – Better compatibility with plugin YITH WooCommerce Dynamic Pricing and Discounts
– Change – hooks for processing price are loaded on after_setup_theme hook
– Change – added CSS class mcmp_recalc_price
– Change – compatibility with WooCommerce 6.5.1
– Change – compatibility with WordPress 6.0.0
14.6.2022
– Improvement – Improved performance on variable products.
– Improvement – New filter with ability to hide all fronted elements programmatically – mcmp_ppu_process_front_end
– Improvement – Better compatibility with plugin YITH WooCommerce Dynamic Pricing and Discounts
– Change – hooks for processing price are loaded on after_setup_theme hook
– Change – added CSS class mcmp_recalc_price
– Change – compatibility with WooCommerce 6.5.1
– Change – compatibility with WordPress 6.0.0
24.2.2022
– Bug-fix – Critical error with YITH WooCommerce Dynamic Pricing and Discounts version 3.0.0 – quick fix – removal of version 3 compatibility
7.1.2022
– New feature – Added support for Plug-in MyIntegrator – MYOB Exo
– Improvement – speed optimization for variable products
– Change – compatibility with WooCommerce 6.0.0
– Bug-fix – few small bug fixes
7.1.2022
– New feature – Added support for Plug-in MyIntegrator – MYOB Exo
– Improvement – speed optimization for variable products
– Change – compatibility with WooCommerce 6.0.0
– Bug-fix – few small bug fixes
1.7.2021
– Improvement – Possible to display General suffix text on selected variations
– Improvement – added Spanish translation – thanks to Noé Moreno
– Improvement – added French translation – thanks to Philrom Kolipré and vermander
26.4.2021
– Bug-fix – YITH WooCommerce Dynamic Pricing and Discounts – PPU prices discount was doubled in new version of YITH plugin.
– Bug-fix – Custom units check against non-numeric values.
– Bug-fix – jQuery functions update.
9.3.2021
– Improvement – Improved RTL languages support
– Improvement – Better WPML support – custom units and suffixes are registered as WPML strings
– Improvement – Performance optimization for variable products.
– Bug-fix – Prefix separated from the text, disappeared.
25.1.2021
– New feature – Added support for YITH WooCommerce Dynamic Pricing and Discounts
– New feature – Variable products – corresponding PPU prices. When this plugin calculates PPU prices for variable products it displays them from lowest to highest. With the new setting you will be able to display the recalculated prices in accord with the prices for the displayed variation.
– Change – WooCommerce stopped showing sale prices in Cart. Price per Unit plugin stopped doing so too. However, there is a checkbox, which allows you to display the PPU price exactly as it did before.
– Improvement – added Italian translation – thanks to Lorenzo Rota Sperti for his quick and dedicated work.
– Bug-fix – there was a bug in last version which caused a critical error in the frontend, when the licence wasn’t entered. This version fixed the bug.
25.1.2021
– New feature – Added support for YITH WooCommerce Dynamic Pricing and Discounts
– New feature – Variable products – corresponding PPU prices. When this plugin calculates PPU prices for variable products it displays them from lowest to highest. With the new setting you will be able to display the recalculated prices in accord with the prices for the displayed variation.
– Change – WooCommerce stopped showing sale prices in Cart. Price per Unit plugin stopped doing so too. However, there is a checkbox, which allows you to display the PPU price exactly as it did before.
– Improvement – added Italian translation – thanks to Lorenzo Rota Sperti for his quick and dedicated work.
– Bug-fix – there was a bug in last version which caused a critical error in the frontend, when the licence wasn’t entered. This version fixed the bug.
12.1.2021
– New feature – Added support for WooCommerce Product Table Version PRO 2.1.0 and newer
– New feature – Possibility to change PPU elements basic CSS classes.
– Bug-fix – Disabled creating general additional texts on empty prices.
12.1.2021
– New feature – Added support for WooCommerce Product Table Version PRO 2.1.0 and newer
– New feature – Possibility to change PPU elements basic CSS classes.
– Bug-fix – Disabled creating general additional texts on empty prices.
13.11.2020
– New feature – Experimental – Sorting of products by Price per Unit on front-end. Product without price per unit are treated as if PPU price is equal to zero.
– New feature – Price per Unit can be displayed on order detail in back-end. Warning – this price will change in old orders if you change used weight or units.
– Improvement – Variable product’s recalculation for selected variations can also replace the original price.
– Bug-fix – Variable products with flat price in WooCommerce don’t display price on selected variant. Price per Unit now doesn’t display in this case neither.
13.11.2020
– New feature – Experimental – Sorting of products by Price per Unit on front-end. Product without price per unit are treated as if PPU price is equal to zero.
– New feature – Price per Unit can be displayed on order detail in back-end. Warning – this price will change in old orders if you change used weight or units.
– Improvement – Variable product’s recalculation for selected variations can also replace the original price.
– Bug-fix – Variable products with flat price in WooCommerce don’t display price on selected variant. Price per Unit now doesn’t display in this case neither.
– New feature – Experimental – Price per unit prices are now saved in the meta for later use. Meta names: _mcmp_ppu_price, _mcmp_ppu_price_text.
– New feature – Columns in products list on back-end displaying new meta.
– Bug-fix – price per unit with tax in cart can be displayed improperly in some cases.
– New feature – Experimental – Price per unit prices are now saved in the meta for later use. Meta names: _mcmp_ppu_price, _mcmp_ppu_price_text.
– New feature – Columns in products list on back-end displaying new meta.
– Bug-fix – price per unit with tax in cart can be displayed improperly in some cases.
– New feature – New approach to custom units – now you can use custom units which will cooperate with automatic text
– New feature – Modified units are now displayed on product detail – general settings – Display modified units info on product details
– Improvement – Extended internationalization through PO files (can be managed through Loco translate)– Bug-fix – Improper price display with taxes
– New feature – New approach to custom units – now you can use custom units which will cooperate with automatic text
– New feature – Modified units are now displayed on product detail – general settings – Display modified units info on product details
– Improvement – Extended internationalization through PO files (can be managed through Loco translate)– Bug-fix – Improper price display with taxes
7.5.2020
– New feature– Added option to replace price with recalculated in Cart – located in General options – Cart page behavior
– Bug-fix – “Variations – prefix for variable price” not visible for replaced row
– Improvement– WooCommerce 4.1.0 compatibility check
25.3.2020
– New feature– Added option to trim recalculated prices instead of rounding
– New feature– Added recalculated price prefix
– Improvement– Security hardening – complete revision of the code to comply with the latest WordPress security recommendations
6 Comments
Leave a Reply
You must be logged in to post a comment.
Hi Martin,
Is there a way to show the actual unit of the product as well next to the unit price per pro. I.e.:
Unit: 2l
Price per unit: 2$/l
Thanks for your reply.
The information you’re looking for is on “Additional information” tab. The setting responsible for displaying this info is “Display modified units info on product details”. After unchecking this, the information will disappear.
Hi.
I would like to change domain and use my live domain. How do I do that?
Hi,
it’s easy – to use the licence on some other domain you need to deactivate the licence on the first domain, then you can use it on another.
The instruction how to deactivate the licence is the same as in here https://mechcomp.cz/price-per-unit-pro/#faq-money-return
Hi Martin,
I’m setting up your plugin but I find it kind of difficult to set it up properly. Is there a tutorial or examples with how to set it up in the backend ?
Also I’m updating my products by uploading a csv file into woocommerce every now and then with the updated products list. I cannot however find where the extra information from your plugin is in the woocommerce csv file I download from the website. Thanks
Hi Gabriel,
in here you can find examples with pictures of how to set up the products. Hope this helps.
As of now the plugin calculates the price per unit only when the product is displayed and it’s not saved anywhere – so you can’t get it in your export. But I’m working on a version which will have this feature implemented.
If you have any question don’t hesitate to ask. But I prefer to do this over the e-mail, which is on the bottom of the page.