News:

Support the VirtueMart project and become a member

Main Menu

configuration is not saving, how debug

Started by Emma Iana, November 30, 2023, 22:49:47 PM

Previous topic - Next topic

Emma Iana

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

GJC Web Design

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);
}
}


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

Emma Iana