Shipping Fee Becomes a Single Digit
-
The shipping fee becomes a single digit when performing the following steps:
- Enter “3000” as the shipping fee and save. No issue occurs.
- Open the shipping fee settings again, make no changes, and save.
- On checkout, the shipping fee is displayed as “3” instead of “3000.”
In WooCommerce with shipping classes, the value of the shipping class is reduced to a single digit.
In WooCommerce without shipping classes, the shipping fee itself is reduced to a single digit.To verify this issue, I disabled all plugins except “Amazon Pay,” “Stripe,” and “Subscriptions.”
-
Hi there!
Thank you for the details!
I’ve followed the steps you provided, but I wasn’t able to replicate the issue on my site. To help pinpoint the issue, could you please confirm which shipping method you are using (e.g., Flat Rate, Free Shipping, or Local Pickup) when setting the cost? Additionally, could you share a screenshot of where you’re adding the shipping fee and also the Currency options you have set on your site? You can find the currency settings by going to WooCommerce → Settings → General.For taking the screenshots, you can use this tool: https://snipboard.io.
Thank youThank you for investigating the issue with WooCommerce.
I am experiencing a problem where the shipping fee displays as a single digit across all my WooCommerce setups.
The WooCommerce themes I am using are “Storefront” and “Kiosko”.
My currency setting is “Japanese yen”.
However, even if I change the language to “United States” and the currency to “United States (USD)”, the shipping fee still becomes a single digit.Cause of the Issue:I have identified that the issue is caused by the comma in the shipping fee (Thousand Separator).Steps to Reproduce:
- In the WooCommerce settings, set the “Thousand Separator” to a comma (“,”).
- Enter “3000” as the shipping fee and save.
- Open the shipping settings again, and the fee is displayed as “3,000” with a comma. Without making any changes, save the settings.
- On the cart page, the shipping fee is displayed as “3” instead of “3000”.
If the “Thousand Separator” field is left blank in the settings, the issue of the shipping fee displaying as a single digit does not occur.
Verification Environment:
I tested this issue on:
- Two different web servers
- Local Docker environment
-
This reply was modified 3 months ago by
yuuuuka.
Hello yuuuuka,
Thank you for your reply.
I understand you found that using a comma as the thousand separator in the shipping fee causes it to display incorrectly on the cart page.
Could you share screenshots of shipping settings and your site’s System Status Report?
That will help in replicating the issue.Looking forward to your response. 🙂
Hello Zubair Zahid
Thank you for your reply.
I have prepared screenshots and the system status of one of the WooCommerce stores I manage on Google Drive.
Screenshot of the WooCommerce “Thousand Separator” settings:
https://drive.google.com/file/d/1G7yXl3NBcJNl18L54Rh2fgFDago6tViY/view?usp=drive_linkScreenshot of the shipping fee settings:
https://drive.google.com/open?id=1xpzJ5QaPBXfmvFSjINmUEU4Y2utomS7f&usp=drive_copyScreenshot of the shipping settings when reopened, showing the shipping fee with a comma as a thousand separator:
https://drive.google.com/file/d/1cqBslv94tNAh79xPRT7FIkT-z7AL8I4Y/view?usp=drive_linkScreenshot of the WooCommerce cart, where the shipping fee is displayed as a single digit:
https://drive.google.com/file/d/1SL6lFtAihMRXZfTsHia9LL0gm6yeoLLu/view?usp=drive_linkHere is the system status file:
https://docs.google.com/document/d/1T2ygwSStuppSwdaHomG1MQ9d6dKmtPrNsVOXq0vGbFw/edit?usp=drive_linkSorry if I’m not very good at reporting issues.
Hello yuuuuka,
Thank you for more sharing details.
I tried to replicate the issue on my test site but I cannot see the issue.
I followed the same steps you described in the first message.Below are the screenshots:
It is good to hear that you have a local server set up.
Could you create a new WordPress and set up WooCommerce?
Then check if this issue can be reproduced.I suspect this problem could be due to a misconfiguration or conflict on your current site.
Let me know about the results.Best regards.
Hello Zubair Zahid
Thank you for providing the video.
I’ve also prepared a video to show the issue I’m experiencing.- Setting the shipping fee:
https://drive.google.com/file/d/1qbtZ8D5C_ibEnkNcjsQ6BRIxbIgDAuuL/view?usp=sharing - The shipping fee is displayed correctly:
https://drive.google.com/file/d/1ikeY5JYJjWwZbcog5BO9jS1-SIV6k6Ln/view?usp=drive_link - Reopen the shipping settings:
The shipping fee appears with a comma as the thousand separator. Without making any changes, simply save the settings. (Please just save it without making any changes.)
https://drive.google.com/file/d/1UYaRLr27QuUo2Op0suTfltsIYUAVnKkl/view?usp=drive_link - Reload the browser:
The shipping fee in the cart is now displayed as a single digit.
https://drive.google.com/file/d/1lC4SfulOFqUt5NyEBLj0gAeqbj9KAx3B/view?usp=drive_link
The theme I’m using is “Kiosko”, but the same issue occurs with the “Storefront” theme.
I also tested this with all plugins disabled except WooCommerce, and the issue still occurs.Hi there!
Thank you for sharing the video. I have tried to replicate the issue on my site, and I can confirm that the Flat Rate appears as Free if I resave the Flat Rate settings without making any changes. It seems like a bug. We have to rewrite the value as 3000 every time we open the Shipping Rates settings.
I also found that another user reported a similar bug where the Free Shipping method breaks the minimum amount when the decimal separator is set as a comma. However, in our case, we are using a thousand separator as a comma, and a similar issue is occurring for Flat Rate shipping. Also, issue disappear if we resave the price as 3000.
I have created a new bug report here: https://github.com/woocommerce/woocommerce/issues/55526. I suggest adding your comment to this thread so our developers can look into it.
In the meantime, I would suggest rewriting the price every time you edit the Flat Rate settings.Hello shahzeen
Thank you for assisting with the WooCommerce investigation.
As you suggested, the bug can be avoided by entering the price each time the shipping settings are opened.
Additionally, leaving the “Thousand Separator” field blank also prevents the bug from occurring.
I appreciate the support from your team and the WooCommerce development team.
Hi there!
You’re very welcome! I’m glad we could find a workaround for the issue.
Since the bug can be avoided using the steps you mentioned, I’ll go ahead and mark this ticket as closed. I also recommend keeping an eye on the bug report link I shared, as any updates or fixes will be posted there in future releases.
If you need any further assistance, feel free to reach out. Have a great day!
Hi there,
If you have a few minutes, we’d love if you could leave us a review: https://wordpress.org/support/plugin/woocommerce/reviews/
Hi there,
If you have a few minutes, we’d love if you could leave us a review: https://wordpress.org/support/plugin/woocommerce/reviews/
- You must be logged in to reply to this topic.