mirror of
https://github.com/kemko/liquid.git
synced 2026-01-03 08:45:42 +03:00
1.6 KiB
1.6 KiB
layout, title, nav
| layout | title | nav | ||
|---|---|---|---|---|
| default | shipping_method |
|
shipping_method
The shipping_method object has the following attributes:
{% anchor_link "shipping_method.handle", "shipping_method-handle" %}
Returns the handle of the shipping method. The price of the shipping rate is appended to the end of the handle.
Input
{% highlight html %}{% raw %}
{{ shipping_method.handle }}
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
shopify-international-shipping-25.00
{% endraw %}{% endhighlight %}
{% anchor_link "shipping_method.price", "shipping_method-price" %}
Returns the price of the shipping method. Use a money filter to return the value in a monetary format.
Input
{% highlight html %}{% raw %}
{{ shipping_method.price | money }}
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
$15
{% endraw %}{% endhighlight %}
{% anchor_link "shipping_method.title", "shipping_method-title" %}
Returns the title of the shipping method.
Input
{% highlight html %}{% raw %}
{{ shipping_method.title }}
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
International Shipping
{% endraw %}{% endhighlight %}