Skip to content

Shipping methods tag ​

Get the available shipping methods

(Added in v3.0.0)

Due to the integration of the shipping module we are also making the shipping methods available via a template tag.

Without a shipping add-on there is one option, the shipping of the Store itself. With Ship orders off (and no add-on that offers a method, e.g. Store Pickup) there are none and the tag outputs nothing.

The tag ​

{exp:reinos_store:shipping_methods}...{/exp:reinos_store:shipping_methods}

Tag Parameters ​

Below are the Tag Parameters. Those parameters can be used in the tag described above

prefix ​

The prefix of the variables, including the colon. The default is shipping_methods:.

prefix="shipping_methods:"

Tag Variables ​

{exp:reinos_store:shipping_methods}
    {shipping_methods:name}
    {shipping_methods:title}
    {shipping_methods:selected}
    {shipping_methods:price}
    {shipping_methods:price:formatted}
    {shipping_methods:price_plus_tax}
    {shipping_methods:price_plus_tax:formatted}
{/exp:reinos_store:shipping_methods}

Example ​

You can use it as following in your checkout tag, just as the example template. The checkout reads the chosen method from the field shipping_method.

{exp:reinos_store:shipping_methods}
    <div class="border rounded p-4 flex items-center gap-x-4">
        <input {if shipping_methods:selected}checked{/if} id="{shipping_methods:name}" type="radio" name='shipping_method' value='{shipping_methods:name}' />
        <label for="{shipping_methods:name}">{shipping_methods:title}</label>
    </div>
{/exp:reinos_store:shipping_methods}