News:

Support the VirtueMart project and become a member

Main Menu

Implement Yupick Shipment

Started by skil, September 02, 2016, 16:29:28 PM

Previous topic - Next topic

skil

I would like to know if anyone has implemented a plugin in Virtuemart for Yupick.es shipment method.

I've tried to duplicate a shipment method that we already have by changing the current XML and creating a new ZIP for plugin instalation but there are several inconformities.
For example, when we configure the parameteres in Joomla administrator page, they arenĀ“t stored at all and all the info of the parameters is stored in the DB with the value "0" instead of something like "shipment_logos=["yupick.jpg"]|countries=["14","21","33"]|(...)"

I currently use Joomla 2.5 and Virtuemart 2.0.12f.

Does anyone have an idea?

GJC Web Design

QuoteI currently use Joomla 2.5 and Virtuemart 2.0.12f.

Does anyone have an idea?

highly unlikely..  2.0.12f ???  4 years old! .. total unsafe..

changed the class names? table name etc?
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

skil

I'm create the plugin. In the backoffice does not save configuration.
What is the function name that saves the configuration?


GJC Web Design

function plgVmDeclarePluginParamsShipment($name, $id, &$data) {

   return $this->declarePluginParams('shipment', $name, $id, $data);
    }
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

skil

#4
Quote from: GJC Web Design on September 06, 2016, 15:43:26 PM
function plgVmDeclarePluginParamsShipment($name, $id, &$data) {

   return $this->declarePluginParams('shipment', $name, $id, $data);
    }

thanks for help,
but the parameters ( Configuration ) are not being recorded in the field (shipment_params)  on table ( virtuemart_shipmentmethods )


<table_data name="perf_virtuemart_shipmentmethods">
   <row>
      <field name="virtuemart_shipmentmethod_id">517</field>
      <field name="virtuemart_vendor_id">1</field>
      <field name="shipment_jplugin_id">10071</field>
      <field name="slug"></field>
      <field name="shipment_element">pickme_shipping</field>
      <field name="shipment_params">0</field>
      <field name="ordering">500</field>
      <field name="shared">0</field>
      <field name="published">1</field>
      <field name="created_on">0000-00-00 00:00:00</field>
      <field name="created_by">0</field>
      <field name="modified_on">2016-09-07 16:07:03</field>
      <field name="modified_by">987</field>
      <field name="locked_on">0000-00-00 00:00:00</field>
      <field name="locked_by">0</field>
   </row>
</table_data>