News:

Support the VirtueMart project and become a member

Main Menu

Shipment plugin development

Started by dropEZE, August 20, 2012, 01:43:22 AM

Previous topic - Next topic

dropEZE

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.

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

alatak

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.

bytelord

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 :)
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

ivus

@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.

bytelord

#5
@ivus

+1. Exactly and also all the functions itself are very well commented  inside the payment plugins :)
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

alatak

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.



bytelord

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.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!