Hi,
I have a dedicated plugin for shipment that I have been using since the VM3 version. I am currently using the VM4 version.
Now I realized that when I trying to save its configuration, the data was deleted.
I mean the data saved in virtuemart_shipmentmethods -> shipment_params. Every time I save, only the entry display_color=""| appears there.
How can I start looking for the cause?
When I put the relevant data in the database manually, everything works. The problem is with saving.
Regards
check your functions are all camel case
e.g. plgVmOnSelectCheckShipment
also check this function is there
/* GJC this is missing in many plugins and will prevent params saving */
function plgVmSetOnTablePluginShipment(&$data,&$table){
$name = $data['shipment_element'];
$id = $data['shipment_jplugin_id'];
if (!empty($this->_psType) and !$this->selectedThis ($this->_psType, $name, $id)) {
return FALSE;
} else {
return $this->setOnTablePluginParams ($name, $id, $table);
}
}
Thank you.
This was the solution.