-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_pricer2h.xml
51 lines (51 loc) · 2.54 KB
/
custom_pricer2h.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
<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin" group="system" method="upgrade">
<name>R2H calculate by decimal quantity plugin for Hikashop 3.x</name>
<creationDate>25-3-2016</creationDate>
<version>2.0.0</version>
<author>Rick Spaan</author>
<authorEmail>rick@r2h.nl</authorEmail>
<authorUrl>http://www.r2h.nl</authorUrl>
<copyright>(C) 2010-2016 R2H B.V.. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>
<![CDATA[
<H4>How to use this plugin</H4>
<ul>
<li>Activate this plugin</li>
<li>To sell something by the decimal quantity set "Taxes handling" to "already included in the amount"</li>
<li>Set the "Column name of the field" to a value representing the decimal quantity (length, milliliters etc.). Default is length</li>
<li>Go to Hikashop -> Display -> Custom Fields and click new</li>
<li>Set the "Label" to "Length (m1)", "Table" to "item", "Column name" to "length", "Field type" to "text" "Default value" to "1,00"</li>
<li>Save the plugin and then assign the categories on which the plugin should be active</li>
<li>Go to the Hikashop configuration or assigned menu item, and set the "Quantity input method" to none</li>
<li>Now only the custom field is visible.</li>
<li>A "," or "." can be used as digital separator when adding text to the field</li>
</ul>
]]>
</description>
<files>
<filename plugin="custom_pricer2h">custom_pricer2h.php</filename>
<filename>index.html</filename>
</files>
<params addpath="/components/com_hikashop/params">
<param name="taxes" type="radio" default="2" label="HIKA_TAXES_HANDLING" description="TAXES_HANDLING">
<option value="0">No taxes</option>
<option value="1">On top of the amount</option>
<option value="2">already included in the amount</option>
</param>
<param name="field" type="text" size="20" default="length" label="COLUMN_NAME_OF_THE_FIELD" description="CUSTOM_PRICE_COLUMN_NAME" />
</params>
<config>
<fields name="params" addfieldpath="/components/com_hikashop/fields">
<fieldset name="basic">
<field name="taxes" type="radio" default="0" label="HIKA_TAXES_HANDLING" description="TAXES_HANDLING">
<option value="0">No taxes</option>
<option value="1">On top of the amount</option>
<option value="2">already included in the amount</option>
</field>
<field name="field" type="text" size="20" default="length" label="COLUMN_NAME_OF_THE_FIELD" description="CUSTOM_PRICE_COLUMN_NAME" />
</fieldset>
</fields>
</config>
</extension>