VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: johnyDev on March 24, 2014, 11:57:56 AM

Title: Backward compatibility from my module
Post by: johnyDev on March 24, 2014, 11:57:56 AM
Hello,

I am trying to create a module for VirtueMart, it works fine in VirtueMart 2.0.10 and above but I want it to be VM 2.x compatible, I have tried to install the module under VM 2.0.0 to start working on the compatibility and I face two problems :

Fatal error: Call to undefined method VmConfig::loadJLang()
Call to undefined method VmModel::getModel()

what is the old alternative for those functions and is there anyway to make a test of VM version and according to version run different code, or is there is better solution to make the module  compatible with VM 2.x


Thank you.
Title: Re: Backward compatibility from my module
Post by: johnyDev on March 30, 2014, 20:00:35 PM
Hello again, please any chance that someone can help, it will be great if one of the VirtueMart developers just guide me to the right direction and give me some documentation ... an idea how to develop a virtuemart module that works on all VM 2.x

Thank you.
Title: Re: Backward compatibility from my module
Post by: johnyDev on April 01, 2014, 23:05:45 PM
Any help be appreciated. Thank you