• Welcome to KonaKart Community Forum. Please login or sign up.
 

How to add new Shipping module

Started by srinivasanj, October 05, 2007, 01:43:26 pm

Previous topic - Next topic

srinivasanj

hai
i am using konakart its interesting, i need to add new shipping module where i need to change in our code

paolo

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.

Anni

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

julie

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

Anni

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

julie

November 30, 2007, 03:59:44 pm #5 Last Edit: November 30, 2007, 04:04:31 pm by julie
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

Anni

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

Anni


Anni

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

trevor

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

Anni

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

Anni

just tested it and still no change  :(

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

regards,
anni

trevor

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


Anni

hi trevor,

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

thanks,
anni