perch_shop_customer_address

Display an address for the logged in customer with perch_shop_customer_address()

Requires

Parameters

Type Description
Integer ID of the address to show
Array Options array, see table below
Boolean Set to true to have the value returned instead of echoed.

Options array

Name Value
template The name of a template to use to display the content.
skip-template True or false. Bypass template processing and return the content in an associative array.
return-html True or false. For use with skip-template. Adds the HTML onto the end of the returned array with key html.
raw True or false. Returns unprocessed content, for use alongside skip-template.

Usage examples

Display the list using the default template. The default template is shop/addresses/address.html.

perch_shop_customer_address()

This function accepts an array of options to control what is returned. It can be used as follows.

perch_shop_customer_address(1234, [
    'template' => 'my-template.html'
]);