I'm tasked converting quotes into a custom data type, and using Mage_Core_Helper_Data::copyFieldset
was working really well until I had two target properties that had to be set to the same source property. I've tried a couple of different things
<other_thing_convert_quote>
<grand_total>
<to_varien_object>total</to_varien_object>
</grand_total>
<quote_currency_code>
<to_varien_object>currency</to_varien_object>
</quote_currency_code>
<quote_id>
<to_varien_object>refnum</to_varien_object>
<to_varien_object>txn_uuid</to_varien_object>
</quote_id>
</other_thing_convert_quote>
Above is one quote_id
node, multiple to_varien_object
nodes.
<other_thing_convert_quote>
<grand_total>
<to_varien_object>total</to_varien_object>
</grand_total>
<quote_currency_code>
<to_varien_object>currency</to_varien_object>
</quote_currency_code>
<quote_id>
<to_varien_object>refnum</to_varien_object>
</quote_id>
<quote_id>
<to_varien_object>uuid</to_varien_object>
</quote_id>
</other_thing_convert_quote>
Above is multiple quote_id
nodes, each with one to_varien_object
node.
Neither of these approaches successfully apply quote_id
to both refnum
and txn_uuid
.
Looking at the code, I'm not sure if what I'm looking for is even possible, but hopefully I can be proven wrong!
Thanks