The policy object

A policy represents an individual policy of the shop.policies object.

An individual policy can also be referenced directly on the shop object. For example shop.privacy_policy.

The policy object has the following attributes:

policy.body

Returns the content of the policy.

Input

{% assign policy = shop.privacy_policy %}

{{ policy.body }}

Output

<h2>PRIVACY STATEMENT</h2>

<h3>SECTION 1 - WHAT DO WE DO WITH YOUR INFORMATION?</h3>

<p>When you purchase something from our store...</p>

Referencing just the policy object will also return the policy's content.

Example

{{ shop.privacy_policy }}

policy.title

Returns the title of the policy.

Input

{% for policy in shop.policies %}
  {{ policy.title }}
{% endfor %}

Output

Privacy policy
Refund policy
Shipping policy
Terms of service

policy.url

Returns the relative URL of the policy.

Input

{% for policy in shop.policies %}
  {{ policy.url }}
{% endfor %}

Output

/policies/privacy-policy
/policies/refund-policy
/policies/shipping-policy
/policies/terms-of-service

Ready to start selling with Shopify?

Try it free