{"id":18870315,"date":"2026-04-02T14:19:18","date_gmt":"2026-04-02T14:19:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/distance-unit-rate-field-saves-1500-as-2-pro-user\/"},"modified":"2026-04-02T14:19:18","modified_gmt":"2026-04-02T14:19:18","slug":"distance-unit-rate-field-saves-1500-as-2-pro-user","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/distance-unit-rate-field-saves-1500-as-2-pro-user\/","title":{"rendered":"Distance Unit Rate field saves 1500 as 2 (Pro user)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019m using the <strong>PRO version of Shipping Zones by Drawing for WooCommerce<\/strong>, and I\u2019m having an issue with the <strong>Distance Unit Rate<\/strong> field.Problem<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I need to set the delivery rate to <strong>1500 per kilometer<\/strong>, but the field does not save the value correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When I enter:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>1500<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">or<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>1.500<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">the plugin seems to automatically interpret it incorrectly and ends up converting it to <strong>2<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It looks like the field is treating the value as a decimal number (for example <code>1.500<\/code> \u2192 <code>1.5<\/code>) and then rounding it, instead of saving it as <strong>1500<\/strong>.Expected behavior<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If I enter a value of <strong>1500<\/strong>, the plugin should save it as <strong>1500<\/strong> and calculate the shipping cost accordingly.Actual behavior<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The field forces or reformats the value in a way that results in the saved rate becoming <strong>2<\/strong>, which makes the distance-based shipping calculation unusable.What I already tried<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tested multiple formats, including:<\/p>\n\n\n\n<ul>\n<li><code>1500<\/code><\/li>\n\n\n\n<li><code>1500.00<\/code><\/li>\n\n\n\n<li><code>1500,00<\/code><\/li>\n\n\n\n<li><code>1.500<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">but none of them work correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-18870315","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18870315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18870315\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18870315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}