I need to change dot to comma on product price when I export using dataflown advanced profile. I tried this way:
...
<action type="dataflow/convert_parser_csv" method="parse">
<var name="delimiter"><![CDATA[;]]></var>
<var name="enclose"><![CDATA["]]></var>
<var name="fieldnames">true</var>
<var name="store"><![CDATA[0]]></var>
<var name="decimal_separator"><![CDATA[,]]></var>
<var name="adapter">catalog/convert_adapter_product</var>
<var name="method">parse</var>
</action>
...
But this not work, how I can do this only for this profile? I'm trying to do this programming, copying from core to local, but without success.
Thank you!
Best Answer
You can't just add arbitrary attributes in the XML declaration; there has to be PHP which processes them. You need to rewrite the
Mage_Dataflow_Model_Convert_Parser_Csv::getCsvString()
method to evaluate it. The core method looks like this: