-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzasilkovna.xml
166 lines (154 loc) · 9.08 KB
/
zasilkovna.xml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.0" type="plugin" method="upgrade" group="vmshipment">
<!-- The extension commercial name: make it different form others at JED http://extensions.joomla.org/-->
<name>PLG_VMSHIPMENT_PACKETERY_XML_NAME</name>
<!-- The following elements are optional and free of formatting constraints -->
<!-- Original creation date. Recommended: YYYY-MM-DD -->
<creationDate>2015-04-20</creationDate>
<author>Zásilkovna s.r.o.</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.zasilkovna.cz/</authorUrl>
<copyright>Copyright (C) 2024 Packeta s.r.o. All rights reserved.</copyright>
<license>License Info with link</license>
<!-- The version string is recorded in the components table -->
<version>1.4.0</version>
<!-- The date for the actual version release -->
<releaseDate>2021-06-29</releaseDate>
<!-- Type of release: Bug fix, Security Fix, Minor update, Major update -->
<releaseType>Major update</releaseType>
<!-- The description is optional and defaults to the name -->
<description>PLG_VMSHIPMENT_PACKETERY_XML_DESCRIPTION</description>
<scriptfile>install.zasilkovna.php</scriptfile>
<installfile>install.zasilkovna.php</installfile>
<languages folder="language">
<language tag="en-GB">en-GB.plg_vmshipment_zasilkovna.sys.ini</language>
<language tag="cs-CZ">cs-CZ.plg_vmshipment_zasilkovna.sys.ini</language>
<language tag="sk-SK">sk-SK.plg_vmshipment_zasilkovna.sys.ini</language>
</languages>
<files>
<filename plugin="zasilkovna">zasilkovna.php</filename>
<filename plugin="zasilkovna">install.sql</filename>
</files>
<vmconfig>
<fields name="params">
<fieldset name="global" addrulepath="administrator/components/com_virtuemart/models/rules">
<field name="delivery_settings"
type="subform"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_DELIVERY_SETTINGS"
description="PLG_VMSHIPMENT_PACKETERY_CONFIG_DELIVERY_SETTINGS_DESCRIPTION"
>
<form>
<field name="shipping_type" type="radio" default="pickuppoints"
required="true"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_SHIPPING_TYPE"
description="PLG_VMSHIPMENT_PACKETERY_CONFIG_SHIPPING_TYPE_DESCRIPTION"
class="reset-min-width packeta_shipping_type"
>
<option value="pickuppoints">PLG_VMSHIPMENT_PACKETERY_CONFIG_PICKUP_POINTS</option>
<option value="hdcarriers">PLG_VMSHIPMENT_PACKETERY_CONFIG_TO_HD</option>
</field>
<field name="hd_carrier"
type="vmzasilkovnacarriers"
pickup_points="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_CARRIER"
showon="shipping_type:hdcarriers"/>
<field name="vendor_groups" type="checkboxes" default="" multiple="multiple"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_PICKUP_POINTS_GROUPS"
showon="shipping_type:pickuppoints[AND]showvendors:1"
class="reset-min-width">
<option value="zpoint">PLG_VMSHIPMENT_PACKETERY_CONFIG_PICKUP_POINTS_GROUP_ZPOINT</option>
<option value="zbox">PLG_VMSHIPMENT_PACKETERY_CONFIG_PICKUP_POINTS_GROUP_ZBOX</option>
</field>
<field name="pp_carrier"
type="vmzasilkovnacarriers"
pickup_points="1"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_CARRIER"
showon="shipping_type:pickuppoints[AND]showcarriers:1"/>
<field name="showvendors" type="vmzasilkovnashowvendors" label=""/>
<field name="showcarriers" type="vmzasilkovnashowcarriers" label=""/>
</form>
</field>
<field name="maxWeight" type="number" step="0.001" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_MAX_WEIGHT"
required="true"
description="PLG_VMSHIPMENT_PACKETERY_CONFIG_MAX_WEIGHT_LABEL" default="10"
validate="minvalue"
/>
<field name="shipment_cost" type="number" step="0.01" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_DEFAULT_PRICE" required="true"
description="PLG_VMSHIPMENT_PACKETERY_CONFIG_DEFAULT_PRICE_LABEL" default="100"
validate="minvalue"/>
<field name="free_shipment" type="number" step="0.01" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_FREE_SHIPPING"
description="PLG_VMSHIPMENT_PACKETERY_CONFIG_FREE_SHIPPING_LABEL" default=""
validate="minvalue"/>
<field name="tax_id" type="vmtaxes" scope="com_virtuemart" label="PLG_VMSHIPMENT_WEIGHT_COUNTRIES_TAX"
description="PLG_VMSHIPMENT_WEIGHT_COUNTRIES_TAX_DESC" default="0"/>
<field
name="globalWeightRules"
type="subform"
label="PLG_VMSHIPMENT_PACKETERY_GLOBAL_WEIGHT_RULES"
description="PLG_VMSHIPMENT_PACKETERY_GLOBAL_WEIGHT_RULES_LABEL"
multiple="true"
min="0">
<form>
<field name="maxWeightKg" type="number" step="0.001" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_WEIGHT_TO"
size="30" required="true"
validate="minvalue"/>
<field name="price" type="number" step="0.01" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_PRICE"
size="30" required="true"
validate="minvalue"/>
</form>
</field>
</fieldset>
<fieldset name="restrictions">
<field name="checkConditionsCore" value="1" default="1" type="hidden"/>
<field
name="pricingRules"
class="packetery-pricing-rules"
type="subform"
label="PLG_VMSHIPMENT_PACKETERY_PRICING_RULES"
description="PLG_VMSHIPMENT_PACKETERY_PRICING_RULES_LABEL"
multiple="true"
min="0">
<form>
<field name="country" type="vmzasilkovnacountries" label="PLG_VMSHIPMENT_PACKETERY_COUNTRY"
required="true"/>
<field name="shipment_cost" type="number" step="0.01" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_DEFAULT_PRICE" required="false"
description="PLG_VMSHIPMENT_PACKETERY_CONFIG_DEFAULT_PRICE_LABEL" default=""
validate="minvalue"/>
<field name="free_shipment" type="number" step="0.01" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_FREE_SHIPPING"
description="PLG_VMSHIPMENT_PACKETERY_CONFIG_FREE_SHIPPING_LABEL" default=""
validate="minvalue"/>
<field
name="weightRules"
type="subform"
label="PLG_VMSHIPMENT_PACKETERY_WEIGHT_RULES"
description="PLG_VMSHIPMENT_PACKETERY_WEIGHT_RULES_LABEL"
multiple="true"
min="0">
<form>
<field name="maxWeightKg" type="number" step="0.001" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_WEIGHT_TO"
size="30" required="true"
validate="minvalue"/>
<field name="price" type="number" step="0.01" min="0"
label="PLG_VMSHIPMENT_PACKETERY_CONFIG_PRICE"
size="30" required="true"
validate="minvalue"/>
</form>
</field>
</form>
</field>
</fieldset>
</fields>
</vmconfig>
<media folder="media" destination="com_zasilkovna">
<folder>admin</folder>
<folder>media</folder>
</media>
</extension>