The RNEPO class can be used to extract fields from an order it has these methods:
GetFieldsByOrder
GetFieldsByOrder($OrderId)
Parameters
OrderId: The id of the order
Return
An array of IntegrationFields
Example
RNEPO::GetFieldsByOrder(12)
//Returns an array of all the fields of the order 12
GetFieldsByItemId
public static function GetFieldsByItemId($orderId,$itemId)
Parameters
OrderId: The id of the field
ItemId: The id of the item inside the order
Returns
The IntegrationField or null if not found
GetFieldByName
public static function GetFieldByName($orderId,$fieldName,$lineItemId='')
Parameters
OrderId: The id of the order
FieldName: The name of the file
LineItemId: (Optional) the id of the line inside the order, if not specified the class will return the first occurrence of the field within the order
Return
An IntegrationField or null
20
NOV
2020
NOV
2020
About the Author:
Im programmer working for an international company. I have programmed since i was 12 and i have done it professionally for 6 years. Programming for a company is fun and i have learned a lot of things but i have always been interested in running my own business so i decided to give it a shot doing what i do best, programming stuffs.