Jump to content

Edit History

Ali Samie

Ali Samie

Hi. This is not a question. I have found a workaround already and just wanted to share with community.

Imagine in a custom module you want to get list of address form fields and do some process. This would work fine in your module:

$fields = AddressFormat::getOrderedAddressFields(
	$this->context->country->id,
	true,
	true
);

If you know a better way just let me know. Thanks

Ali Samie

Ali Samie

Hi. This is not a question. I have found a workaround already and just wanted to share with community.

Imagine in a custom module you want to get list of address form fields and do some process. This would work fine in your module:

    public function hookActionCheckoutRender()
    {
        $fields = AddressFormat::getOrderedAddressFields(
            $this->context->country->id,
            true,
            true
        );
    }

If you know a better way just let me know. Thanks

×
×
  • Create New...