-
- 241 Posts
Hey all,
got a strange problem. I need to format a number with the commas like so: 123,456
so I changed the price_format custom modifier to do that and put it in assets/plugins/phx/modifiers/price_format.phx.php.
And everything works fine if i apply it in a template or a chunk like so: [*tv:price_format*]. But if i try to apply it in a ditto template [+tv:price_format+] nothing is being returned.
I tried other standard modifiers they work fine like this [+tv:math=`?+1`+]. Also made sure that &phx=`1` is set in the Ditto call.
Just for the test i copied the same code into a snippet phx:price_format and everything worked like it was supposed to.
So it appears that PHx custom modifier stored in a file does not work with Ditto.
Hopefully this will save others some time.