KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: srinivasanj on October 05, 2007, 01:43:26 pm

Title: How to add new Shipping module
Post by: srinivasanj on October 05, 2007, 01:43:26 pm
hai
i am using konakart its interesting, i need to add new shipping module where i need to change in our code
Title: Re: How to add new Shipping module
Post by: paolo on October 05, 2007, 02:09:53 pm
Hi,

At the moment we don't have very detailed instructions on how to do this, but you should be able to achieve your goal by following the examples that we ship with the source code. You can find a brief explanation here http://www.konakart.com/configurationfaq.php#shippingmodule .

The shipping modules can be found under examples\com\konakart\bl\modules\shipping\module_name\*.java . You'll see that they all implement Shipping Interface.

Under examples\com\konakartadmin\modules\shipping\module_name\*.java you will find shipping modules for the admin app. These don't actually implement any shipping logic. They provide functionality to enable the modules to be installed and removed via the admin app as well as for the configuration variables to be edited via the admin app.

If you come across any problems, you can try posting them to this Forum.

Good luck,

Paolo

P.S. Our professional services team is also available to develop custom shipping modules on request.
Title: Re: How to add new Shipping module
Post by: Anni on November 30, 2007, 03:21:13 pm
hi,

I also need to add a new shipping module and I've already read the faq. the problem is, I've no idea where to find the "MODULE_SHIPPING_INSTALLED" configuration property...

could you point me to it?

thanks,
anni
Title: Re: How to add new Shipping module
Post by: julie on November 30, 2007, 03:42:47 pm
Hi Anni,

Do you need to write one from scratch or just install one ?

MODULE_SHIPPING_INSTALLED refers to a configuration variable in the configuration database table. This is normally maintained automatically by the Admin app when you install and uninstall modules through the API.

-Julie
Title: Re: How to add new Shipping module
Post by: Anni on November 30, 2007, 03:52:10 pm
hi,

I need to add a completely new one. I took it that this is when I have to change the variable myself. or do I only have to keep the folder structure (i.e. creating a new package within shipping) and placing my code inside?

regards,
anni
Title: Re: How to add new Shipping module
Post by: julie on November 30, 2007, 03:59:44 pm
Hi Anni,

It is quite a complicated process to add a completely new one. Why don't you take one that is already there and just change the code ? In this way it can already be installed and uninstalled through the Admin App and the files are in all the right places. Alternatively if you send us the specs, maybe we can make you an offer to write it for you ?

-Julie
Title: Re: How to add new Shipping module
Post by: Anni on December 03, 2007, 10:34:23 am
hi julie,

the problem is that I actually need a "new" one that does exactly the same as the zone shipping module. it just has to be a second one. so I only need to know how to set it up for use with the shop and the admin app.

regards,
anni
Title: Re: How to add new Shipping module
Post by: Anni on December 03, 2007, 02:29:53 pm
so, how can I do this?

regards,
anni
Title: Re: How to add new Shipping module
Post by: Anni on December 04, 2007, 11:50:53 am
hi,

I now changed the example code of the table module to do the same as the zone module. but this doesn't seem to suffice. so, which other files do I have to update?

thanks,
anni
Title: Re: How to add new Shipping module
Post by: trevor on December 04, 2007, 12:05:58 pm
Hi,

You should look at the source code we provide.

The shipping modules can be found under examples\com\konakart\bl\modules\shipping\module_name\*.java . You'll see that they all implement Shipping Interface.

Under examples\com\konakartadmin\modules\shipping\module_name\*.java you will find shipping modules for the admin app. These don't actually implement any shipping logic. They provide functionality to enable the modules to be installed and removed via the admin app as well as for the configuration variables to be edited via the admin app.

So that a shipping module can be controlled by the admin app it has to be included in the properties file of the admin app like shown below:

konakart.modules.shipping=Flat Item Table Zones Free DigitalDownload

Regards,

Trevor
Title: Re: How to add new Shipping module
Post by: Anni on December 04, 2007, 12:22:35 pm
hi trevor,

thanks for the answer. I guess that would be the procedure if I wanted to add a completely new shipping module?

but for my other question: I already had a look at the source code you provide and changed it (on both sides, i.e. for the application and the admin app). however it still looks like before. I've just replaced the properties files for the webapps but couldn't test that yet, to see if that was the prob.

regards,
anni
Title: Re: How to add new Shipping module
Post by: Anni on December 04, 2007, 12:27:05 pm
just tested it and still no change  :(

btw, do you know why I can't edit my posts anymore?

regards,
anni
Title: Re: How to add new Shipping module
Post by: trevor on December 04, 2007, 01:15:17 pm
Don't want to ask the obvious, but you are compiling ths source and putting it under WEB-INF/classes/etc. and restarting Tomcat every time you make a change aren't you ? If you aren't seeing any changes, maybe your new class isn't being picked up ?

Trevor

Title: Re: How to add new Shipping module
Post by: Anni on December 04, 2007, 02:03:08 pm
hi trevor,

actually I didn't put the compiled code under WEB-INF/classes  :-[ so that would probably be the problem.

thanks,
anni