In a custom module I am generating some JSON to MvCall to a service. The request and response are working perfectly.
I'd like to save that submitted JSON string in the order to a custom order field.
Not getting the results I am expecting. This is what is being saved in the COF:
This is what I am expecting. It's also what I see when doing an MvEval to the page.
The string is currently being saved using the Write_Order() function on the INVC template. That's what is spec'd right now.
I have tried all the encodejavascriptstring/encoding/decoding functions that would make sense in the module and the SMT functions for writing that value to the COF.
Is it possible and/or What am I missing to get the desired result?
Thanks,
Scott
I'd like to save that submitted JSON string in the order to a custom order field.
Not getting the results I am expecting. This is what is being saved in the COF:
{
"quote_id": "f07a71a9-a953-4b41-9a72-56a6d2bc288d",
"source_order_id": "1590",
etc...
"quote_id": "f07a71a9-a953-4b41-9a72-56a6d2bc288d",
"source_order_id": "1590",
etc...
{
"quote_id": "f07a71a9-a953-4b41-9a72-56a6d2bc288d",
"source_order_id": "1590",
etc...
"quote_id": "f07a71a9-a953-4b41-9a72-56a6d2bc288d",
"source_order_id": "1590",
etc...
I have tried all the encodejavascriptstring/encoding/decoding functions that would make sense in the module and the SMT functions for writing that value to the COF.
Is it possible and/or What am I missing to get the desired result?
Thanks,
Scott
Comment