Website Building » WooCommerce » How Do I Add a Unit in WooCommerce?

How Do I Add a Unit in WooCommerce?

Last updated on October 1, 2022 @ 11:24 pm

Adding a unit in WooCommerce is simple and straightforward. There are two methods to do this: via the WooCommerce Settings page or by using a shortcode.

Via the WooCommerce Settings Page

1. Log in to your WordPress Dashboard and go to WooCommerce > Settings. 2. Select the Products tab from the top menu. 3. Select the Units tab from the left-hand menu.

4. Select the Add Unit button. 5. Enter the unit name, abbreviation, and choose the weight and dimension units from the drop-down menus. 6. Save changes.

Via Shortcode

1. Log in to your WordPress Dashboard and go to Pages > Add New. Enter a title for your page, and then click on the shortcode button in the content editor toolbar.

3. Enter the following shortcode: [woocommerce_add_unit name=”Unit Name” abbr=”Unit Abbreviation” weight_unit=”Weight Unit” dimension_unit=”Dimension Unit”] 4.

Conclusion: How Do I Add a Unit in WooCommerce?

Adding a unit in WooCommerce is simple and straightforward, and can be done via the WooCommerce Settings page or by using a shortcode. To add a unit via the WooCommerce Settings page, log in to your WordPress Dashboard and go to WooCommerce > Settings > Products > Units > Add Unit.

PRO TIP: If you are not careful, adding a unit in WooCommerce can break your site. Make sure you backup your site before proceeding.

Enter the unit name, abbreviation, and choose the weight and dimension units from the drop-down menus, then save changes. To add a unit via shortcode, log in to your WordPress Dashboard and go to Pages > Add New, enter a title for your page, then click on the shortcode button in the content editor toolbar and enter the following shortcode: [woocommerce_add_unit name=”Unit Name” abbr=”Unit Abbreviation” weight_unit=”Weight Unit” dimension_unit=”Dimension Unit”] save changes.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.