I am developing a payment module for Virtuemart. The test_payment.xml configuration file looks like this:
<?xml version="1.0" encoding="utf-8"?> <extension version="2.5" type="plugin" group="vmpayment" method="upgrade"> <name>VM Payment - Test</name> <author>Test</author> <version>1.0.0</version> <description>Test payment</description> <files> <filename plugin="test_payment">test_payment.php</filename> </files> <config> <fields name="params"> <fieldset name="basic"> <field name="merchant" type="text" size="20" label="Логин" description="" default="" /> <field name="password" type="text" size="20" label="Пароль" description="" default="" /> <field name="test" type="list" default="1" label="Режим теста" description=""> <option value="1">Включен</option> <option value="0">Выключен</option> </field> <field name="step" type="list" default="1" label="Стадийность" description=""> <option value="1">Одностадийный платеж</option> <option value="2">Двухстадийный платеж</option> </field> </fieldset> </fields> </config> </extension> When adding a new payment method and saving the configuration to the database, the following line is saved in the payment_params table in the payment_params field:
merchant="test"|password="test"|test="0"|step="2"| But at the same time, the fields on the configuration page still remain empty / default. Tell me why, after saving the settings, they are not displayed on the page?
Joomla v3.5.1, Virtuemart v3.0.14
vmPluginparentvmPlugin. The developer only needs to write the correctxml. - MichaelPak