Hello,
I'm trying to use the feature "not_order" to run a post call if the order has a specific value for one of its custom fields. I am unable to find how to call the 'customfld.mvc'.Read_Order to get the value of the custom field. Has anyone had experience trying to read the custom order field or know how i might fix this? Thank you so much :D
(And yes I am trying to build a SMS tracking info module )
I'm trying to use the feature "not_order" to run a post call if the order has a specific value for one of its custom fields. I am unable to find how to call the 'customfld.mvc'.Read_Order to get the value of the custom field. Has anyone had experience trying to read the custom order field or know how i might fix this? Thank you so much :D
(And yes I am trying to build a SMS tracking info module )
Code:
<MvFUNCTION NAME = "Module_Notify_Order_StatusChange" PARAMETERS = "module var, original_status, order var" STANDARDOUTPUTLEVEL = ""> <MvIF EXPR= "{ l.order:status EQ 2 OR l.order:status EQ 200 }"> <MvCOMMENT> <MvDO FILE= "{ [g.Module_Root $ '/modules/util/customfld.mvc'].Read_Order( l.module, l.order:id, 'toggle_sms_tracking', l.smsTracking )}"> </MvCOMMENT> <MvASSIGN NAME = "g.autoAddDebug" VALUE = "{ g.autoAddDebug $ ' SMS: Order Changed to shipped! Order deets: '$ l.order}"> <MvASSIGN NAME = "g.autoAddDebug" VALUE = "{ g.autoAddDebug $ ' SMS: sms Tracking Value: '$ l.smsTracking }"> <MvEXPORT FILE = " MDI_MagicSMS.txt " DELIMITER = "{ l.null }" FIELDS = "g.autoAddDebug"> </MvIF> </MvFUNCTION>
Comment