Display LISE categories hierarchy position without leading zeroes
Posted: Wed Feb 14, 2024 2:27 pm
I know i can display LISE categories hierarchy position with {$category->hierarchy}, but how do i remove the leading zeroes like 00001.00016 => 1.16?
I can use |ltrim:'0' on the first part but what about the second part after the decimal point?
I can use |ltrim:'0' on the first part but what about the second part after the decimal point?