rules_shipping.xml 12.4 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<extension version="2.5" type="plugin" group="vmshipment" method="upgrade">
3
    <name>OTSHIPMENT_RULES</name>
4
    <creationDate>2014-09-14</creationDate>
5
    <author>Reinhold Kainhofer</author>
6
    <authorUrl>http://www.open-tools.net</authorUrl>
7
    <copyright>Copyright (C) 2013-2014, Reinhold Kainhofer</copyright>
8
    <license>GPL v3+</license>
9
    <version>6.0</version>
10
    <description>OTSHIPMENT_RULES_DESC</description>
11
    <files>
12
13
14
15
16
        <filename plugin="rules_shipping">rules_shipping.php</filename>
        <filename>rules_shipping_base.php</filename>
        <folder>language</folder>
        <folder>elements</folder>
        <folder>fields</folder>
17
    </files>
18
    <languages folder="language">
19
20
        <language tag="en-GB">en-GB/en-GB.plg_vmshipment_rules_shipping.ini</language>
        <language tag="en-GB">en-GB/en-GB.plg_vmshipment_rules_shipping.sys.ini</language>
21
22
23
    </languages>
    <scriptfile>rules_shipping.script.php</scriptfile>

24
    <!-- VM 3.x support (fields rather than params): -->
25
    <vmconfig>
26
        <fields name="params" addfieldpath="/plugins/vmshipment/rules_shipping/fields">
27
            <fieldset name="shipment" label="OTSHIPMENT_RULES_PLUGIN" addfieldpath="/administrator/components/com_virtuemart/fields">
28
                <field type="vmcurl"/>
29
30
31
                <field type="spacer" default="OTSHIPMENT_RULES_PLUGIN" level="level1"/>
                <field name="shipment_logos" type="imagelist" label="OTSHIPMENT_RULES_LOGOS"
                    description="OTSHIPMENT_RULES_LOGOS_DESC" multiple="true"
32
33
34
                    directory="/images/stories/virtuemart/shipment"
                    default="" hide_default="1" hide_none="1"
                    stripext="0"   exclude="^_" />
35
36
37
                <field name="weight_unit" type="vmweightunit" size="10" default="" label="OTSHIPMENT_RULES_WEIGHT_UNIT" description="OTSHIPMENT_RULES_WEIGHT_UNIT_DESC"/>
                <field name="length_unit" type="vmlengthunit" size="10" default="" label="OTSHIPMENT_RULES_LENGTH_UNIT" description="OTSHIPMENT_RULES_LENGTH_UNIT_DESC"/>
                <field type="vmtitle" default="" description='OTSHIPMENT_RULES_HELP' />
38
            </fieldset>
39

40
41
42
43
            <fieldset name="countryzone1" label="OTSHIPMENT_RULES_COUNTRIES1_LABEL">
                <field name="countries1" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id1" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules1" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
44
            </fieldset>
45

46
47
48
49
            <fieldset name="countryzone2" label="OTSHIPMENT_RULES_COUNTRIES2_LABEL">
                <field name="countries2" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id2" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules2" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
50
51
            </fieldset>

52
53
54
55
            <fieldset name="countryzone3" label="OTSHIPMENT_RULES_COUNTRIES3_LABEL">
                <field name="countries3" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id3" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules3" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
56
57
            </fieldset>

58
59
60
61
            <fieldset name="countryzone4" label="OTSHIPMENT_RULES_COUNTRIES4_LABEL">
                <field name="countries4" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id4" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules4" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
62
63
            </fieldset>

64
65
66
67
            <fieldset name="countryzone5" label="OTSHIPMENT_RULES_COUNTRIES5_LABEL">
                <field name="countries5" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id5" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules5" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
68
69
            </fieldset>

70
71
72
73
            <fieldset name="countryzone6" label="OTSHIPMENT_RULES_COUNTRIES6_LABEL">
                <field name="countries6" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id6" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules6" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
74
75
            </fieldset>

76
77
78
79
            <fieldset name="countryzone7" label="OTSHIPMENT_RULES_COUNTRIES7_LABEL">
                <field name="countries7" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id7" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules7" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
80
81
            </fieldset>

82
83
84
85
            <fieldset name="countryzone8" label="OTSHIPMENT_RULES_COUNTRIES8_LABEL">
                <field name="countries8" type="vmcountries" multiple="true" scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
                <field name="tax_id8" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
                <field name="rules8" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
86
87
88
            </fieldset>

        </fields>
89
    </vmconfig>
90
91
92


    <!-- VM 2.0 support (params rather than fields): -->
93
94
95
96
    <params addpath="/administrator/components/com_virtuemart/elements" />
    <params addpath="/plugins/vmshipment/rules_shipping/elements" />

    <params>
97
        <param type="vmjpluginwarning" />
98
99
100
        <param type="spacer" default='OTSHIPMENT_RULES_PLUGIN' level="level1" />
        <param name="shipment_logos" type="vmfiles" label="OTSHIPMENT_RULES_LOGOS"
               description="OTSHIPMENT_RULES_LOGOS_DESC"
101
102
103
               directory="/images/stories/virtuemart/shipment"
               default="default" hide_default="1" hide_none="1"
               stripext="0"   exclude="^_" />
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
        <param name="weight_unit" type="vmweightunit" size="10" default="" label="OTSHIPMENT_RULES_WEIGHT_UNIT" description="OTSHIPMENT_RULES_WEIGHT_UNIT_DESC"/>
        <param name="length_unit" type="vmlengthunit" size="10" default="" label="OTSHIPMENT_RULES_LENGTH_UNIT" description="OTSHIPMENT_RULES_LENGTH_UNIT_DESC"/>

        <param type="rklabel" default='OTSHIPMENT_RULES_HELP' />

        <param type="rklabel" default='OTSHIPMENT_RULES_COUNTRIES1_LABEL' />
        <param name="countries1" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id1" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules1" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />

        <param type="rklabel" default="OTSHIPMENT_RULES_COUNTRIES2_LABEL" />
        <param name="countries2" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id2" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules2" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />

        <param type="rklabel" default="OTSHIPMENT_RULES_COUNTRIES3_LABEL" />
        <param name="countries3" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id3" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules3" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />

        <param type="rklabel" default="OTSHIPMENT_RULES_COUNTRIES4_LABEL" />
        <param name="countries4" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id4" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules4" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />

        <param type="rklabel" default="OTSHIPMENT_RULES_COUNTRIES5_LABEL" />
        <param name="countries5" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id5" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules5" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />

        <param type="rklabel" default="OTSHIPMENT_RULES_COUNTRIES6_LABEL" />
        <param name="countries6" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id6" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules6" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />

        <param type="rklabel" default="OTSHIPMENT_RULES_COUNTRIES7_LABEL" />
        <param name="countries7" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id7" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules7" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />

        <param type="rklabel" default="OTSHIPMENT_RULES_COUNTRIES8_LABEL" />
        <param name="countries8" type="vmcountries"  scope="com_virtuemart" default="" label="OTSHIPMENT_RULES_COUNTRIES" description="OTSHIPMENT_RULES_COUNTRIES_DESC"/>
        <param name="tax_id8" type="vmtaxes" scope="com_virtuemart"  label="OTSHIPMENT_RULES_TAX" description="OTSHIPMENT_RULES_TAX_DESC" />
        <param name="rules8" type="textarea" rows="6" cols="80"  label="OTSHIPMENT_RULES_RULES" description="OTSHIPMENT_RULES_RULES_DESC" />
148
  </params>
149
150
151
152
	
	<updateservers>
		<server type="extension" name="VM Shipping by Rules Updates"><![CDATA[http://open-tools.net/UpdateServer/index.php?package=Joomla&amp;extension=ShippingByRules]]></server>
	</updateservers>
153

154
</extension>