News:

Looking for documentation? Take a look on our wiki

Main Menu

Modify custom component from vm2 to vm3

Started by pm4698, August 27, 2016, 17:44:13 PM

Previous topic - Next topic

pm4698

Hello there.

I created a custom vm2.6.12 component and now i am trying to move to vm3 with Joomla 3.

I made some modifications to custom component coding in order to match the vm3 format. Now, when i try to access my component from backend with debug enabled i see this error:

Strict Standards: Declaration of VirtuemartControllerSpecial::display() should be compatible with that of VmController::display() in ..\administrator\components\com_virtuemart\virtuemart.php on line 38 Strict Standards: Declaration of VirtuemartControllerSpecial::save() should be compatible with that of VmController::save() in ..\administrator\components\com_virtuemart\virtuemart.php on line 38

I have attached vm2 where all files of component are there in administrator folder and in vm3 are the files i have "upgraded" to match vm3 criteria. Any idea would be much helpful.

Thank you in advance

GJC Web Design

it saying that your functions should use the same parameters

e.g. in VM3 display is

public function display($cachable = false, $urlparams = false)
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

pm4698

oh ok! Do you know vm3 parameters for save function also?

GJC Web Design

administrator\components\com_virtuemart\helpers\vmcontroller.php
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