shop
The shop
object has the following attributes:
In this article
- shop.address
- shop.collections_count
- shop.currency
- shop.description
- shop.domain
- shop.email
- shop.enabled_payment_types
- shop.metafields
- shop.money_format
- shop.money_with_currency_format
- shop.name
- shop.password_message
- shop.permanent_domain
- shop.products_count
- shop.types
- shop.url
- shop.secure_url
- shop.vendors
- shop.locale
shop.address
You can add attributes to shop.address
to return information about a shop's address.
shop.address.summary
Returns a summary of the shop's address:
56 Vân côi, Phường 7, Quận Tân Bình, Tp. Hồ Chí Minh
shop.address.street
Returns the shop's street address:
56 Vân côi
shop.address.city
Returns the city in the shop's address:
Hồ Chí Minh
shop.address.province
Returns the state or province in the shop's address:
Hồ Chí Minh
shop.address.province_code
Returns an abbreviated form of the state or province in the shop's address:
ON
shop.address.country
Returns the country in the shop's address:
Vietnam
shop.address.country_upper
Returns the country in the shop's address using uppercase letters:
VIETNAM
The result is identical to using the upcase filter on shop.address.country
.
shop.address.zip
Returns the ZIP or postal code in the shop's address:
K2P 1L4
shop.collections_count
Returns the number of collections in a shop.
shop.currency
Returns the shop's currency in three-letter format (ex: VNĐ).
shop.description
Returns the description of the shop.
shop.domain
Returns the primary domain of the shop.
shop.email
Returns the shop's email address.
shop.enabled_payment_types
Returns an array of accepted credit cards for the shop. Use the filter to link to the SVG image file of the credit card.
The available values for this array are:
- visa
- master
- american_express
- paypal
- jcb
- diners_club
- maestro
- google_wallet
- discover
- solo
- switch
- laser
- dankort
- forbrugsforeningen
- dwolla
- bitcoin
shop.metafields
Returns the shop's metafields. Metafields can only be set using the Haravan API .
shop.money_format
Returns a string that is used by Haravan to format money without showing the currency.
shop.money_with_currency_format
Returns a string that is used by Haravan to format money while also displaying the currency.
shop.name
Returns the shop's name.
shop.password_message
Returns the shop's password page message.
shop.permanent_domain
Returns the .myharavan.com URL of a shop.
shop.products_count
Returns the number of products in a shop.
shop.types
Returns an array of all unique product types in a shop.
{% for product_type in shop.types %}
{{ product_type | link_to_type }}
{% endfor %}
shop.url
Returns the full URL of a shop.
Input
{{ shop.url }}
Output
http://defaulttheme-theme.myharavan.com/
shop.secure_url
Returns the full URL of a shop prepended by the https
protocol.
Input
{{ shop.secure_url }}
Output
http://defaulttheme-theme.myharavan.com/
shop.vendors
Returns an array of all unique vendors in a shop.
{% for product_vendor in shop.vendors %}
{{ product_vendor | link_to_vendor }}
{% endfor %}
shop.locale
Returns the locale that the shop is currently displayed in (ex: en, fr, pt-BR). See the documentation on theme translations for more details on this feature.