Back to Reports

Shipping Class Name Change Multiplies Base Shipping Cost by 100

open Sep 18, 2025 PluginWoocommerce

Summary:

Renaming an existing WooCommerce shipping class causes the base shipping cost (the cost applied to products without a shipping class) to be incorrectly multiplied by a factor of 100. For example, a base cost of 5.83€ becomes 583€. This severe miscalculation forces store owners to deactivate base shipping costs entirely to avoid charging customers an incorrect and exorbitant amount.

The issue is not related to the use of a comma or period as the decimal separator, as the problem persists regardless of the formatting used. The bug report indicates the issue was reproduced with only WooCommerce active, suggesting a core plugin bug in how shipping class data is processed or serialized upon update.

How to Replicate:

  1. Navigate to WooCommerce > Settings > Shipping and create a shipping zone with a flat rate method.
  2. Set a base shipping cost (e.g., 5.83) for the 'No shipping class' option in the flat rate costs.
  3. Create a shipping class (e.g., 'Frachtkosten_122').
  4. Edit the existing shipping class and change its name (e.g., to '122_Frachtkosten').
  5. Save the changes.
  6. Observe that the base shipping cost for products without a class is now incorrectly multiplied by 100 (e.g., from 5.83 to 583).