VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: mrp on June 29, 2015, 17:22:42 PM

Title: Create shipping plugin
Post by: mrp on June 29, 2015, 17:22:42 PM

Hi,

I'd like to create my own shipping plugin for VM 3 but couldn't find any documentation. Can you help me?

Title: Re: Create shipping plugin
Post by: GJC Web Design on June 29, 2015, 17:56:28 PM
no step by step exists  - just use the bundled weight-country one as your example
It is relatively straight forward if u know php
Title: Re: Create shipping plugin
Post by: PRO on June 29, 2015, 22:06:56 PM
its easiest to modify one of the existing ones.

I made mine be editing the weight_countries    plugin
Title: Re: Create shipping plugin
Post by: AH on June 29, 2015, 22:15:11 PM
What would you like it to do

That might give someone an idea how to help you further

I did the same as PRO and modified the weights countries plugin
Title: Re: Create shipping plugin
Post by: mrp on June 30, 2015, 22:02:10 PM
Quote from: PRO on June 29, 2015, 22:06:56 PM
its easiest to modify one of the existing ones.


That's been my intention - but if I have look at http://extensions.virtuemart.net/shipments there are no free ones. Do I have to buy an extension just to get an example...?
Title: Re: Create shipping plugin
Post by: AH on June 30, 2015, 22:04:47 PM
MRP

I meant the one that is installed for free with VM.

You will find it in the directory:

plugins/vmshipment/weight_countries
Title: Re: Create shipping plugin
Post by: mrp on June 30, 2015, 22:17:01 PM
Thanks - I'm going to have a look at it.

Do I have to register my plugin anywhere in the database?
Title: Re: Create shipping plugin
Post by: AH on June 30, 2015, 22:21:59 PM
If you build a new one you will need to ensure that Joomla is aware of it

Title: Re: Create shipping plugin
Post by: GJC Web Design on June 30, 2015, 22:54:39 PM
Quotejust use the bundled weight-country one as your example
Title: Re: Create shipping plugin
Post by: PRO on July 01, 2015, 13:45:05 PM
MRP,
I have attached 1 of mine for you to look at. It is the 3.0 version

To understand how it works. look here.
http://www.kaizenmediaworks.com/pro-ship-virtuemart-2-0-shipping-plugin-module

I DO NOT OFFER SUPPORT FOR THE VM3 VERSION
Title: Re: Create shipping plugin
Post by: mrp on July 21, 2015, 16:02:19 PM
Thank you, PRO!!!
I didn't understand every line, but got it work. Hope there'll be documentations some time...
Title: Re: Create shipping plugin
Post by: jibon57 on July 25, 2015, 17:23:39 PM
You can check my Free UPS shipment plugin as for example: https://extensions.hoicoimasti.com/products/shipment-plugin/17-free-ups-shipment-plugin-for-virtuemart-3.html
I used default VM weight-country as sample :)