The shop object

The shop object has the following attributes:

shop.address

You can add attributes to shop.address to return information about a shop's address.

shop.address.city

Returns the city in the shop's address:

Ottawa

shop.address.company

Returns the legal name of the company in the shop's address.

shop.address.country

Returns the country in the shop's address:

Canada

shop.address.country_upper

Returns the country in the shop's address using uppercase letters:

CANADA

The result is identical to using the upcase filter on shop.address.country.

shop.address.province

Returns the state or province in the shop's address:

Ontario

shop.address.province_code

Returns an abbreviated form of the state or province in the shop's address:

ON

shop.address.street

Returns the shop's street address:

150 Elgin Street

shop.address.summary

Returns a summary of the shop's address:

150 Elgin Street, Ottawa, Ontario, Canada

The summary takes the form street, city, state/province, country.

shop.address.zip

Returns the ZIP or postal code in the shop's address:

K2P 1L4

shop.checkout.guest_login

Returns true if customer accounts are optional for completing a checkout and there is a ?checkout_url parameter in the URL. Otherwise, returns false.

A checkout_url parameter is created when a visitor comes to the account login page from a link at checkout.

shop.collections_count

Returns the number of collections in a shop.

shop.currency