Field::getId()

Version 3.8

Technical id of the field

Return the technical id of the field.

Return value

Int

Full documentation

Show technical id, name and value of the fields:

foreach ( $Order->getFields() as $Field ){
   $lines[] = "{$Field->getId()} {$Field->getName()}: {$Field->getValue()}";
}