• How can I get from a custom piece of code the packages types defined by MyParcel?
    I see this:
    array_combine(WCMP_Data::getPackageTypes(), WCMP_Data::getPackageTypesHuman())

    But i’m not sure what to ‘use’ or what namespace to call….

Viewing 1 replies (of 1 total)
  • Beste @darkallman,

    I think you want to use use WCMP_Data; and WCMP_Data::getPackageTypesHuman(). This would return the package types as strings. WCMP_Data::getPackageTypes() would return the corresponding integer, eg: 1 for package, 2 for mailbox, 3 for letter and 4 for digital stamp.

Viewing 1 replies (of 1 total)
  • The topic ‘Get Package Types’ is closed to new replies.