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 the shipping module, there is always one option.

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

class=":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

{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_type' value='{shipping_methods:name}' />
        <label for="{shipping_methods:name}">{shipping_methods:title}</label>
    </div>
{/exp:reinos_store:shipping_methods}