VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: D3S Solutions on August 25, 2015, 17:03:27 PM

Title: Payment Configuration Empty in VM 3.0.4 Have to check xml or php Pls help !!!
Post by: D3S Solutions on August 25, 2015, 17:03:27 PM
installed a payment method of payumoney (as was developed for previous version of joomla i have changed it to work in 3.x)
It got installed successfully but the payment config of this is empty , i hope xml is working fine but the php file needs some changes.

Attaching the plugin files below

New to joomla and vm pls help on this .
Title: Re: Payment Configuration Empty in VM 3.0.4 Have to check xml or php Pls help !!!
Post by: GJC Web Design on August 25, 2015, 21:09:13 PM
Look at any of the bundled payment plug xmls and you'll see your problems

using params - should use fields
e.g.
<vmconfig>
        <fields name="params">
            <fieldset name="payment"  addfieldpath="/administrator/components/com_virtuemart/fields">

u have no

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

in your php file
Title: Re: Payment Configuration Empty in VM 3.0.4 Have to check xml or php Pls help !!!
Post by: D3S Solutions on August 26, 2015, 09:05:45 AM
Thank you GJC for your reply ,

I am very new to this , and i didnt understand your solution. Can you elaborate it more.

and what exactly changes do i have to do in my php file with respect to xml file .

i am getting no help around.

It would be great if help me
thank you
Title: Re: Payment Configuration Empty in VM 3.0.4 Have to check xml or php Pls help !!!
Post by: GJC Web Design on August 26, 2015, 12:12:11 PM
just check e.g.   plugins\vmpayment\authorizenet\authorizenet.xml to see what it should be
Title: Re: Payment Configuration Empty in VM 3.0.4 Have to check xml or php Pls help !!!
Post by: D3S Solutions on August 27, 2015, 09:52:23 AM
Sir,

I have done the changes as per you guided but now its not even installing , giving error
"Warning
JInstaller: :Install: Cannot find Joomla XML setup file"

attached is the updated file

Pls see that whether your instance installs this or gives error , and if so then what could be way outs .

Thank you
Title: Re: Payment Configuration Empty in VM 3.0.4 Have to check xml or php Pls help !!!
Post by: GJC Web Design on August 27, 2015, 10:50:14 AM
double check your xml .. some very basic mistakes in it

stray closing </field>

</fields> missing