VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: dropEZE on August 20, 2012, 01:43:22 AM

Title: Shipment plugin development
Post by: dropEZE on August 20, 2012, 01:43:22 AM
Hello,
I would like to develop a shipping plugin
Unfortunately I cant find any documentation for development of plugins for vm2.
The delivery fees are based on the distance (within a location: Shop -> delivery address) & will be calculated and displayed at the checkout. The distance is calculated using the google maps api. Unfortunately, I do not know how to implement it in vm2.
Any tips or links that could help me?
Thank you.
Title: Re: Shipment plugin development
Post by: bytelord on August 20, 2012, 02:51:06 AM
Hello,

You could take a look first here:

http://dev.virtuemart.net/projects/virtuemart/wiki/Plugin_system
http://dev.virtuemart.net/projects/virtuemart/wiki/Shipper_Plugins
Title: Re: Shipment plugin development
Post by: alatak on August 21, 2012, 19:29:03 PM
Hello

Txs bytelord for the links.

The wiki is not really up to date, but it gives you an idea of how it should work.
Title: Re: Shipment plugin development
Post by: bytelord on August 21, 2012, 20:17:37 PM
Hi,
and forget to mention that always you can study the existing plugins source (paypal, standart, etc) ... it's how i build my own one, was very helpful :)
Title: Re: Shipment plugin development
Post by: ivus on August 21, 2012, 21:13:37 PM
@bytelord

Quoteand forget to mention that always you can study the existing plugins source (paypal, standart, etc) ... it's how i build my own one, was very helpful

I concur... that's how I built my FedEx plugin.

It's actually more helpful than the documentation.
Title: Re: Shipment plugin development
Post by: bytelord on August 21, 2012, 21:25:41 PM
@ivus

+1. Exactly and also all the functions itself are very well commented  inside the payment plugins :)
Title: Re: Shipment plugin development
Post by: alatak on August 22, 2012, 10:06:29 AM
Hello,

Quote+1. Exactly and also all the functions itself are very well commented  inside the payment plugins
This is of course a good idea,. But documentation is also good when you are beginner.
The problem is that it takes a lot of time to maintain it.
I would prefer to have some dynamic documentation like we did on the french joomla developer web site http://api.joomla.fr/joomla25/
It is done with Doxygen.


Title: Re: Shipment plugin development
Post by: bytelord on August 22, 2012, 11:22:17 AM
Hello alatak,

Documentation is always best option and now that vm 2+ is stable enough i think it's time an API documentation get published (manual also), heh
You did great work with doxygen, fast, ajax support, maybe the best "tool" for writing software reference documentation.