Skip to content
This repository
tree: 01330ec25d
Fetching contributors…

Cannot retrieve contributors at this time

file 89 lines (78 sloc) 1.603 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
__NAME__ purpose
displays shipping mode description
__END__


__NAME__ synopsis
<row>

<entry>
mode
</entry>
<entry>
Yes
</entry>
<entry>
<!-- REQ -->
</entry>
<entry>
<!-- DFL -->
</entry>
<entry>
shipping mode
</entry>

</row>
<row>

<entry>
key
</entry>
<entry>
Yes
</entry>
<entry>
<!-- REQ -->
</entry>
<entry>
<literal>description</literal>
</entry>
<entry>
<!-- DSC -->
</entry>

</row>
&TAG_NON_CONTAINER;
__END__

__NAME__ see also
shipping
__END__

__NAME__ description
<tag>shipping-desc</tag> allows access to arbitrary keys in the shipping
configuration.
__END__

__NAME__ example: Display shipping modes and corresponding information
<para>
The following snippet out of <filename>shipping.asc</filename> contains
additional information which can be displayed with <tag>shipping-desc</tag>.
<programlisting>
usps: USPS 1st class
        crit [onlyitems]
        min 0
        max 0
        cost e No shipping needed!
        at_least 0
        adder 0
        p_time 1-2 business days
        s_time 3-7 business days

        min 1
        max 6
        cost 4.00

        min 7
        max 12
        cost 7.00
</programlisting>
<para>
<programlisting><![CDATA[
[loop list="[shipping possible=1]"]
Shipping Mode: [shipping-desc mode="[loop-code]"]
Processing time: [shipping-desc mode="[loop-code]" key=p_time]
Shipping time: [shipping-desc mode="[loop-code]" key=s_time]
Cost: [shipping mode="[loop-code]"]
[/loop]
]]></programlisting>
__END__
Something went wrong with that request. Please try again.