The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Weights to 2 decimal places

SimonSimon Member

We currently have our products set up with weights to 2 decimal places. Unfortunately, when a product of say 2.40kg is sold the transaction shows a weight of 2.4kg which is also then fed through to Orderdesk in that format.

The problem for us is that our shipping system needs to have 2 decimal places.

So, is there a way to enforce the 2 decimal places, or actually just respect the weights we are feeding into Foxycart through our products?

Other options are to ask Orderdesk if we can manage this, and worst case is to have to manually/script changes to correct the weight format which is not ideal considering it would involve staff having to manually edit files.

  • fc_adamfc_adam FoxyCart Team

    Good question. We don't currently have a way to enforce the weight to be stored to a certain decimal amount. I have created a ticket for us to look into this though to look at improving it - it is weird to have the weight show as 2.4 there - generally speaking weight would be to at least two decimal places. We'll discuss best ways to improve this amongst the team.

    For now - you'll need to either look at manually editing the files, or you could use the API to get the information you need and output it as required. We'll update this thread as we make any changes to how this works.
  • @fc_adam

    David @ Orderdesk has come back to me and as a result of my question have made a change in production to go to 2 decimal places with the weights.

    So our issue is resolved, but as you say it would be good if the weights within FC were all to 2 decimal places which is what you would normally expect to see.

  • fc_adamfc_adam FoxyCart Team

    Awesome - I'm glad David was able to help you out there!
Sign In or Register to comment.