shop - aareano/ifshop-wiki GitHub Wiki
This drop is corresponds to Shopify's.
additional properties
shop.collections
shop.email_accent_color
shop.email_logo_url
shop.email_logo_width
shop.shop
missing properties
none
- shop.address
- shop.collections
- shop.collections_count
- shop.currency
- shop.description
- shop.domain
- shop.email
- shop.email_accent_color
- shop.email_logo_url
- shop.email_logo_width
- shop.enabled_payment_types
- shop.locale
- shop.metafields
- shop.money_format
- shop.money_with_currency_format
- shop.name
- shop.password_message
- shop.permanent_domain
- shop.products_count
- shop.secure_url
- shop.shop
- shop.types
- shop.url
- shop.vendors
shop.address
Retuns the address drop for the shop.
shop.collections
Returns the collections in the shop.
shop.collections_count
Returns the number of collections in the shop.
shop.currency
Returns the shop's currency in three-letter format (ex: USD).
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 payment_type_img_url 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
discover
dankort
forbrugsforeningen
dwolla
bitcoin
dodgecoin
litecoin
shop.metafields
Returns the shop's metafields. Metafields can only be set using the Shopify API .
shop.money_format
Returns a string that is used by Shopify to format money without showing the currency.
shop.money_with_currency_format
Returns a string that is used by Shopify 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 .myshopify.com URL of the shop.
shop.products_count
Returns the number of products in the shop.
shop.shop
Defined for the following events:
- your shop is updated
Returns the shop drop.
This property may seem a bit redundant, but it allows for consistent access to the global shop liquid variables. With this here, you can always access those variables via shop.property_name_here
, like shop.email_logo_url
.
shop.types
Returns an array of all unique product types in the shop.
{% for product_type in shop.types %}
{{ product_type | link_to_type }}
{% endfor %}
shop.url
Returns the full URL of the shop.
Input
{{ shop.url }}
Output
http://johns-apparel.com
shop.secure_url
Returns the full URL of the shop prepended by the https protocol.
Input
{{ shop.secure_url }}
Output
https://johns-apparel.com
shop.vendors
Returns an array of all unique vendors in the 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.