A
A
Artem Fedorov2020-09-26 12:22:57
WooCommerce
Artem Fedorov, 2020-09-26 12:22:57

How to remove zeros after comma in Woocommerce attribute?

It so happened that in the price list that was exported from another CMS (Ucoz, his mother) the Weight attribute was exported approximately in the following format Weight: 25.0000, can this value be somehow cut to decimal: 25.0 or 26.2, and not 25.0000 or 26.200. I saw such a hook for the price of a product, but how to do it for attributes?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question