Using a decimal separator other than dot may cause shipping data not to be synced #2470
Labels
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
type: bug
The issue is a confirmed bug.
Describe the bug:
If the decimal separator in WooCommerce core currency options is not
.
and shipping data is obtained from WooCommerce core, the shipping data may not be synced to Google Merchant Center.This issue occurs in all relevant fields:
Steps to reproduce:
,
.999,99
Expected behavior:
The shipping costs should be parsed according to the currency options set in the WooCommerce core and synced correctly to Google Merchant Center.
Actual behavior:
The shipping costs may not be parsed and omitted to sync to Google Merchant Center when the decimal separator in WooCommerce core currency options is not using
.
.Additional details:
How WooCommerce core handles amount formatting: https://github.com/woocommerce/woocommerce/blob/9.0.2/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php#L108-L115
The text was updated successfully, but these errors were encountered: