Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Macro OrderCustomData View modes: 
User avatar
Member
Member
ccf@io-dev.com - 7/9/2011 12:10:02 PM
   
Macro OrderCustomData
I have a value inside of the CustomData xml in an order. I need to add a macro inside of an ecommerce invoice. What would be the format to get to a singe value in the custom data xml. I tried {%order.ordercustomdata.GetValue("CustType")%} just to see if I could get the whole data but nothing is ever returned.

User avatar
Member
Member
kentico_edwardh - 7/9/2011 4:13:35 PM
   
RE:Macro OrderCustomData
Hello,

Can you please try using "#" instead of "%" for your macros within your ecommerce invoice.


{#order.ordercustomdata#}


Regards,
Edward Hillard

User avatar
Member
Member
ccf@io-dev.com - 7/11/2011 12:42:13 PM
   
RE:Macro OrderCustomData
I did try that and it didn't work. The order.ordercustomdata is a Kentico data macro not a custom macro. # will not work to resolve it.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/12/2011 5:45:32 AM
   
RE:Macro OrderCustomData
Hi,

in this case the macro could look like the following:

{%order.ordercustomdata.custtype%}

If not, could you please share the code used for creating xml file for ordecustomdata column?

Thank you.

Best regards,
Ivana Tomanickova