News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Configuration settings not being saved

Started by namskap, October 11, 2016, 15:44:04 PM

Previous topic - Next topic

namskap

Hi All,

I am new to VirtueMart and I am updating our payment method on version 2.x to latest version of Virtuemart i.e 3.  I have change the folder struture,
worldnet->
    ->worldnet(floder)--> assests(folder),fields(folder)
    ->langugae(folder)
    ->worldnet.php
    ->worldnet.xml
my worldnet.xml is below

<?xml version="1.0" encoding="UTF-8" ?>
<extension version="1.5" type="plugin" group="vmpayment" method="upgrade">
    <description>WorldNet Hosted Payment Page plugin</description>
    <name>VM Payment - Worldnet</name>
    <creationDate>October 06 2016</creationDate>
    <author>Worldnet Development Team</author>
    <authorEmail>support@worldnettps.com</authorEmail>
    <authorUrl>http://www.worldnettps.com</authorUrl>
    <copyright>Copyright (C) 2012 WorldNet TPS. All rights reserved.</copyright>
    <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
    <version>3.0.18</version>
   
    <files>
   <filename plugin="worldnet">worldnet.php</filename>
   <folder>language</folder>
        <folder>worldnet</folder>
    </files>
    <vmconfig>
        <fields name="params">
       <fieldset name="payment"  addfieldpath="/plugins/vmpayment/worldnet/worldnet/fields">
        <field class="level1" type="vmtitle" default="VMPAYMENT_WORLDNET_MODULE_INFORMATION"/>
        <field name="developed_by" default="&lt;a href=&quot;http://www.worldnettps.com/&quot; target=&quot;_blank&quot;&gt;WorldNet TPS&lt;/a&gt;" label="VMPAYMENT_WORLDNET_DEVELOPED_BY"/>                       
        <field name="contact_email" default="&lt;a href=&quot;http://www.worldnettps.com/&quot; target=&quot;_blank&quot;&gt;WorldNet TPS&lt;/a&gt;" label="VMPAYMENT_WORLDNET_DEVELOPED_BY"/>          
   
   <field name="contrib_version" label="VMPAYMENT_WORLDNET_CONTRIB_VERSION" default="1.0"/>
   <field name="cms_version" label="VMPAYMENT_WORLDNET_CMS_VERSION" default="VirtueMart 2.0.3"/>

   <field class="level1" type="vmtitle" label="VMPAYMENT_WORLDNET_GATEWAY_DETAILS"/>
   <field name="gateway" type="list" default="WORLDNET" label="VMPAYMENT_WORLDNET_GATEWAY"
             description="VMPAYMENT_WORLDNET_GATEWAY_EXPLAIN">
       <option value="payments.worldnettps.com">VMPAYMENT_WORLDNET_GATEWAY_WORLDNET</option>
       <option value="cashflows.worldnettps.com">VMPAYMENT_WORLDNET_GATEWAY_CASHFLOWS</option>
   </field>
        <field name="testmode" type="radio" default="1" label="VMPAYMENT_WORLDNET_ENABLE_TESTMODE"
             description="VMPAYMENT_WORLDNET_ENABLE_TESTMODE_EXPLAIN">
       <option value="1">COM_VIRTUEMART_YES</option>
       <option value="0">COM_VIRTUEMART_NO</option>
   </field>

   <field class="level1" type="vmtitle" label="VMPAYMENT_WORLDNET_FIRST_CURRENCY"/>
        <field name="currency1" type="vmacceptedcurrency" default="" label="VMPAYMENT_WORLDNET_CURRENCY" description="VMPAYMENT_WORLDNET_CURRENCY_EXPLAIN" />
   <field name="terminalid1" type="text"  label="VMPAYMENT_WORLDNET_TERMINALID" description="VMPAYMENT_WORLDNET_TERMINALID_EXPLAIN" />
   <field name="secret1" type="text"  label="VMPAYMENT_WORLDNET_SHAREDSECRET" description="VMPAYMENT_WORLDNET_SHAREDSECRET_EXPLAIN" />

   <field class="level1" type="vmtitle" label="VMPAYMENT_WORLDNET_SECOND_CURRENCY"/>
        <field name="currency2" type="vmacceptedcurrency" default="" label="VMPAYMENT_WORLDNET_CURRENCY" description="VMPAYMENT_WORLDNET_CURRENCY_EXPLAIN" />
   <field name="terminalid2" type="text"  label="VMPAYMENT_WORLDNET_TERMINALID" description="VMPAYMENT_WORLDNET_TERMINALID_EXPLAIN" />
   <field name="secret2" type="text"  label="VMPAYMENT_WORLDNET_SHAREDSECRET" description="VMPAYMENT_WORLDNET_SHAREDSECRET_EXPLAIN" />

   <field class="level1" type="vmtitle" label="VMPAYMENT_WORLDNET_THIRD_CURRENCY"/>
        <field name="currency3" type="vmacceptedcurrency" default="" label="VMPAYMENT_WORLDNET_CURRENCY" description="VMPAYMENT_WORLDNET_CURRENCY_EXPLAIN" />
   <field name="terminalid3" type="text"  label="VMPAYMENT_WORLDNET_TERMINALID" description="VMPAYMENT_WORLDNET_TERMINALID_EXPLAIN" />
   <field name="secret3" type="text"  label="VMPAYMENT_WORLDNET_SHAREDSECRET" description="VMPAYMENT_WORLDNET_SHAREDSECRET_EXPLAIN" />

   <field class="level1" type="vmtitle" label="VMPAYMENT_WORLDNET_OTHER_OPTIONS" />
        <field name="sendemail" type="radio" default="1" label="VMPAYMENT_WORLDNET_ENABLE_HOST_EMAIL"
            description="VMPAYMENT_WORLDNET_ENABLE_HOST_EMAIL_EXPLAIN">
       <option value="1">COM_VIRTUEMART_YES</option>
       <option value="0">COM_VIRTUEMART_NO</option>
   </field>
   <field name="approved_status" type="vmorderstate" scope="com_virtuemart" default="C" label="VMPAYMENT_WORLDNET_STATUS_SUCCESS" description="VMPAYMENT_WORLDNET_STATUS_SUCCESS_EXPLAIN" />
   <field name="declined_status" type="vmorderstate" scope="com_virtuemart" default="X" label="VMPAYMENT_WORLDNET_STATUS_DECLINED" description="VMPAYMENT_WORLDNET_STATUS_DECLINED_EXPLAIN" />
   <field name="error_status"    type="vmorderstate" scope="com_virtuemart" default="P" label="VMPAYMENT_WORLDNET_STATUS_FAILED" description="VMPAYMENT_WORLDNET_STATUS_FAILED_EXPLAIN" />
     </fieldset>
   </fields>
    </vmconfig>

</extension>
I can see my Payment method in list of Payment Method, but whenever I do some in configuration settings of my plugin its not being saved. It always ended up to default ones.

Please help me if you could. 

Thanks,
Namita 

GJC Web Design

I have answered this multiple times.. please use the search!

function plgVmDeclarePluginParamsPaymentVM3( &$data) {
      return $this->declarePluginParams('payment', $data);
   }

in the php file
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation